Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Łukasz Nowak
slapos
Commits
30d97cf5
Commit
30d97cf5
authored
Dec 03, 2024
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simpleran: user can configure multiple iperf3 server
parent
f651ebe0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
20 deletions
+25
-20
software/simpleran/buildout.hash.cfg
software/simpleran/buildout.hash.cfg
+1
-1
software/simpleran/instance-core-network-input-schema.json
software/simpleran/instance-core-network-input-schema.json
+4
-4
software/simpleran/instance-core-network.jinja2.cfg
software/simpleran/instance-core-network.jinja2.cfg
+20
-15
No files found.
software/simpleran/buildout.hash.cfg
View file @
30d97cf5
...
...
@@ -72,7 +72,7 @@ md5sum = f4389a92fb111447e7976e452db78607
[template-core-network]
_update_hash_filename_ = instance-core-network.jinja2.cfg
md5sum =
d568767018b1389a8e0acbf0bc808ef
5
md5sum =
7b653b5bfd62e91d0c423ee9387ca04
5
[template-ue]
_update_hash_filename_ = instance-ue.jinja2.cfg
...
...
software/simpleran/instance-core-network-input-schema.json
View file @
30d97cf5
...
...
@@ -16,10 +16,10 @@
"type"
:
"boolean"
},
"iperf3"
:
{
"default"
:
false
,
"title"
:
"iperf3 UDP server"
,
"description"
:
"Activate iperf3 UDP server"
,
"type"
:
"
boolean
"
"default"
:
0
,
"title"
:
"iperf3 UDP server
count
"
,
"description"
:
"Activate
one or multiple
iperf3 UDP server"
,
"type"
:
"
number
"
},
"local_domain"
:
{
"default"
:
""
,
...
...
software/simpleran/instance-core-network.jinja2.cfg
View file @
30d97cf5
...
...
@@ -76,10 +76,10 @@ parts =
monitor-base
check-interface-up.py
publish-connection-information
{%
if slapparameter_dict.get("iperf3", None
) %}
iperf-service
iperf-listen-promise
{%
endif
%}
{%
- for i in range(slapparameter_dict.get("iperf3", 0)
) %}
iperf-service
-{{ i }}
iperf-
{{ i }}-
listen-promise
{%
- endfor
%}
{% if slapparameter_dict.get("local_domain", '') %}
dnsmasq-service
{% endif %}
...
...
@@ -202,24 +202,23 @@ wrapper-path = ${directory:bin}/mme-ifup-empty
command-line = echo Using interface
mode = 775
{% if slapparameter_dict.get("iperf3", None) %}
### iperf3
[iperf-service]
{%- for i in range(slapparameter_dict.get("iperf3", 0)) %}
[iperf-service-{{ i }}]
recipe = slapos.cookbook:wrapper
port =
5001
port =
{{ 5001 + i }}
ip = ${slap-configuration:tun-ipv4-addr}
command-line = {{ iperf3_location }}/bin/iperf3 --server --interval 1 --port ${:port} --bind ${:ip}
wrapper-path = ${directory:service}/iperf3
wrapper-path = ${directory:service}/iperf3
-{{ i }}
mode = 0775
pidfile = ${directory:run}/iperf3.pid
pidfile = ${directory:run}/iperf3
-{{ i }}
.pid
[iperf-listen-promise]
[iperf-
{{ i }}-
listen-promise]
<= monitor-promise-base
promise = check_socket_listening
name = iperf
3
-port-listening.py
config-host = ${iperf-service:ip}
config-port = ${iperf-service:port}
{% end
if
%}
name = iperf
-{{ i }}
-port-listening.py
config-host = ${iperf-service
-{{ i }}
:ip}
config-port = ${iperf-service
-{{ i }}
:port}
{% end
for
%}
[config-base]
recipe = slapos.recipe.template:jinja2
...
...
@@ -310,6 +309,12 @@ recipe = slapos.cookbook:publish.serialised
core-network-ipv6 = {{ my_ipv6 }}
core-network-ipv4 = {{ lan_ipv4 }}
core-network-mac = {{ mac }}
{%- if slapparameter_dict.get("iperf3", 0) %}
iperf3-server-ipv4 = ${iperf-service-0:ip}
{%- endif %}
{%- for i in range(1, slapparameter_dict.get("iperf3", 0) + 1) %}
iperf3-server-{{ i - 1 }}-port = ${iperf-service-{{ i - 1 }}:port}
{%- endfor %}
amarisoft-version = {{ amarisoft['version']}}
amarisoft-host-id = {{ amarisoft['lteenb_host_id'] }}
amarisoft-available-versions = {{ amarisoft['version_installed'] }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment