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
22fa1305
Commit
22fa1305
authored
Jan 04, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a1d48cf2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+11
-6
No files found.
software/ors-amarisoft/test/test.py
View file @
22fa1305
...
...
@@ -50,6 +50,7 @@ def yload(path):
# - BW returns basic parameters to indicate specified bandwidth.
# - CENB returns basic parameters to indicate a ENB-kind cell.
# - CUE indicates an UE-kind cell.
# - XXX TAC
# - LTE_PEER/NR_PEER indicate an LTE/NR ENB-PEER-kind cell.
# - X2_PEER/XN_PEER indicate an LTE/NR ENB peer.
...
...
@@ -73,11 +74,15 @@ def BW(bandwidth):
'bandwidth'
:
bandwidth
,
}
def
CENB
(
cell_id
,
pci
,
tac
):
def
CENB
(
cell_id
,
pci
):
return
{
'cell_kind'
:
'enb'
,
'cell_id'
:
'0x%02x'
%
cell_id
,
'pci'
:
pci
,
}
def
TAC
(
tac
):
return
{
'tac'
:
'0x%x'
%
tac
,
}
...
...
@@ -226,13 +231,13 @@ class TestENB_SDR(ENBTestCase):
'ru_ref'
:
cls
.
ref
(
'SDR%d'
%
i
),
}
}
cell
.
update
(
CENB
(
i
,
0x10
+
i
,
0x100
+
i
))
cell
.
update
(
CENB
(
i
,
0x10
+
i
))
cell
.
update
({
'root_sequence_index'
:
200
+
i
})
cell
.
update
(
ctx
)
cls
.
requestShared
(
imain
,
'SDR%d.CELL'
%
i
,
cell
)
CELL
(
1
,
FDD
|
LTE
(
100
)
|
BW
(
5
))
CELL
(
2
,
TDD
|
LTE
(
36100
)
|
BW
(
10
))
CELL
(
1
,
FDD
|
LTE
(
100
)
|
BW
(
5
)
|
TAC
(
0x101
)
)
CELL
(
2
,
TDD
|
LTE
(
36100
)
|
BW
(
10
)
|
TAC
(
0x102
)
)
CELL
(
3
,
FDD
|
NR
(
430100
,
1
)
|
BW
(
15
))
CELL
(
4
,
TDD
|
NR
(
510100
,
41
)
|
BW
(
20
))
...
...
@@ -287,7 +292,7 @@ class TestENB_SDR(ENBTestCase):
uldl_config
=
NO
,
rf_port
=
2
,
n_antenna_dl
=
4
,
n_antenna_ul
=
2
,
dl_nr_arfcn
=
430100
,
ul_nr_arfcn
=
392100
,
ssb_nr_arfcn
=
429890
,
band
=
1
,
bandwidth
=
15
,
cell_id
=
0x3
,
n_id_cell
=
0x13
,
tac
=
0x103
,
cell_id
=
0x3
,
n_id_cell
=
0x13
,
tac
=
NO
,
root_sequence_index
=
203
,
))
...
...
@@ -338,7 +343,7 @@ class _TestENB_CPRI(ENBTestCase):
'ru_ref'
:
cls
.
ref
(
'LO%d'
%
i
),
}
}
cell
.
update
(
CENB
(
i
,
i
,
0x1234
))
cell
.
update
(
CENB
(
i
,
i
))
cell
.
update
(
ctx
)
cls
.
requestShared
(
imain
,
'LO%d.CELL'
%
i
,
cell
)
...
...
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