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
Labels
Merge Requests
105
Merge Requests
105
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
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
Show 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
...
@@ -72,7 +72,7 @@ md5sum = f4389a92fb111447e7976e452db78607
[template-core-network]
[template-core-network]
_update_hash_filename_ = instance-core-network.jinja2.cfg
_update_hash_filename_ = instance-core-network.jinja2.cfg
md5sum =
d568767018b1389a8e0acbf0bc808ef
5
md5sum =
7b653b5bfd62e91d0c423ee9387ca04
5
[template-ue]
[template-ue]
_update_hash_filename_ = instance-ue.jinja2.cfg
_update_hash_filename_ = instance-ue.jinja2.cfg
...
...
software/simpleran/instance-core-network-input-schema.json
View file @
30d97cf5
...
@@ -16,10 +16,10 @@
...
@@ -16,10 +16,10 @@
"type"
:
"boolean"
"type"
:
"boolean"
},
},
"iperf3"
:
{
"iperf3"
:
{
"default"
:
false
,
"default"
:
0
,
"title"
:
"iperf3 UDP server"
,
"title"
:
"iperf3 UDP server
count
"
,
"description"
:
"Activate iperf3 UDP server"
,
"description"
:
"Activate
one or multiple
iperf3 UDP server"
,
"type"
:
"
boolean
"
"type"
:
"
number
"
},
},
"local_domain"
:
{
"local_domain"
:
{
"default"
:
""
,
"default"
:
""
,
...
...
software/simpleran/instance-core-network.jinja2.cfg
View file @
30d97cf5
...
@@ -76,10 +76,10 @@ parts =
...
@@ -76,10 +76,10 @@ parts =
monitor-base
monitor-base
check-interface-up.py
check-interface-up.py
publish-connection-information
publish-connection-information
{%
if slapparameter_dict.get("iperf3", None
) %}
{%
- for i in range(slapparameter_dict.get("iperf3", 0)
) %}
iperf-service
iperf-service
-{{ i }}
iperf-listen-promise
iperf-
{{ i }}-
listen-promise
{%
endif
%}
{%
- endfor
%}
{% if slapparameter_dict.get("local_domain", '') %}
{% if slapparameter_dict.get("local_domain", '') %}
dnsmasq-service
dnsmasq-service
{% endif %}
{% endif %}
...
@@ -202,24 +202,23 @@ wrapper-path = ${directory:bin}/mme-ifup-empty
...
@@ -202,24 +202,23 @@ wrapper-path = ${directory:bin}/mme-ifup-empty
command-line = echo Using interface
command-line = echo Using interface
mode = 775
mode = 775
{% if slapparameter_dict.get("iperf3", None) %}
{%- for i in range(slapparameter_dict.get("iperf3", 0)) %}
### iperf3
[iperf-service-{{ i }}]
[iperf-service]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
port =
5001
port =
{{ 5001 + i }}
ip = ${slap-configuration:tun-ipv4-addr}
ip = ${slap-configuration:tun-ipv4-addr}
command-line = {{ iperf3_location }}/bin/iperf3 --server --interval 1 --port ${:port} --bind ${:ip}
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
mode = 0775
pidfile = ${directory:run}/iperf3.pid
pidfile = ${directory:run}/iperf3
-{{ i }}
.pid
[iperf-listen-promise]
[iperf-
{{ i }}-
listen-promise]
<= monitor-promise-base
<= monitor-promise-base
promise = check_socket_listening
promise = check_socket_listening
name = iperf
3
-port-listening.py
name = iperf
-{{ i }}
-port-listening.py
config-host = ${iperf-service:ip}
config-host = ${iperf-service
-{{ i }}
:ip}
config-port = ${iperf-service:port}
config-port = ${iperf-service
-{{ i }}
:port}
{% end
if
%}
{% end
for
%}
[config-base]
[config-base]
recipe = slapos.recipe.template:jinja2
recipe = slapos.recipe.template:jinja2
...
@@ -310,6 +309,12 @@ recipe = slapos.cookbook:publish.serialised
...
@@ -310,6 +309,12 @@ recipe = slapos.cookbook:publish.serialised
core-network-ipv6 = {{ my_ipv6 }}
core-network-ipv6 = {{ my_ipv6 }}
core-network-ipv4 = {{ lan_ipv4 }}
core-network-ipv4 = {{ lan_ipv4 }}
core-network-mac = {{ mac }}
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-version = {{ amarisoft['version']}}
amarisoft-host-id = {{ amarisoft['lteenb_host_id'] }}
amarisoft-host-id = {{ amarisoft['lteenb_host_id'] }}
amarisoft-available-versions = {{ amarisoft['version_installed'] }}
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