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
f44e2bb0
Commit
f44e2bb0
authored
Dec 01, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e7fbe934
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
12 deletions
+13
-12
software/ors-amarisoft/instance.cfg
software/ors-amarisoft/instance.cfg
+2
-2
software/ors-amarisoft/ru/lopcomm/cu_config.jinja2.xml
software/ors-amarisoft/ru/lopcomm/cu_config.jinja2.xml
+4
-4
software/ors-amarisoft/ru/lopcomm/libinstance.jinja2.cfg
software/ors-amarisoft/ru/lopcomm/libinstance.jinja2.cfg
+2
-2
software/ors-amarisoft/slaplte.jinja2
software/ors-amarisoft/slaplte.jinja2
+3
-3
software/ors-amarisoft/slapos-render-config.py
software/ors-amarisoft/slapos-render-config.py
+2
-1
No files found.
software/ors-amarisoft/instance.cfg
View file @
f44e2bb0
...
@@ -27,8 +27,8 @@ extra-context =
...
@@ -27,8 +27,8 @@ extra-context =
depends = $${activate-eggs:recipe}
depends = $${activate-eggs:recipe}
context =
context =
import json_module json
import json_module json
import earfcn_module xlte.earfcn
import
x
earfcn_module xlte.earfcn
import
nrarfcn_module
nrarfcn
import
xnrarfcn_module xlte.
nrarfcn
key eggs_directory buildout:eggs-directory
key eggs_directory buildout:eggs-directory
key develop_eggs_directory buildout:develop-eggs-directory
key develop_eggs_directory buildout:develop-eggs-directory
raw buildout_directory ${buildout:directory}
raw buildout_directory ${buildout:directory}
...
...
software/ors-amarisoft/ru/lopcomm/cu_config.jinja2.xml
View file @
f44e2bb0
...
@@ -92,14 +92,14 @@
...
@@ -92,14 +92,14 @@
{%- if cell.cell_type == 'lte' %}
{%- if cell.cell_type == 'lte' %}
{%- set dl_arfcn = cell.dl_earfcn %}
{%- set dl_arfcn = cell.dl_earfcn %}
{%- set ul_arfcn = cell.ul_earfcn %}
{%- set ul_arfcn = cell.ul_earfcn %}
{%- set dl_freq = int(
earfcn_module.frequency(dl_arfcn) * 1e6)
%}
{%- set dl_freq = int(
xearfcn_module.frequency(dl_arfcn) * 1e6)
%}
{%- set ul_freq = int(
earfcn_module.frequency(ul_arfcn) * 1e6)
%}
{%- set ul_freq = int(
xearfcn_module.frequency(ul_arfcn) * 1e6)
%}
{%- set bw = int(float(cell.bandwidth.removesuffix(' MHz')) * 1e6) %}
{%- set bw = int(float(cell.bandwidth.removesuffix(' MHz')) * 1e6) %}
{%- elif cell.cell_type == 'nr' %}
{%- elif cell.cell_type == 'nr' %}
{%- set dl_arfcn = cell.dl_nr_arfcn %}
{%- set dl_arfcn = cell.dl_nr_arfcn %}
{%- set ul_arfcn = cell.ul_nr_arfcn %}
{%- set ul_arfcn = cell.ul_nr_arfcn %}
{%- set dl_freq = int(
nrarfcn_module.get_frequency(dl_arfcn) * 1e6)
%}
{%- set dl_freq = int(
xnrarfcn_module.frequency(dl_arfcn) * 1e6)
%}
{%- set ul_freq = int(
nrarfcn_module.get_frequency(ul_arfcn) * 1e6)
%}
{%- set ul_freq = int(
xnrarfcn_module.frequency(ul_arfcn) * 1e6)
%}
{%- set bw = int(cell.bandwidth * 1e6) %}
{%- set bw = int(cell.bandwidth * 1e6) %}
{%- else %}
{%- else %}
{%- do bug('unreachable') %}
{%- do bug('unreachable') %}
...
...
software/ors-amarisoft/ru/lopcomm/libinstance.jinja2.cfg
View file @
f44e2bb0
...
@@ -72,8 +72,8 @@ url = {{ ru_lopcomm_cu_config_template }}
...
@@ -72,8 +72,8 @@ url = {{ ru_lopcomm_cu_config_template }}
{% endif %}
{% endif %}
output = ${directory:etc}/{{ru_ref}}-cu_config.xml
output = ${directory:etc}/{{ru_ref}}-cu_config.xml
extra-context =
extra-context =
import earfcn_module xlte.earfcn
import
x
earfcn_module xlte.earfcn
import
nrarfcn_module
nrarfcn
import
xnrarfcn_module xlte.
nrarfcn
json ru {{ ru | tojson }}
json ru {{ ru | tojson }}
json cell {{ cell | tojson }}
json cell {{ cell | tojson }}
...
...
software/ors-amarisoft/slaplte.jinja2
View file @
f44e2bb0
...
@@ -95,19 +95,19 @@
...
@@ -95,19 +95,19 @@
{#- jdefault_ul_earfcn returns default UL EARFCN corresponding to DL EARFCN. #}
{#- jdefault_ul_earfcn returns default UL EARFCN corresponding to DL EARFCN. #}
{%- macro jdefault_ul_earfcn(dl_earfcn) %}
{%- macro jdefault_ul_earfcn(dl_earfcn) %}
{{- earfcn_module.dl2ul(dl_earfcn) | tojson }}
{{-
x
earfcn_module.dl2ul(dl_earfcn) | tojson }}
{%- endmacro %}
{%- endmacro %}
{#- jdefault_ul_nr_arfcn returns default UL NR ARFCN corresponding to DL NR ARFCN and band. #}
{#- jdefault_ul_nr_arfcn returns default UL NR ARFCN corresponding to DL NR ARFCN and band. #}
{%- macro jdefault_ul_nr_arfcn(dl_nr_arfcn, nr_band) %}
{%- macro jdefault_ul_nr_arfcn(dl_nr_arfcn, nr_band) %}
{
%- xnrarfcn_moule.dl2ul(dl_nr_arfcn, nr_band) | tojson %
}
{
{- xnrarfcn_module.dl2ul(dl_nr_arfcn, nr_band) | tojson }
}
{%- endmacro %}
{%- endmacro %}
{#- jdefault_ssb_nr_arfcn returns default SSB NR ARFCN corresponding to DL NR ARFCN
{#- jdefault_ssb_nr_arfcn returns default SSB NR ARFCN corresponding to DL NR ARFCN
and subcarrier spacing #}
and subcarrier spacing #}
{%- macro jdefault_ssb_nr_arfcn(dl_nr_arfcn, scs_khz) %}
{%- macro jdefault_ssb_nr_arfcn(dl_nr_arfcn, scs_khz) %}
{#- NOTE: computations rechecked wrt https://tech-academy.amarisoft.com/OutOfBox_UEsim_SA.html#Tips_SSB_Frequency #}
{#- NOTE: computations rechecked wrt https://tech-academy.amarisoft.com/OutOfBox_UEsim_SA.html#Tips_SSB_Frequency #}
{
%- xnrarfcn_module.dl2ssb(dl_nr_arfcn, nr_band, scs_khz, ....) | tojson %
}
{
{- xnrarfcn_module.dl2ssb(dl_nr_arfcn, scs_khz) | tojson }
}
{%- endmacro %}
{%- endmacro %}
...
...
software/ors-amarisoft/slapos-render-config.py
View file @
f44e2bb0
...
@@ -18,8 +18,9 @@ def j2render(src, out, jcfg):
...
@@ -18,8 +18,9 @@ def j2render(src, out, jcfg):
for
k
,
v
in
ctx
.
items
():
for
k
,
v
in
ctx
.
items
():
textctx
+=
'json %s %s
\
n
'
%
(
k
,
json
.
dumps
(
v
))
textctx
+=
'json %s %s
\
n
'
%
(
k
,
json
.
dumps
(
v
))
textctx
+=
'import json_module json
\
n
'
textctx
+=
'import json_module json
\
n
'
textctx
+=
'import earfcn_module xlte.earfcn
\
n
'
textctx
+=
'import nrarfcn_module nrarfcn
\
n
'
textctx
+=
'import nrarfcn_module nrarfcn
\
n
'
textctx
+=
'import xearfcn_module xlte.earfcn
\
n
'
textctx
+=
'import xnrarfcn_module xlte.nrarfcn
\
n
'
buildout
=
None
# stub
buildout
=
None
# stub
r
=
jinja2_template
.
Recipe
(
buildout
,
"recipe"
,
{
r
=
jinja2_template
.
Recipe
(
buildout
,
"recipe"
,
{
'extensions'
:
'jinja2.ext.do jinja2.ext.loopcontrols'
,
'extensions'
:
'jinja2.ext.do jinja2.ext.loopcontrols'
,
...
...
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