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
Labels
Merge Requests
104
Merge Requests
104
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos
Commits
3f3f299a
Commit
3f3f299a
authored
Jan 03, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
69e1b11b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+14
-15
No files found.
software/ors-amarisoft/test/test.py
View file @
3f3f299a
...
...
@@ -50,14 +50,15 @@ def yload(path):
# - CENB returns basic parameters to indicate a ENB-kind cell.
# - CUE indicates an UE-kind cell.
# - LTE_PEER/NR_PEER indicate an LTE/NR ENB-PEER-kind cell.
# - X2_PEER/XN_PEER indicate an LTE/NR ENB peer.
TDD
=
{
'rf_mode'
:
'tdd'
}
FDD
=
{
'rf_mode'
:
'fdd'
}
def
LTE
(
dl_earfcn
):
return
{
'cell_type'
:
'lte'
,
'dl_earfcn'
:
dl_earfcn
,
'cell_type'
:
'lte'
,
'dl_earfcn'
:
dl_earfcn
,
}
def
NR
(
dl_nr_arfcn
,
nr_band
):
return
{
...
...
@@ -83,28 +84,26 @@ CUE = {'cell_kind': 'ue'}
def
LTE_PEER
(
e_cell_id
,
pci
,
tac
):
return
{
'cell_kind'
:
'enb_peer'
,
'e_cell_id'
:
'0x%05
x'
%
e_cell_id
,
'pci'
:
pci
,
'tac'
:
'0x%x'
%
tac
,
'cell_kind'
:
'enb_peer'
,
'e_cell_id'
:
'0x%07
x'
%
e_cell_id
,
'pci'
:
pci
,
'tac'
:
'0x%x'
%
tac
,
}
def
NR_PEER
(
nr_cell_id
,
gnb_id_bits
,
pci
,
tac
):
return
{
'cell_kind'
:
'enb_peer'
,
'nr_cell_id'
:
'0x77712'
,
'gnb_id_bits'
:
22
,
'pci'
:
75
,
'tac'
:
321
,
'cell_kind'
:
'enb_peer'
,
'nr_cell_id'
:
'0x%09x'
%
nr_cell_id
,
'gnb_id_bits'
:
gnb_id_bits
,
'pci'
:
pci
,
'tac'
:
tac
,
}
def
X2_PEER
(
x2_addr
):
return
{
'peer_type'
:
'lte'
,
'x2_addr'
:
x2_addr
,
}
def
X
n
_PEER
(
xn_addr
):
def
X
N
_PEER
(
xn_addr
):
return
{
'peer_type'
:
'nr'
,
'xn_addr'
:
xn_addr
,
...
...
@@ -163,7 +162,7 @@ class ENBTestCase(AmariTestCase):
def
_
(
subref
,
ctx
):
return
cls
.
requestShared
(
imain
,
subref
,
ctx
)
_
(
'PEER4'
,
X2_PEER
(
'44.1.1.1'
))
_
(
'PEER5'
,
X
n
_PEER
(
'55.1.1.1'
))
_
(
'PEER5'
,
X
N
_PEER
(
'55.1.1.1'
))
_
(
'PEERCELL4'
,
PEERCELL4
)
_
(
'PEERCELL5'
,
PEERCELL5
)
...
...
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