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
72438c62
Commit
72438c62
authored
Nov 22, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
758e3726
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
50 deletions
+50
-50
software/ors-amarisoft/slaplte.jinja2
software/ors-amarisoft/slaplte.jinja2
+50
-50
No files found.
software/ors-amarisoft/slaplte.jinja2
View file @
72438c62
...
@@ -183,64 +183,64 @@
...
@@ -183,64 +183,64 @@
XXX defaults ?
XXX defaults ?
#}
#}
{%- macro load_iru_and_icell(iru_dict, icell_dict, icell_kind)
%}
{%- macro load_iru_and_icell(iru_dict, icell_dict, icell_kind) %}
{%- 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 'ru_type' in _
%}
{%- if 'ru_type' in _ %}
{%- set iru = ishared
%}
{%- set iru = ishared %}
{%- for k, v in defaults['ru'].items()
%}
{%- for k, v in defaults['ru'].items() %}
{%- do _.setdefault(k, v)
%}
{%- do _.setdefault(k, v) %}
{%- endfor
%}
{%- endfor %}
{%- for k, v in defaults.get('ru/'+_.ru_type, {}).items()
%}
{%- for k, v in defaults.get('ru/'+_.ru_type, {}).items() %}
{%- do _.setdefault(k, v)
%}
{%- do _.setdefault(k, v) %}
{%- endfor
%}
{%- endfor %}
{%- if _.ru_link_type == 'cpri'
%}
{%- if _.ru_link_type == 'cpri' %}
{%- set link = _.cpri_link
%}
{%- set link = _.cpri_link %}
{%- for k, v in defaults['cpri_link'].items()
%}
{%- for k, v in defaults['cpri_link'].items() %}
{%- do link.setdefault(k, v)
%}
{%- do link.setdefault(k, v) %}
{%- endfor
%}
{%- endfor %}
{%- endif
%}
{%- endif %}
{%- do iru_dict.update({ref: iru})
%}
{%- do iru_dict.update({ref: iru}) %}
{%- elif (icell_kind == 'enb' and 'cell_type' in _) or
{%- elif (icell_kind == 'enb' and 'cell_type' in _) or
(icell_kind == 'ue' and 'ue_cell_type' in _)
%}
(icell_kind == 'ue' and 'ue_cell_type' in _) %}
{%- set icell = ishared
%}
{%- set icell = ishared %}
{%- if icell_kind == 'enb'
%}
{%- if icell_kind == 'enb' %}
{%- for k, v in defaults['cell/%s' % _.cell_type].items() %}
{%- for k, v in defaults['cell/%s' % _.cell_type].items() %}
{%- do _.setdefault(k, v)
%}
{%- do _.setdefault(k, v) %}
{%- endfor
%}
{%- endfor %}
{%- for k, v in defaults['cell/%s/%s' % (_.cell_type, _.rf_mode)].items() %}
{%- for k, v in defaults['cell/%s/%s' % (_.cell_type, _.rf_mode)].items() %}
{%- do _.setdefault(k, v)
%}
{%- do _.setdefault(k, v) %}
{%- endfor
%}
{%- endfor %}
{%- set xcell_type = _.cell_type
%}
{%- set xcell_type = _.cell_type %}
{%- else
%}
{%- else %}
{%- set xcell_type = _.ue_cell_type
%}
{%- set xcell_type = _.ue_cell_type %}
{%- endif
%}
{%- endif %}
{%- if xcell_type == 'lte'
%}
{%- if xcell_type == 'lte' %}
{%- do _.setdefault('ul_earfcn', J(jdefault_ul_earfcn(_.dl_earfcn)))
%}
{%- do _.setdefault('ul_earfcn', J(jdefault_ul_earfcn(_.dl_earfcn))) %}
{%- elif xcell_type == 'nr'
%}
{%- elif xcell_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('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 icell_dict.update({ref: icell})
%}
{%- do icell_dict.update({ref: icell}) %}
{%- set ru = _['ru']
%}
{%- set ru = _['ru'] %}
{%- if ru.ru_type not in ('ru_ref', 'ruincell_ref')
%}
{%- if ru.ru_type not in ('ru_ref', 'ruincell_ref') %}
{#- embedded ru definition -> expose it as `_<cell_ref>_ru`
#}
{#- embedded ru definition -> expose it as `_<cell_ref>_ru` #}
{%- do iru_dict.update({'_%s_ru' % ref: {
{%- do iru_dict.update({'_%s_ru' % ref: {
'_': ru,
'_': ru,
'slave_title': '%s. RU' % icell.slave_title,
'slave_title': '%s. RU' % icell.slave_title,
'slave_reference': icell.slave_reference,
'slave_reference': icell.slave_reference,
}})
%}
}}) %}
{%- endif
%}
{%- endif %}
{%- 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) %}
{#- do print('\n>>> iru_dict:'), pprint(iru_dict) #}
{#- do print('\n>>> iru_dict:'), pprint(iru_dict) #}
{#- do print('\n>>> icell_dict:'), pprint(icell_dict) #}
{#- do print('\n>>> icell_dict:'), pprint(icell_dict) #}
...
...
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