Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos
Commits
97941315
Commit
97941315
authored
Oct 04, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
de62042f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
software/ors-amarisoft/amari/slap.jinja2
software/ors-amarisoft/amari/slap.jinja2
+6
-0
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+2
-2
software/ors-amarisoft/config/enb.jinja2.cfg
software/ors-amarisoft/config/enb.jinja2.cfg
+1
-6
No files found.
software/ors-amarisoft/amari/slap.jinja2
View file @
97941315
...
...
@@ -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.
It is needed to workaround jinja2 limitation that macro can return only
...
...
software/ors-amarisoft/buildout.hash.cfg
View file @
97941315
...
...
@@ -24,7 +24,7 @@ md5sum = 60bb7b7f3fd9a16cf7fb9c9c0f88bb06
[amari_slap.jinja2]
_update_hash_filename_ = amari/slap.jinja2
md5sum =
7bdd47558fb6e80c4a62938ab915fd7a
md5sum =
5fa2db5a98457f4ff9a4df18c2258b76
[ru_libinstance.jinja2.cfg]
_update_hash_filename_ = ru/libinstance.jinja2.cfg
...
...
@@ -84,7 +84,7 @@ md5sum = dcaac06553a3222b14c0013a13f4a149
[enb.jinja2.cfg]
filename = config/enb.jinja2.cfg
md5sum =
1f271ff4cf140ebd57faa79c3f761abb
md5sum =
00712e510924b8d2548bc9bc9d1d24d4
[sib23.jinja2.asn]
filename = config/sib23.jinja2.asn
...
...
software/ors-amarisoft/config/enb.jinja2.cfg
View file @
97941315
...
...
@@ -2,13 +2,8 @@
{#- XXX icell vs cell / iru vs ru everyhere + document it #}
{#- 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 %}
{%- 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 #}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment