Commit c93f766e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent f5c75b3a
...@@ -97,17 +97,25 @@ ...@@ -97,17 +97,25 @@
name: "sdr", name: "sdr",
{%- endif %} {%- endif %}
{%- for rf_port, (ru_ref, ru) in enumerate(ru_dict|dictsort) %} {%- set dev_argv = [] %}
{%- do ru['.rf_port'] = rf_port %} {%- for rf_port, (ru_ref, ru) in enumerate(ru_dict|dictsort) %}
{%- if ru['ru_type'] == 'sdr' %} {%- do ru['.rf_port'] = rf_port %}
{%- if ru['ru_type'] == 'sdr' %}
{%- for n in ru['dev_list'] %}
{%- dev_argv.append("dev%d=/dev/sdr%x" % (len(dev_argv), n)) %}
{%- endfor %}
rx_antenna:"tx_rx", rx_antenna:"tx_rx",
tdd_tx_mod: 1, tdd_tx_mod: 1,
{%- elif ru['ru_link_type'] == 'cpri' %}
{%-
{%- elif ru['ru_type] == 'lopcomm' XXX %} {%- elif ru['ru_type] == 'lopcomm' XXX %}
XXX XXX
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}
args: "{{dev_argv | join(',')}}",
} }
......
...@@ -20,6 +20,9 @@ ...@@ -20,6 +20,9 @@
"template": "lopcomm", "template": "lopcomm",
"options": { "hidden": true } "options": { "hidden": true }
}, },
"$ref": "../common-input-schema.json",
"mac_addr": { "mac_addr": {
"title": "RRH MAC address", "title": "RRH MAC address",
"description": "RRH MAC address used for DNSMASQ", "description": "RRH MAC address used for DNSMASQ",
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"options": { "hidden": true } "options": { "hidden": true }
}, },
"rf_port": { "dev_list": {
"title": "SDR boards", "title": "SDR boards",
"description": "Which SDR boards to use as combined RF port", "description": "Which SDR boards to use as combined RF port",
"type": "array", "type": "array",
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
}, },
"minItems": 1, "minItems": 1,
"uniqueItems": true "uniqueItems": true
} },
"$ref": "../common-input-schema.json"
} }
} }
rfport: string # e.g. sdrX + sdrY + sdrZ
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"type": "object", "type": "object",
"required": [ "required": [
"ru_type", "ru_type"
], ],
"properties": { "properties": {
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
"template": "ru_sunvawe", "template": "ru_sunvawe",
"options": { "hidden": true } "options": { "hidden": true }
}, },
}
"$ref": "../common-input-schema.json"
}
} }
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