Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
slapos
Commits
db9134be
Commit
db9134be
authored
Oct 18, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4a053944
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
42 deletions
+49
-42
software/ors-amarisoft/amari/slap.jinja2
software/ors-amarisoft/amari/slap.jinja2
+44
-41
software/ors-amarisoft/config/ue.cfg
software/ors-amarisoft/config/ue.cfg
+3
-1
software/ors-amarisoft/ue/cell/lte/input-schema.json
software/ors-amarisoft/ue/cell/lte/input-schema.json
+1
-0
software/ors-amarisoft/ue/cell/nr/input-schema.json
software/ors-amarisoft/ue/cell/nr/input-schema.json
+1
-0
No files found.
software/ors-amarisoft/amari/slap.jinja2
View file @
db9134be
...
...
@@ -139,52 +139,55 @@
XXX defaults ?
#}
{%- macro load_iru_and_icell(iru_dict, icell_dict, icell_kind) %}
{%- set qother = [] %}
{%- for ishared in qshared_instance_list %}
{%- set ref = J(jref_of_shared(ishared)) %}
{%- set _ = ishared['_'] %}
{%- if 'ru_type' in _ %}
{%- set iru = ishared %}
{%- if _.ru_link_type == 'cpri' %}
{%- set link = _.cpri_link %}
{%- for k, v in defaults['cpri_link'].items() %}
{%- do link.setdefault(k, v) %}
{%- endfor %}
{%- endif %}
{%- do iru_dict.update({ref: iru}) %}
{%- macro load_iru_and_icell(iru_dict, icell_dict, icell_kind)
%}
{%- set qother = []
%}
{%- for ishared in qshared_instance_list
%}
{%- set ref = J(jref_of_shared(ishared))
%}
{%- set _ = ishared['_']
%}
{%- if 'ru_type' in _
%}
{%- set iru = ishared
%}
{%- if _.ru_link_type == 'cpri'
%}
{%- set link = _.cpri_link
%}
{%- for k, v in defaults['cpri_link'].items()
%}
{%- do link.setdefault(k, v)
%}
{%- endfor
%}
{%- endif
%}
{%- do iru_dict.update({ref: iru})
%}
{%- elif (icell_kind == 'enb' and 'cell_type' in _) or
(icell_kind == 'ue' and 'ue_cell_type' in _) %}
{%- set icell = ishared %}
{%- if icell_kind == 'enb' %}
{%- for k, v in defaults['cell/' + _.cell_type].items() %}
{%- do _.setdefault(k, v) %}
{%- endfor %}
{%- if _.cell_type == 'lte' %}
{%- do _.setdefault('ul_earfcn', default_ul_earfcn(_.dl_earfcn)) %}
{%- elif _.cell_type == 'nr' %}
{%- do _.setdefault('ul_nr_arfcn', default_ul_nr_arfcn(_.dl_nr_arfcn, _.nr_band)) %}
{%- do _.setdefault('ssb_nr_arfcn', default_ssb_nr_arfcn(_.dl_nr_arfcn)) %}
{%- else %}
{%- do bug('unreachable') %}
{%- endif %}
{%- endif %}
{%- do icell_dict.update({ref: icell}) %}
{%- set ru = _['ru'] %}
{%- if ru.ru_type not in ('ru_ref', 'ruincell_ref') %}
{#- embedded ru definition -> expose it as `_<cell_ref>_ru` #}
(icell_kind == 'ue' and 'ue_cell_type' in _) %}
{%- set icell = ishared %}
{%- if icell_kind == 'enb' %}
{%- for k, v in defaults['cell/' + _.cell_type].items() %}
{%- do _.setdefault(k, v) %}
{%- endfor %}
{%- set xcell_type = _.cell_type %}
{%- else %}
{%- set xcell_type = _.ue_cell_type %}
{%- endif %}
{%- if xcell_type == 'lte' %}
{%- do _.setdefault('ul_earfcn', default_ul_earfcn(_.dl_earfcn)) %}
{%- elif xcell_type == 'nr' %}
{%- do _.setdefault('ul_nr_arfcn', default_ul_nr_arfcn(_.dl_nr_arfcn, _.nr_band)) %}
{%- do _.setdefault('ssb_nr_arfcn', default_ssb_nr_arfcn(_.dl_nr_arfcn)) %}
{%- else %}
{%- do bug('unreachable') %}
{%- endif %}
{%- do icell_dict.update({ref: icell}) %}
{%- set ru = _['ru'] %}
{%- if ru.ru_type not in ('ru_ref', 'ruincell_ref') %}
{#- embedded ru definition -> expose it as `_<cell_ref>_ru` #}
{%- do iru_dict.update({'_%s_ru' % ref: {
'_': ru,
'slave_title': '%s. RU' % icell.slave_title,
'slave_reference': icell.slave_reference,
}}) %}
{%- endif %}
{%- else %}
{%- do qother.append(ishared) %}
{%- endif %}
{%- endfor %}
{%- do qshared_instance_list.clear() %}
{%- do qshared_instance_list.extend(qother) %}
}})
%}
{%- endif
%}
{%- else
%}
{%- do qother.append(ishared)
%}
{%- endif
%}
{%- endfor
%}
{%- do qshared_instance_list.clear()
%}
{%- do qshared_instance_list.extend(qother)
%}
{#- do print('\n>>> iru_dict:'), pprint(iru_dict) #}
{#- do print('\n>>> icell_dict:'), pprint(icell_dict) #}
...
...
software/ors-amarisoft/config/ue.cfg
View file @
db9134be
...
...
@@ -34,6 +34,7 @@
n_antenna_ul: 1,
dl_earfcn: 38050,
ul_earfcn: 38050,
bandwidth: 5,
global_timing_advance: -1,
...
...
@@ -56,8 +57,9 @@
band: 7,
dl_nr_arfcn: 537200,
bandwidth: 5
,
ul_nr_arfcn: 513200
,
ssb_nr_arfcn: 537170,
bandwidth: 5,
subcarrier_spacing: 15,
},
...
...
software/ors-amarisoft/ue/cell/lte/input-schema.json
View file @
db9134be
...
...
@@ -17,6 +17,7 @@
},
"dl_earfcn"
:
{
"$ref"
:
"../../../cell/lte/input-schema.json#/properties/dl_earfcn"
},
"ul_earfcn"
:
{
"$ref"
:
"../../../cell/lte/input-schema.json#/properties/ul_earfcn"
},
"bandwidth"
:
{
"$ref"
:
"../../../cell/lte/input-schema.json#/properties/bandwidth"
}
}
}
software/ors-amarisoft/ue/cell/nr/input-schema.json
View file @
db9134be
...
...
@@ -21,6 +21,7 @@
"dl_nr_arfcn"
:
{
"$ref"
:
"../../../cell/nr/input-schema.json#/properties/dl_nr_arfcn"
},
"bandwidth"
:
{
"$ref"
:
"../../../cell/nr/input-schema.json#/properties/bandwidth"
},
"nr_band"
:
{
"$ref"
:
"../../../cell/nr/input-schema.json#/properties/nr_band"
},
"ul_nr_arfcn"
:
{
"$ref"
:
"../../../cell/nr/input-schema.json#/properties/ul_nr_arfcn"
},
"ssb_nr_arfcn"
:
{
"$ref"
:
"../../../cell/nr/input-schema.json#/properties/ssb_nr_arfcn"
}
}
}
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