Commit 29189ef2 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent a345cf59
...@@ -330,35 +330,35 @@ ...@@ -330,35 +330,35 @@
ipeercell_dict keeps peer cell shared instances: reference -> ipeercell ipeercell_dict keeps peer cell shared instances: reference -> ipeercell
#} #}
{%- macro load_ipeercell(ipeercell_dict) %} {%- macro load_ipeercell(ipeercell_dict) %}
{%- 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)) %}
{%- set _ = ishared['_'] %} {%- set _ = ishared['_'] %}
{%- if 'peer_cell_type' in _ %} {%- if 'peer_cell_type' in _ %}
{%- set ipeercell = ishared %} {%- set ipeercell = ishared %}
{%- for k, v in defaults['peercell/' + _.peer_cell_type].items() %} {%- for k, v in defaults['peercell/' + _.peer_cell_type].items() %}
{%- do _.setdefault(k, v) %} {%- do _.setdefault(k, v) %}
{%- endfor %} {%- endfor %}
{%- if _.peer_cell_type == 'lte' %} {%- if _.peer_cell_type == 'lte' %}
{%- do _.setdefault('ul_earfcn', J(jdefault_ul_earfcn(_.dl_earfcn))) %} {%- do _.setdefault('ul_earfcn', J(jdefault_ul_earfcn(_.dl_earfcn))) %}
{%- elif _.peer_cell_type == 'nr' %} {%- elif _.peer_cell_type == 'nr' %}
{%- do _.setdefault('ul_nr_arfcn', J(jdefault_ul_nr_arfcn(_.dl_nr_arfcn, _.nr_band))) %} {%- do _.setdefault('ul_nr_arfcn', J(jdefault_ul_nr_arfcn(_.dl_nr_arfcn, _.nr_band))) %}
{%- do _.setdefault('subcarrier_spacing', {%- do _.setdefault('subcarrier_spacing',
30 if nrarfcn_module.get_duplex_mode(_.nr_band).lower() == 'tdd' else 30 if nrarfcn_module.get_duplex_mode(_.nr_band).lower() == 'tdd' else
15) %} 15) %}
{%- do _.setdefault('ssb_nr_arfcn', J(jdefault_ssb_nr_arfcn(_.dl_nr_arfcn))) %} {%- do _.setdefault('ssb_nr_arfcn', J(jdefault_ssb_nr_arfcn(_.dl_nr_arfcn))) %}
{%- else %} {%- else %}
{%- do bug('unreachable') %} {%- do bug('unreachable') %}
{%- endif %} {%- endif %}
{%- do ipeercell_dict.update({ref: ipeercell}) %} {%- do ipeercell_dict.update({ref: ipeercell}) %}
{%- else %} {%- else %}
{%- do qother.append(ishared) %} {%- do qother.append(ishared) %}
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}
{%- do qshared_instance_list.clear() %} {%- do qshared_instance_list.clear() %}
{%- do qshared_instance_list.extend(qother) %} {%- do qshared_instance_list.extend(qother) %}
{%- endmacro %} {%- endmacro %}
{#- load_iue initializes UE registry. {#- load_iue initializes UE registry.
......
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