Commit ed1c4c26 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 31f4a8a1
...@@ -41,7 +41,7 @@ class enbWebSocket: ...@@ -41,7 +41,7 @@ class enbWebSocket:
if {{ testing }}: if {{ testing }}:
r = { r = {
'message': 'rf', 'message': 'rf',
'rf_info': "CPRI: x16 HW SW\n" 'rf_info': "CPRI: x16 HW SW\n" # XXX update
} }
else: else:
self.send({ self.send({
......
...@@ -36,7 +36,6 @@ parts = ...@@ -36,7 +36,6 @@ parts =
check-lopcomm-sync.py check-lopcomm-sync.py
check-lopcomm-config-log.py check-lopcomm-config-log.py
check-lopcomm-stats-log.py check-lopcomm-stats-log.py
check-cpri-lock.py
{% endif %} {% endif %}
{% if slapparameter_dict.get("dnsmasq", None) %} {% if slapparameter_dict.get("dnsmasq", None) %}
dnsmasq-service dnsmasq-service
...@@ -659,13 +658,6 @@ config-testing = {{ slapparameter_dict.get("testing", False) }} ...@@ -659,13 +658,6 @@ config-testing = {{ slapparameter_dict.get("testing", False) }}
config-config-log = ${lopcomm-rrh-config-template:log-output} config-config-log = ${lopcomm-rrh-config-template:log-output}
config-stats-period = {{ slapparameter_dict.get("enb_stats_fetch_period", 60) }} config-stats-period = {{ slapparameter_dict.get("enb_stats_fetch_period", 60) }}
# XXX -> trx_sdr ?
[check-cpri-lock.py]
<= macro.promise
promise = check_cpri_lock
config-testing = {{ slapparameter_dict.get("testing", False) }}
config-amarisoft-rf-info-log = ${amarisoft-rf-info-template:log-output}
config-stats-period = {{ slapparameter_dict.get("enb_stats_fetch_period", 60) }}
[check-rx-saturated.py] [check-rx-saturated.py]
<= macro.promise <= macro.promise
......
...@@ -22,28 +22,38 @@ ...@@ -22,28 +22,38 @@
{%- do parts_list.append(name) %} {%- do parts_list.append(name) %}
[{{ name }}] [{{ name }}]
{%- endmacro %} {%- endmacro %}
{%- macro promise(name) %}
{{ part(name) }}
<= macro.promise
config-testing = {{ slapparameter_dict.get("testing", False) }}
{%- endmacro %}
{%- for ru_ref, iru in iru_dict|dictsort %} {%- for ru_ref, iru in iru_dict|dictsort %}
{%- set ru = iru['_'] %} {%- set ru = iru['_'] %}
# {{ ru_ref }} {{ ru.n_antenna_dl }}T{{ ru.n_antenna_ul }}R XXX + ru arg # {{ ru_ref }} {{ ru.n_antenna_dl }}T{{ ru.n_antenna_ul }}R XXX + ru arg
{%- if ru.ru_link_type == 'sdr' %} {%- if ru.ru_link_type == 'sdr' %}
{%- for (i, n) in enumerate(ru.sdr_dev_list) %} {%- for (i, n) in enumerate(ru.sdr_dev_list) %}
{{ part('%s-check-sdr-busy%s.py' % (ru_ref, '-%d' % (i+1) if i > 0 else '')) }} {{ promise('%s-check-sdr-busy%s.py' % (ru_ref, '-%d' % (i+1) if i > 0 else '')) }}
<= macro.promise
promise = check_sdr_busy promise = check_sdr_busy
config-testing = {{ slapparameter_dict.get("testing", False) }}
config-sdr = {{ sdr }} config-sdr = {{ sdr }}
config-sdr_dev = {{ n }} config-sdr_dev = {{ n }}
config-dma_chan = 0 config-dma_chan = 0
{%- endfor %} {%- endfor %}
{%- elif ru.ru_link_type == 'cpri' %} {%- elif ru.ru_link_type == 'cpri' %}
{{ part('%s-check-sdr-busy.py' % ru_ref) }} {{ promise('%s-check-sdr-busy.py' % ru_ref) }}
<= macro.promise
promise = check_sdr_busy promise = check_sdr_busy
config-testing = {{ slapparameter_dict.get("testing", False) }}
config-sdr = {{ sdr }} config-sdr = {{ sdr }}
config-sdr_dev = {{ ru.cpri_link.sdr_dev }} config-sdr_dev = {{ ru.cpri_link.sdr_dev }}
config-dma_chan = {{ ru.cpri_link.sfp_port }} config-dma_chan = {{ ru.cpri_link.sfp_port }}
{{ promise('%s-check-cpri-lock.py' % ru_ref) }}
promise = check_cpri_lock
config-sdr_dev = {{ ru.cpri_link.sdr_dev }}
config-sfp_port = {{ ru.cpri_link.sfp_port }}
config-amarisoft-rf-info-log = ${amarisoft-rf-info-template:log-output}
config-stats-period = {{ slapparameter_dict.get("enb_stats_fetch_period", 60) }}
{%- else %} {%- else %}
{%- do bug('unreachable') %} {%- do bug('unreachable') %}
{%- endif %} {%- endif %}
......
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