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