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
afaa0c9d
Commit
afaa0c9d
authored
Aug 23, 2023
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d4a0be77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
14 deletions
+27
-14
software/ors-amarisoft/slapos-render-config.py
software/ors-amarisoft/slapos-render-config.py
+27
-14
No files found.
software/ors-amarisoft/slapos-render-config.py
View file @
afaa0c9d
import
json
import
json
,
copy
config
=
"enb"
json_params_empty
=
"""{
...
...
@@ -45,9 +45,9 @@ CELL1_b = {
}
}
# another c
ell that uses CPRI-based Lopcomm RU
# here we instantiate RU
separately since embedding RU into a cell is cover
ed by CELL1_a above
RU2
=
{
# another c
ouple of cells that use CPRI-based Lopcomm radio units
# here we instantiate RU
s separately since embedding RU into a cell is demonstrat
ed by CELL1_a above
RU2
_a
=
{
'ru_type'
:
'lopcomm'
,
'ru_link_type'
:
'cpri'
,
'mac_addr'
:
'XXX'
,
...
...
@@ -64,27 +64,40 @@ RU2 = {
'n_antenna_ul'
:
1
,
}
CELL2_1
=
{
RU2_b
=
copy
.
deepcopy
(
RU2_a
)
RU2_b
[
'mac_addr'
]
=
'YYY'
RU2_b
[
'cpri_link'
][
'sfp_port'
]
=
1
CELL2_a
=
{
'cell_type'
:
'lte'
,
'rf_mode'
:
'fdd'
,
'bandwidth'
:
'5 MHz'
,
'dl_earfcn'
:
XXX
,
# XXX
MHz
'dl_earfcn'
:
3350
,
# 2680
MHz
'pci'
:
21
,
'cell_id'
:
"0x21"
,
'ru'
:
{
# CELL
1_b shares RU with CELL1_a referring to it via cell
'ru_type'
:
'ruincell
_ref'
,
'ru
incell_ref'
:
'CELL1
_a'
'ru'
:
{
# CELL
2_a links to RU2_a by its reference
'ru_type'
:
'ru
_ref'
,
'ru
_ref'
:
'RU2
_a'
}
}
CELL2_b
=
copy
.
deepcopy
(
CELL2_a
)
CELL2_b
.
update
({
'dl_earfcn'
:
3410
,
# 2686 MHz
'pci'
:
22
,
'cell_id'
:
"0x22"
}
CELL2_b
[
'ru'
][
'ru_ref'
]
=
'RU2_b'
# XXX CELL3 TDD LTE
# XXX CELL3 FDD NR
# XXX RU_ref
jCELL1
=
json
.
dumps
(
CELL1
)
jCELL2
=
json
.
dumps
(
CELL2
)
jRU2
=
json
.
dumps
(
RU2
)
jCELL1_a
=
json
.
dumps
(
CELL1_a
)
jCELL1_b
=
json
.
dumps
(
CELL1_b
)
jCELL2_a
=
json
.
dumps
(
CELL2_a
)
jCELL2_b
=
json
.
dumps
(
CELL2_b
)
jRU2_a
=
json
.
dumps
(
RU2_a
)
jRU2_b
=
json
.
dumps
(
RU2_b
)
json_params
=
"""{
"earfcn": 126357,
"tx_gain": 50,
...
...
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