Commit e1200595 authored by Joanne Hugé's avatar Joanne Hugé

ors-amarisoft: add iperf3 server

parent 381e90b7
...@@ -40,7 +40,7 @@ md5sum = 9732653a0e2c7fe91d80da80762430d2 ...@@ -40,7 +40,7 @@ md5sum = 9732653a0e2c7fe91d80da80762430d2
[template-lte-mme] [template-lte-mme]
_update_hash_filename_ = instance-mme.jinja2.cfg _update_hash_filename_ = instance-mme.jinja2.cfg
md5sum = 51b8762d4691f525d0228fa1f286e772 md5sum = 067dd86656e73cd98ab0cbac53973259
[ue_db.jinja2.cfg] [ue_db.jinja2.cfg]
filename = config/ue_db.jinja2.cfg filename = config/ue_db.jinja2.cfg
......
...@@ -16,6 +16,12 @@ ...@@ -16,6 +16,12 @@
"description": "Set to true if external eNB / gNB will need to connect to this core network.", "description": "Set to true if external eNB / gNB will need to connect to this core network.",
"type": "boolean" "type": "boolean"
}, },
"iperf3": {
"default": false,
"title": "iperf3 UDP server",
"description": "Activate iperf3 UDP server",
"type": "boolean"
},
{%- endif %} {%- endif %}
"tx_gain": { "tx_gain": {
"title": "Tx gain", "title": "Tx gain",
......
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
"description": "Set to true if external eNB / gNB will need to connect to this core network.", "description": "Set to true if external eNB / gNB will need to connect to this core network.",
"type": "boolean" "type": "boolean"
}, },
"iperf3": {
"default": false,
"title": "iperf3 UDP server",
"description": "Activate iperf3 UDP server",
"type": "boolean"
},
"use_ipv4": { "use_ipv4": {
"default": false, "default": false,
"title": "Use IPv4", "title": "Use IPv4",
......
...@@ -16,6 +16,12 @@ ...@@ -16,6 +16,12 @@
"description": "Set to true if external eNB / gNB will need to connect to this core network.", "description": "Set to true if external eNB / gNB will need to connect to this core network.",
"type": "boolean" "type": "boolean"
}, },
"iperf3": {
"default": false,
"title": "iperf3 UDP server",
"description": "Activate iperf3 UDP server",
"type": "boolean"
},
{%- endif %} {%- endif %}
"tx_gain": { "tx_gain": {
"title": "Tx gain", "title": "Tx gain",
......
...@@ -7,6 +7,10 @@ parts = ...@@ -7,6 +7,10 @@ parts =
tun-up-promise tun-up-promise
monitor-base monitor-base
publish-connection-information publish-connection-information
{% if slapparameter_dict.get("iperf3", None) %}
iperf-service
port-listening-promise
{% endif %}
extends = {{ monitor_template }} extends = {{ monitor_template }}
...@@ -114,6 +118,25 @@ wrapper-path = ${directory:bin}/mme-ifup-empty ...@@ -114,6 +118,25 @@ 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) %}
### iperf3
[iperf-service]
recipe = slapos.cookbook:wrapper
port = 5001
ip = ${slap-configuration:tun-ipv4-addr}
command-line = ${iperf3:location}/bin/iperf3 --server --interval 1 --port ${:port} --bind ${:ip}
wrapper-path = ${directory:service}/iperf3
mode = 0775
pidfile = ${directory:run}/iperf3.pid
[port-listening-promise]
<= monitor-promise-base
promise = check_socket_listening
name = iperf3-port-listening.py
config-host = ${iperf-service:ip}
config-port = ${iperf-service:port}
{% endif %}
[config-base] [config-base]
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
extensions = jinja2.ext.do extensions = jinja2.ext.do
......
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
"description": "Set to true if external eNB / gNB will need to connect to this core network.", "description": "Set to true if external eNB / gNB will need to connect to this core network.",
"type": "boolean" "type": "boolean"
}, },
"iperf3": {
"default": false,
"title": "iperf3 UDP server",
"description": "Activate iperf3 UDP server",
"type": "boolean"
},
"tx_gain": { "tx_gain": {
"title": "Tx gain", "title": "Tx gain",
"description": "Tx gain (in dB)", "description": "Tx gain (in dB)",
......
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
"description": "Set to true if external eNB / gNB will need to connect to this core network.", "description": "Set to true if external eNB / gNB will need to connect to this core network.",
"type": "boolean" "type": "boolean"
}, },
"iperf3": {
"default": false,
"title": "iperf3 UDP server",
"description": "Activate iperf3 UDP server",
"type": "boolean"
},
"tx_gain": { "tx_gain": {
"title": "Tx gain", "title": "Tx gain",
"description": "Tx gain (in dB)", "description": "Tx gain (in dB)",
......
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
"description": "Set to true if external eNB / gNB will need to connect to this core network.", "description": "Set to true if external eNB / gNB will need to connect to this core network.",
"type": "boolean" "type": "boolean"
}, },
"iperf3": {
"default": false,
"title": "iperf3 UDP server",
"description": "Activate iperf3 UDP server",
"type": "boolean"
},
"tx_gain": { "tx_gain": {
"title": "Tx gain", "title": "Tx gain",
"description": "Tx gain (in dB)", "description": "Tx gain (in dB)",
......
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
"description": "Set to true if external eNB / gNB will need to connect to this core network.", "description": "Set to true if external eNB / gNB will need to connect to this core network.",
"type": "boolean" "type": "boolean"
}, },
"iperf3": {
"default": false,
"title": "iperf3 UDP server",
"description": "Activate iperf3 UDP server",
"type": "boolean"
},
"tx_gain": { "tx_gain": {
"title": "Tx gain", "title": "Tx gain",
"description": "Tx gain (in dB)", "description": "Tx gain (in dB)",
......
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
"description": "Set to true if external eNB / gNB will need to connect to this core network.", "description": "Set to true if external eNB / gNB will need to connect to this core network.",
"type": "boolean" "type": "boolean"
}, },
"iperf3": {
"default": false,
"title": "iperf3 UDP server",
"description": "Activate iperf3 UDP server",
"type": "boolean"
},
"tx_gain": { "tx_gain": {
"title": "Tx gain", "title": "Tx gain",
"description": "Tx gain (in dB)", "description": "Tx gain (in dB)",
......
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
"description": "Set to true if external eNB / gNB will need to connect to this core network.", "description": "Set to true if external eNB / gNB will need to connect to this core network.",
"type": "boolean" "type": "boolean"
}, },
"iperf3": {
"default": false,
"title": "iperf3 UDP server",
"description": "Activate iperf3 UDP server",
"type": "boolean"
},
"tx_gain": { "tx_gain": {
"title": "Tx gain", "title": "Tx gain",
"description": "Tx gain (in dB)", "description": "Tx gain (in dB)",
......
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
"description": "Set to true if external eNB / gNB will need to connect to this core network.", "description": "Set to true if external eNB / gNB will need to connect to this core network.",
"type": "boolean" "type": "boolean"
}, },
"iperf3": {
"default": false,
"title": "iperf3 UDP server",
"description": "Activate iperf3 UDP server",
"type": "boolean"
},
"tx_gain": { "tx_gain": {
"title": "Tx gain", "title": "Tx gain",
"description": "Tx gain (in dB)", "description": "Tx gain (in dB)",
......
...@@ -15,6 +15,12 @@ ...@@ -15,6 +15,12 @@
"description": "Set to true if external eNB / gNB will need to connect to this core network.", "description": "Set to true if external eNB / gNB will need to connect to this core network.",
"type": "boolean" "type": "boolean"
}, },
"iperf3": {
"default": false,
"title": "iperf3 UDP server",
"description": "Activate iperf3 UDP server",
"type": "boolean"
},
"tx_gain": { "tx_gain": {
"title": "Tx gain", "title": "Tx gain",
"description": "Tx gain (in dB)", "description": "Tx gain (in dB)",
......
...@@ -5,6 +5,7 @@ extends = ...@@ -5,6 +5,7 @@ extends =
../../stack/monitor/buildout.cfg ../../stack/monitor/buildout.cfg
../../component/logrotate/buildout.cfg ../../component/logrotate/buildout.cfg
../../component/nghttp2/buildout.cfg ../../component/nghttp2/buildout.cfg
../../component/iperf3/buildout.cfg
parts += parts +=
template template
...@@ -17,6 +18,7 @@ parts += ...@@ -17,6 +18,7 @@ parts +=
gnb.jinja2.cfg gnb.jinja2.cfg
ue_db.jinja2.cfg ue_db.jinja2.cfg
sib23.asn sib23.asn
iperf3
# unimplemented parts - the http monitor and better log handling using logrotate # unimplemented parts - the http monitor and better log handling using logrotate
# apache-php # apache-php
# logrotate # logrotate
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment