Commit 0c31de27 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent b35e50ae
...@@ -229,23 +229,23 @@ ...@@ -229,23 +229,23 @@
{%- endfor %} {%- endfor %}
{#- verify that there is no dangling cell->ru references #} {#- verify that there is no dangling cell->ru references #}
{%- for _, icell in icell_dict|dictsort %} {%- for _, icell in icell_dict|dictsort %}
{%- set ru_ref = J(jcell_ru_ref(icell, icell_dict)) %} {%- set ru_ref = J(jcell_ru_ref(icell, icell_dict)) %}
{%- if ru_ref not in iru_dict %} {%- if ru_ref not in iru_dict %}
{%- do ierror(icell, "referred RU %s does not exist" % ru_ref) %} {%- do ierror(icell, "referred RU %s does not exist" % ru_ref) %}
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}
{#- assign RUs rf_port and tx/rx channel indices #} {#- assign RUs rf_port and tx/rx channel indices #}
{%- set rf_chan = namespace(tx=0, rx=0) %} {%- set rf_chan = namespace(tx=0, rx=0) %}
{%- for rf_port, (ru_ref, iru) in enumerate(iru_dict|dictsort) %} {%- for rf_port, (ru_ref, iru) in enumerate(iru_dict|dictsort) %}
{%- set ru = iru['_'] %} {%- set ru = iru['_'] %}
{%- do ru.update({'_rf_port': rf_port, {%- do ru.update({'_rf_port': rf_port,
'_rf_chan_tx': rf_chan.tx, '_rf_chan_tx': rf_chan.tx,
'_rf_chan_rx': rf_chan.rx}) %} '_rf_chan_rx': rf_chan.rx}) %}
{%- set rf_chan.tx = rf_chan.tx + ru.n_antenna_dl %} {%- set rf_chan.tx = rf_chan.tx + ru.n_antenna_dl %}
{%- set rf_chan.rx = rf_chan.rx + ru.n_antenna_ul %} {%- set rf_chan.rx = rf_chan.rx + ru.n_antenna_ul %}
{%- endfor %} {%- endfor %}
{#- assign TAP interfaces to cpri RUs #} {#- assign TAP interfaces to cpri RUs #}
{%- set iru_vcpri = list(iru_dict|dictsort | selectattr('1._.ru_link_type', '==', 'cpri')) %} {%- set iru_vcpri = list(iru_dict|dictsort | selectattr('1._.ru_link_type', '==', 'cpri')) %}
......
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