Commit b0d1a1ea authored by Kirill Smelkov's avatar Kirill Smelkov

software/ors-amarisoft: enb/ors: Reuse ru/ schemas for n_antenna_{dl,ul} and {tx,rx}_gain

A bit less duplication.
parent 84e417ac
...@@ -19,15 +19,19 @@ ...@@ -19,15 +19,19 @@
"default": "{{ default_lte_bandwidth }}" "default": "{{ default_lte_bandwidth }}"
}, },
"n_antenna_dl": { "n_antenna_dl": {
"title": "Number of DL antennas", "$ref": "ru/common.json#/properties/n_antenna_dl",
"description": "1 or 2. Number of DL antennas.", "enum": [
"type": "number", 1,
2
],
"default": {{ default_n_antenna_dl }} "default": {{ default_n_antenna_dl }}
}, },
"n_antenna_ul": { "n_antenna_ul": {
"title": "Number of UL antennas", "$ref": "ru/common.json#/properties/n_antenna_ul",
"description": "1 or 2. Number of UL antennas.", "enum": [
"type": "number", 1,
2
],
"default": {{ default_n_antenna_ul }} "default": {{ default_n_antenna_ul }}
}, },
"rf_mode": { "rf_mode": {
...@@ -173,14 +177,10 @@ ...@@ -173,14 +177,10 @@
{%- endif %} {%- endif %}
{%- if bbu == 'ors' %} {%- if bbu == 'ors' %}
"tx_gain": { "tx_gain": {
"title": "Tx gain", "$ref": "ru/sdr/input-schema.json#/properties/tx_gain"
"description": "Tx gain (in dB)",
"type": "number"
}, },
"rx_gain": { "rx_gain": {
"title": "Rx gain", "$ref": "ru/sdr/input-schema.json#/properties/rx_gain"
"description": "Rx gain (in dB)",
"type": "number"
}, },
{%- endif %} {%- endif %}
{%- if bbu != 'ors' %} {%- if bbu != 'ors' %}
......
...@@ -11,15 +11,19 @@ ...@@ -11,15 +11,19 @@
"default": {{ default_nr_bandwidth }} "default": {{ default_nr_bandwidth }}
}, },
"n_antenna_dl": { "n_antenna_dl": {
"title": "Number of DL antennas", "$ref": "ru/common.json#/properties/n_antenna_dl",
"description": "1 or 2. Number of DL antennas.", "enum": [
"type": "number", 1,
2
],
"default": {{ default_n_antenna_dl }} "default": {{ default_n_antenna_dl }}
}, },
"n_antenna_ul": { "n_antenna_ul": {
"title": "Number of UL antennas", "$ref": "ru/common.json#/properties/n_antenna_ul",
"description": "1 or 2. Number of UL antennas.", "enum": [
"type": "number", 1,
2
],
"default": {{ default_n_antenna_ul }} "default": {{ default_n_antenna_ul }}
}, },
"rf_mode": { "rf_mode": {
...@@ -164,14 +168,10 @@ ...@@ -164,14 +168,10 @@
{%- endif %} {%- endif %}
{%- if bbu == 'ors' %} {%- if bbu == 'ors' %}
"tx_gain": { "tx_gain": {
"title": "Tx gain", "$ref": "ru/sdr/input-schema.json#/properties/tx_gain"
"description": "Tx gain (in dB)",
"type": "number"
}, },
"rx_gain": { "rx_gain": {
"title": "Rx gain", "$ref": "ru/sdr/input-schema.json#/properties/rx_gain"
"description": "Rx gain (in dB)",
"type": "number"
}, },
{%- endif %} {%- endif %}
{%- if bbu != 'ors' %} {%- if bbu != 'ors' %}
......
...@@ -18,15 +18,19 @@ ...@@ -18,15 +18,19 @@
"default": "20 MHz" "default": "20 MHz"
}, },
"n_antenna_dl": { "n_antenna_dl": {
"title": "Number of DL antennas", "$ref": "ru/common.json#/properties/n_antenna_dl",
"description": "1 or 2. Number of DL antennas.", "enum": [
"type": "number", 1,
2
],
"default": 2 "default": 2
}, },
"n_antenna_ul": { "n_antenna_ul": {
"title": "Number of UL antennas", "$ref": "ru/common.json#/properties/n_antenna_ul",
"description": "1 or 2. Number of UL antennas.", "enum": [
"type": "number", 1,
2
],
"default": 2 "default": 2
}, },
"rf_mode": { "rf_mode": {
...@@ -84,14 +88,10 @@ ...@@ -84,14 +88,10 @@
"default": 204 "default": 204
}, },
"tx_gain": { "tx_gain": {
"title": "Tx gain", "$ref": "ru/sdr/input-schema.json#/properties/tx_gain"
"description": "Tx gain (in dB)",
"type": "number"
}, },
"rx_gain": { "rx_gain": {
"title": "Rx gain", "$ref": "ru/sdr/input-schema.json#/properties/rx_gain"
"description": "Rx gain (in dB)",
"type": "number"
}, },
"enb_id": { "enb_id": {
"title": "eNB ID", "title": "eNB ID",
......
...@@ -10,15 +10,19 @@ ...@@ -10,15 +10,19 @@
"default": 40 "default": 40
}, },
"n_antenna_dl": { "n_antenna_dl": {
"title": "Number of DL antennas", "$ref": "ru/common.json#/properties/n_antenna_dl",
"description": "1 or 2. Number of DL antennas.", "enum": [
"type": "number", 1,
2
],
"default": 2 "default": 2
}, },
"n_antenna_ul": { "n_antenna_ul": {
"title": "Number of UL antennas", "$ref": "ru/common.json#/properties/n_antenna_ul",
"description": "1 or 2. Number of UL antennas.", "enum": [
"type": "number", 1,
2
],
"default": 2 "default": 2
}, },
"rf_mode": { "rf_mode": {
...@@ -76,14 +80,10 @@ ...@@ -76,14 +80,10 @@
"default": "0x01" "default": "0x01"
}, },
"tx_gain": { "tx_gain": {
"title": "Tx gain", "$ref": "ru/sdr/input-schema.json#/properties/tx_gain"
"description": "Tx gain (in dB)",
"type": "number"
}, },
"rx_gain": { "rx_gain": {
"title": "Rx gain", "$ref": "ru/sdr/input-schema.json#/properties/rx_gain"
"description": "Rx gain (in dB)",
"type": "number"
}, },
"gnb_id": { "gnb_id": {
"title": "gNB ID", "title": "gNB ID",
......
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