Commit 97941315 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent de62042f
...@@ -46,6 +46,12 @@ ...@@ -46,6 +46,12 @@
%} %}
{#- cfg returns value of configuration parameter name #}
{%- macro cfg(name) %}
{{- slapparameter_dict.get(name, defaults.get(name)) }}
{%- endmacro %}
{#- J is used around macro calls to retrieve returned objects. {#- J is used around macro calls to retrieve returned objects.
It is needed to workaround jinja2 limitation that macro can return only It is needed to workaround jinja2 limitation that macro can return only
......
...@@ -24,7 +24,7 @@ md5sum = 60bb7b7f3fd9a16cf7fb9c9c0f88bb06 ...@@ -24,7 +24,7 @@ md5sum = 60bb7b7f3fd9a16cf7fb9c9c0f88bb06
[amari_slap.jinja2] [amari_slap.jinja2]
_update_hash_filename_ = amari/slap.jinja2 _update_hash_filename_ = amari/slap.jinja2
md5sum = 7bdd47558fb6e80c4a62938ab915fd7a md5sum = 5fa2db5a98457f4ff9a4df18c2258b76
[ru_libinstance.jinja2.cfg] [ru_libinstance.jinja2.cfg]
_update_hash_filename_ = ru/libinstance.jinja2.cfg _update_hash_filename_ = ru/libinstance.jinja2.cfg
...@@ -84,7 +84,7 @@ md5sum = dcaac06553a3222b14c0013a13f4a149 ...@@ -84,7 +84,7 @@ md5sum = dcaac06553a3222b14c0013a13f4a149
[enb.jinja2.cfg] [enb.jinja2.cfg]
filename = config/enb.jinja2.cfg filename = config/enb.jinja2.cfg
md5sum = 1f271ff4cf140ebd57faa79c3f761abb md5sum = 00712e510924b8d2548bc9bc9d1d24d4
[sib23.jinja2.asn] [sib23.jinja2.asn]
filename = config/sib23.jinja2.asn filename = config/sib23.jinja2.asn
......
...@@ -2,13 +2,8 @@ ...@@ -2,13 +2,8 @@
{#- 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 #}
{#- cfg returns value of configuration parameter name #} // XXX -> amari ?
{%- macro cfg(name) %}
{{- slapparameter_dict.get(name, defaults.get(name)) }}
{%- endmacro %}
{%- import 'amari_lte.jinja2' as lte with context %} {%- import 'amari_lte.jinja2' as lte with context %}
{%- from 'amari_slap.jinja2' import J, jref_of_shared, jcell_ru_ref with context %} {%- from 'amari_slap.jinja2' import J, jref_of_shared, jcell_ru_ref, cfg with context %}
{#- XXX kill: instance does this #} {#- XXX kill: instance does this #}
......
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