Commit 85eab5d9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 6d5d201c
......@@ -16,7 +16,7 @@
[template]
filename = instance.cfg
md5sum = 149ae45a3c6b99c7341551b8b63402f4
md5sum = e1eae1f1f53df0d0e1f9a650f341d2ed
[amari_lte.jinja2]
_update_hash_filename_ = amari/lte.jinja2
......@@ -80,7 +80,7 @@ md5sum = e5ca405581632c9ff9b435ff4a45d408
[template-enb]
_update_hash_filename_ = instance-enb.jinja2.cfg
md5sum = 6d14a7924981eed3fcf8f9fc97864066
md5sum = a8e7e21adecdc5b4f3c1381bf465142e
[template-gnb]
_update_hash_filename_ = instance-gnb.jinja2.cfg
......@@ -140,7 +140,7 @@ md5sum = e435990eb0a0d4be41efa9bd16dce09b
[ru_lopcomm_cu_config.jinja2.xml]
_update_hash_filename_ = ru/lopcomm/cu_config.jinja2.xml
md5sum = 3589be1efdfa9c2ebb26c6dcd07c0e02
md5sum = c5a0fb132d4afeeadd4d7f34bd2b1c73
[software.cfg.html]
_update_hash_filename_ = gadget/software.cfg.html
......
......@@ -341,12 +341,13 @@ context =
key slapparameter_dict slap-configuration:configuration
key gtp_addr_v6 slap-configuration:ipv6-random
raw gtp_addr_v4 {{ lan_ipv4 }}
raw one_watt {{ ors_version['one-watt'] }}
raw tx_gain {{ ors_version['current-tx-gain'] }}
raw rx_gain {{ ors_version['current-rx-gain'] }}
raw earfcn {{ ors_version['current-earfcn'] }}
import netaddr netaddr
${:extra-context}
# XXX reenable/rethink
{# raw one_watt {{ ors_version['one-watt'] }} #}
{# raw tx_gain {{ ors_version['current-tx-gain'] }} #}
{# raw rx_gain {{ ors_version['current-rx-gain'] }} #}
{# raw earfcn {{ ors_version['current-earfcn'] }} #}
[sib-config]
<= config-base
......
......@@ -184,9 +184,13 @@ init =
return subprocess.check_output(
["sudo", "-n", "/opt/amarisoft/get-sdr-info", "-" + cmd]
)
options['version'] = float(get_sdr_info('v').decode())
#options['version'] = float(get_sdr_info('v').decode())
options['version'] = get_sdr_info('v').decode()
#options['is_ors'] = is_ors = (options['version'] != 'UNKNOWN')
options['is_ors'] = is_ors = False
options['band'] = get_sdr_info('b').decode()
options['tdd'] = get_sdr_info('t').decode()
if is_ors:
options['one-watt'] = bool(options['version'] >= 4)
options['ors-version'] = "{} {} {}".format(
options['tdd'],
......
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