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
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):
...
@@ -50,14 +50,15 @@ def yload(path):
# - CENB returns basic parameters to indicate a ENB-kind cell.
# - CENB returns basic parameters to indicate a ENB-kind cell.
# - CUE indicates an UE-kind cell.
# - CUE indicates an UE-kind cell.
# - LTE_PEER/NR_PEER indicate an LTE/NR ENB-PEER-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'
}
TDD
=
{
'rf_mode'
:
'tdd'
}
FDD
=
{
'rf_mode'
:
'fdd'
}
FDD
=
{
'rf_mode'
:
'fdd'
}
def
LTE
(
dl_earfcn
):
def
LTE
(
dl_earfcn
):
return
{
return
{
'cell_type'
:
'lte'
,
'cell_type'
:
'lte'
,
'dl_earfcn'
:
dl_earfcn
,
'dl_earfcn'
:
dl_earfcn
,
}
}
def
NR
(
dl_nr_arfcn
,
nr_band
):
def
NR
(
dl_nr_arfcn
,
nr_band
):
return
{
return
{
...
@@ -83,28 +84,26 @@ CUE = {'cell_kind': 'ue'}
...
@@ -83,28 +84,26 @@ CUE = {'cell_kind': 'ue'}
def
LTE_PEER
(
e_cell_id
,
pci
,
tac
):
def
LTE_PEER
(
e_cell_id
,
pci
,
tac
):
return
{
return
{
'cell_kind'
:
'enb_peer'
,
'cell_kind'
:
'enb_peer'
,
'e_cell_id'
:
'0x%05
x'
%
e_cell_id
,
'e_cell_id'
:
'0x%07
x'
%
e_cell_id
,
'pci'
:
pci
,
'pci'
:
pci
,
'tac'
:
'0x%x'
%
tac
,
'tac'
:
'0x%x'
%
tac
,
}
}
def
NR_PEER
(
nr_cell_id
,
gnb_id_bits
,
pci
,
tac
):
def
NR_PEER
(
nr_cell_id
,
gnb_id_bits
,
pci
,
tac
):
return
{
return
{
'cell_kind'
:
'enb_peer'
,
'cell_kind'
:
'enb_peer'
,
'nr_cell_id'
:
'0x77712'
,
'nr_cell_id'
:
'0x%09x'
%
nr_cell_id
,
'gnb_id_bits'
:
22
,
'gnb_id_bits'
:
gnb_id_bits
,
'pci'
:
75
,
'pci'
:
pci
,
'tac'
:
321
,
'tac'
:
tac
,
}
}
def
X2_PEER
(
x2_addr
):
def
X2_PEER
(
x2_addr
):
return
{
return
{
'peer_type'
:
'lte'
,
'peer_type'
:
'lte'
,
'x2_addr'
:
x2_addr
,
'x2_addr'
:
x2_addr
,
}
}
def
X
n
_PEER
(
xn_addr
):
def
X
N
_PEER
(
xn_addr
):
return
{
return
{
'peer_type'
:
'nr'
,
'peer_type'
:
'nr'
,
'xn_addr'
:
xn_addr
,
'xn_addr'
:
xn_addr
,
...
@@ -163,7 +162,7 @@ class ENBTestCase(AmariTestCase):
...
@@ -163,7 +162,7 @@ class ENBTestCase(AmariTestCase):
def
_
(
subref
,
ctx
):
def
_
(
subref
,
ctx
):
return
cls
.
requestShared
(
imain
,
subref
,
ctx
)
return
cls
.
requestShared
(
imain
,
subref
,
ctx
)
_
(
'PEER4'
,
X2_PEER
(
'44.1.1.1'
))
_
(
'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
)
_
(
'PEERCELL4'
,
PEERCELL4
)
_
(
'PEERCELL5'
,
PEERCELL5
)
_
(
'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