Commit 1996c3e5 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 97941315
...@@ -109,14 +109,12 @@ ...@@ -109,14 +109,12 @@
in the kept instances _ is automatically json-decoded in the kept instances _ is automatically json-decoded
use load_iru_and_icell(kind) to initialize this cell and RU registries. use load_iru_and_icell(kind) to initialize this cell and RU registries.
kind=enb - load cells definition to serve them icell_kind=enb - load cells definition to serve them
kind=ue - load cells definition to connect to them icell_kind=ue - load cells definition to connect to them
XXX defaults ? XXX defaults ?
#} #}
{%- set icell_dict = {} %} {%- macro load_iru_and_icell(iru_dict, icell_dict, icell_kind) %}
{%- set iru_dict = {} %}
{%- macro load_iru_and_icell(kind) %}
{%- set qother = [] %} {%- set qother = [] %}
{%- for ishared in qshared_instance_list %} {%- for ishared in qshared_instance_list %}
{%- set ref = J(jref_of_shared(ishared)) %} {%- set ref = J(jref_of_shared(ishared)) %}
...@@ -130,10 +128,10 @@ ...@@ -130,10 +128,10 @@
{%- endfor %} {%- endfor %}
{%- endif %} {%- endif %}
{%- do iru_dict.update({ref: iru}) %} {%- do iru_dict.update({ref: iru}) %}
{%- elif (kind == 'enb' and 'cell_type' in _) or {%- elif (icell_kind == 'enb' and 'cell_type' in _) or
(kind == 'ue' and 'ue_cell_type' in _) %} (icell_kind == 'ue' and 'ue_cell_type' in _) %}
{%- set icell = ishared %} {%- set icell = ishared %}
{%- if kind == 'enb' %} {%- if icell_kind == 'enb' %}
{%- for k, v in defaults['cell/' + _.cell_type].items() %} {%- for k, v in defaults['cell/' + _.cell_type].items() %}
{%- do _.setdefault(k, v) %} {%- do _.setdefault(k, v) %}
{%- endfor %} {%- endfor %}
......
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