Commit ee9e2cb7 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent a51dd943
......@@ -6,8 +6,6 @@
{
log_options: "all.level=error,all.max_size=0,nas.level=debug,nas.max_size=1,s1ap.level=debug,s1ap.max_size=1,x2ap.level=debug,x2ap.max_size=1,rrc.level=debug,rrc.max_size=1,phy.level=info,file.rotate=1G,file.path=/dev/null",
......
......@@ -38,10 +38,10 @@
{%- endif %}
{%- endfor %}
{# jcell_ru_ref returns RU reference linked from a cell.
if the cell embeds RU definition, its reference comes as `_<cell_ref>_ru`. #}
{#- jcell_ru_ref returns RU reference linked from a cell.
if the cell embeds RU definition, its reference comes as `_<cell_ref>_ru`. #}
{%- macro jcell_ru_ref(cell) %}
{{ _jcell_ru_ref(cell, []) | tojson }}
{{- _jcell_ru_ref(cell, []) | tojson }}
{%- endmacro %}
{%- macro _jcell_ru_ref(cell, seen) %}
{%- set cell_ref = J(jref_of_shared(cell)) %}
......@@ -49,17 +49,17 @@
{%- for x in seen %}
{%- do error(x, "%s form a cycle via RU references" % seen) %}
{%- endfor %}
{# XXX what to return ? #}
{#- XXX what to return ? #}
{%- else %}
{%- do seen.append(cell_ref) %}
{%- set ru = cell['ru'] %}
{%- if ru['ru_type'] == 'ru_ref' %}
{{ ru['ru_ref'] | tojson }}
{{- ru['ru_ref'] | tojson }}
{%- elif ru['ru_type'] == 'ruincell_ref' %}
{{ jcell_ru_ref(ru['ruincell_ref']) }}
{{- jcell_ru_ref(ru['ruincell_ref']) }}
{%- else %}
{# ru definition is embedded into cell #}
{{ ('_%s_ru' % J(jref_of_shared(cell))) | tojson }}
{#- ru definition is embedded into cell #}
{{- ('_%s_ru' % J(jref_of_shared(cell))) | tojson }}
{%- endif %}
{%- endif %}
{%- endmacro %}
......
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