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
106
Merge Requests
106
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
aa40b27b
Commit
aa40b27b
authored
Jan 05, 2024
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a4390df9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
+18
-10
software/ors-amarisoft/test/test.py
software/ors-amarisoft/test/test.py
+18
-10
No files found.
software/ors-amarisoft/test/test.py
View file @
aa40b27b
...
...
@@ -30,20 +30,22 @@ setUpModule, AmariTestCase = makeModuleSetUpAndTestCaseClass(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
,
'software.cfg'
)))
# ---- building blocks to construct cell
s + pe
ers ----
# ---- building blocks to construct cell
/peer paramet
ers ----
#
# - TDD/FDD
are basic parameters to
indicate TDD/FDD mode.
# - LTE/NR
return basic parameters for an
LTE/NR cell with given downlink frequency.
# - 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
# - TDD/FDD indicate TDD/FDD mode.
# - LTE/NR
indicate
LTE/NR cell with given downlink frequency.
# - BW
indicates
specified bandwidth.
# - CENB
indicates
a ENB-kind cell.
# - CUE
indicates an UE-kind cell.
# -
TAC indicates specified Traking Area Code.
# - LTE_PEER/NR_PEER indicate an LTE/NR ENB-PEER-kind cell.
# - X2_PEER/XN_PEER indicate an LTE/NR ENB peer.
# - X2_PEER/XN_PEER
indicate an LTE/NR ENB peer.
# TDD/FDD are basic parameters to indicate TDD/FDD mode.
TDD
=
{
'rf_mode'
:
'tdd'
}
FDD
=
{
'rf_mode'
:
'fdd'
}
# LTE/NR return basic parameters for an LTE/NR cell with given downlink frequency.
def
LTE
(
dl_earfcn
):
return
{
'cell_type'
:
'lte'
,
...
...
@@ -56,11 +58,13 @@ def NR(dl_nr_arfcn, nr_band):
'nr_band'
:
nr_band
,
}
# BW returns basic parameters to indicate specified bandwidth.
def
BW
(
bandwidth
):
return
{
'bandwidth'
:
bandwidth
,
}
# CENB returns basic parameters to indicate a ENB-kind cell.
def
CENB
(
cell_id
,
pci
):
return
{
'cell_kind'
:
'enb'
,
...
...
@@ -68,6 +72,10 @@ def CENB(cell_id, pci):
'pci'
:
pci
,
}
# CUE indicates an UE-kind cell.
def
CUE
():
...
# XXX
# TAC returns basic parameters to indicate specified Traking Area Code.
def
TAC
(
tac
):
return
{
'tac'
:
'0x%x'
%
tac
,
...
...
@@ -75,6 +83,7 @@ def TAC(tac):
CUE
=
{
'cell_kind'
:
'ue'
}
# LTE_PEER/NR_PEER return basic parameters to indicate an LTE/NR ENB-PEER-kind cell.
def
LTE_PEER
(
e_cell_id
,
pci
,
tac
):
return
{
'cell_kind'
:
'enb_peer'
,
...
...
@@ -91,6 +100,7 @@ def NR_PEER(nr_cell_id, gnb_id_bits, pci, tac):
'tac'
:
tac
,
}
# X2_PEER/XN_PEER return basic parameters to indicate an LTE/NR ENB peer.
def
X2_PEER
(
x2_addr
):
return
{
'peer_type'
:
'lte'
,
...
...
@@ -129,8 +139,6 @@ class ENBTestCase(AmariTestCase):
'gnb_id_bits'
:
30
,
})}
# XXX + generic test that verifies ^^^ to be rendered into enb.cfg
@
classmethod
def
requestDefaultInstance
(
cls
,
state
=
'started'
):
inst
=
super
().
requestDefaultInstance
(
state
=
state
)
...
...
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