Commit cfd1f645 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 5b0e142f
{ // XXX -> amari ?{
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,ngap.level=debug,ngap.max_size=1,xnap.level=debug,xnap.max_size=1,phy.level=info,file.rotate=1G,file.path=/dev/null", 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,ngap.level=debug,ngap.max_size=1,xnap.level=debug,xnap.max_size=1,phy.level=info,file.rotate=1G,file.path=/dev/null",
log_filename: "log/enb.log", log_filename: "log/enb.log",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
{#- XXX icell vs cell / iru vs ru everyhere + document it #} {#- XXX icell vs cell / iru vs ru everyhere + document it #}
{#- XXX TDD check #} {#- XXX TDD check #}
{#- defaults provide default values for parameters. {#- defaults provide default values for enb parameters.
it should be kept in sync with "default" in json schemas #} it should be kept in sync with "default" in json schemas #}
{#- XXX ssb_pos_bitmap=10000000 is for TDD only; FDD -> "1000" #} {#- XXX ssb_pos_bitmap=10000000 is for TDD only; FDD -> "1000" #}
{%- set defaults = { {%- set defaults = {
...@@ -30,30 +30,22 @@ ...@@ -30,30 +30,22 @@
} }
%} %}
{#- cfg returns value of configuration parameter name #} {#- cfg returns value of configuration parameter name #} // XXX -> amari ?
{%- macro cfg(name) %} {%- macro cfg(name) %}
{{- slapparameter_dict.get(name, defaults.get(name)) }} {{- slapparameter_dict.get(name, defaults.get(name)) }}
{%- endmacro %} {%- endmacro %}
{%- import 'lte.jinja2' as lte with context %} {%- import 'lte.jinja2' as lte with context %}
{%- set iru_dict = lte.iru_dict %} {%- set iru_dict = lte.iru_dict %}
{%- set icell_dict = lte.icell_dict %} {%- set icell_dict = lte.icell_dict %}
{%- set J = lte.J %} {%- set J = lte.J %}
{%- set jref_of_shared = lte.jref_of_shared %} {%- set jref_of_shared = lte.jref_of_shared %}
{%- set jcell_ru_ref = lte.jcell_ru_ref %} {%- set jcell_ru_ref = lte.jcell_ru_ref %}
{#- XXX error(ishared, msg) vvv is debug stub -#}
{%- macro error(ishared, msg) %}
{%- set msg = 'E: %s: %s\n' % (J(jref_of_shared(ishared)), msg) %}
{%- do print('\n%s' % msg) %}
{%- do assert(False, msg) %}
{%- endmacro %}
{%- do lte.load_iru_and_icell() %} {%- do lte.load_iru_and_icell() %}
{%- do lte.load_ipeer() %} {%- do lte.load_ipeer() %}
{#- XXX verify that lte.qshared_instance_list is empty #} {%- do lte.check_loaded_everything() %}
{#- start of the config -#} {#- start of the config -#}
......
...@@ -26,6 +26,16 @@ ...@@ -26,6 +26,16 @@
{%- do assert(False, msg) %} {%- do assert(False, msg) %}
{%- endmacro %} {%- endmacro %}
{#- error reports an error about shared instance #}
{#- XXX -> ierror ? #}
{#- XXX error(ishared, msg) vvv is debug stub -#}
{%- macro error(ishared, msg) %}
{%- set msg = 'E: %s: %s\n' % (J(jref_of_shared(ishared)), msg) %}
{%- do print('\n%s' % msg) %}
{%- do assert(False, msg) %}
{%- endmacro %}
{#- ---- loading ---- #} {#- ---- loading ---- #}
...@@ -35,6 +45,13 @@ ...@@ -35,6 +45,13 @@
{%- set qshared_instance_list = slap_configuration.get('slave-instance-list', []) %} {%- set qshared_instance_list = slap_configuration.get('slave-instance-list', []) %}
{#- check_loaded_everything verifies that all shared instances were handling during the load. #}
{%- macro check_loaded_everything() %}
{%- for ishared in qshared_instance_list %}
{%- do error(ishared, "shared instance of unsupported type") %}
{%- endfor %}
{%- endmacro %}
{#- icell_dict keeps cell shared instances: reference -> icell {#- icell_dict keeps cell shared instances: reference -> icell
iru_dict keeps RU shared instances + RU whose definition is embedded into a cell: reference -> iRU iru_dict keeps RU shared instances + RU whose definition is embedded into a cell: reference -> iRU
in the kept instances _ is automatically json-decoded in the kept instances _ is automatically json-decoded
......
...@@ -43,12 +43,8 @@ ...@@ -43,12 +43,8 @@
{#- XXX verify ue.ue_type in lte|nr #} {#- XXX verify ue.ue_type in lte|nr #}
{%- do lte.load_iru_and_icell() %} {%- do lte.load_iru_and_icell() %}
{%- do lte.load_ipeer() %} {%- do lte.check_loaded_everything() %}
{#- XXX verify that lte.qshared_instance_list is empty #}
{%- for ishared in lte.qshared_instance_list %}
{%- do error(ishared, "shared instance of unsupported type") %}
{%- endfor %}
{#- start of the config -#} {#- start of the config -#}
......
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