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

ors-amarisoft: add iperf3 server

parent 74054163
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
[template] [template]
filename = instance.cfg filename = instance.cfg
md5sum = fc7bccab64e6794b33766ca9925231c8 md5sum = f0a12f3abc25713f5c79c9bf13290340
[template-lte-enb-epc] [template-lte-enb-epc]
_update_hash_filename_ = instance-enb-epc.jinja2.cfg _update_hash_filename_ = instance-enb-epc.jinja2.cfg
...@@ -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 = 19166c4a4ecf6b744aac36a068248d85
[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)",
......
...@@ -148,6 +148,7 @@ extra-context = ...@@ -148,6 +148,7 @@ extra-context =
raw ltelogs_template ${ltelogs.jinja2.sh:target} raw ltelogs_template ${ltelogs.jinja2.sh:target}
raw openssl_location ${openssl:location} raw openssl_location ${openssl:location}
raw nghttp2_location ${nghttp2:location} raw nghttp2_location ${nghttp2:location}
raw iperf3_location ${iperf3:location}
key ue_db_path ue-db-config:output key ue_db_path ue-db-config:output
[ue-db-config] [ue-db-config]
......
...@@ -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