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
90
Merge Requests
90
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
9de46148
Commit
9de46148
authored
Sep 20, 2022
by
Lu Xu
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ors-amarisoft: fixup, add test
parent
b8a5f4ea
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
347 additions
and
858 deletions
+347
-858
software/ors-amarisoft/instance-tdd1900-ue-lte-input-schema.json
...e/ors-amarisoft/instance-tdd1900-ue-lte-input-schema.json
+16
-113
software/ors-amarisoft/instance-tdd1900-ue-nr-input-schema.json
...re/ors-amarisoft/instance-tdd1900-ue-nr-input-schema.json
+13
-98
software/ors-amarisoft/instance-tdd2600-ue-lte-input-schema.json
...e/ors-amarisoft/instance-tdd2600-ue-lte-input-schema.json
+16
-113
software/ors-amarisoft/instance-tdd2600-ue-nr-input-schema.json
...re/ors-amarisoft/instance-tdd2600-ue-nr-input-schema.json
+13
-98
software/ors-amarisoft/instance-tdd3500-ue-lte-input-schema.json
...e/ors-amarisoft/instance-tdd3500-ue-lte-input-schema.json
+16
-113
software/ors-amarisoft/instance-tdd3500-ue-nr-input-schema.json
...re/ors-amarisoft/instance-tdd3500-ue-nr-input-schema.json
+13
-98
software/ors-amarisoft/instance-tdd3700-ue-lte-input-schema.json
...e/ors-amarisoft/instance-tdd3700-ue-lte-input-schema.json
+16
-113
software/ors-amarisoft/instance-tdd3700-ue-nr-input-schema.json
...re/ors-amarisoft/instance-tdd3700-ue-nr-input-schema.json
+13
-98
software/ors-amarisoft/instance-ue-lte-input-schema.jinja2.json
...re/ors-amarisoft/instance-ue-lte-input-schema.jinja2.json
+0
-6
software/ors-amarisoft/instance-ue-nr-input-schema.jinja2.json
...are/ors-amarisoft/instance-ue-nr-input-schema.jinja2.json
+1
-7
software/ors-amarisoft/render-templates
software/ors-amarisoft/render-templates
+10
-1
software/ors-amarisoft/test/test.jinja2.py
software/ors-amarisoft/test/test.jinja2.py
+44
-0
software/ors-amarisoft/test/testTDD1900.py
software/ors-amarisoft/test/testTDD1900.py
+44
-0
software/ors-amarisoft/test/testTDD2600.py
software/ors-amarisoft/test/testTDD2600.py
+44
-0
software/ors-amarisoft/test/testTDD3500.py
software/ors-amarisoft/test/testTDD3500.py
+44
-0
software/ors-amarisoft/test/testTDD3700.py
software/ors-amarisoft/test/testTDD3700.py
+44
-0
No files found.
software/ors-amarisoft/instance-tdd1900-ue-lte-input-schema.json
View file @
9de46148
...
...
@@ -15,126 +15,29 @@
"type"
:
"number"
,
"default"
:
40
},
"dl_
nr_
arfcn"
:
{
"title"
:
"DL
NR
ARFCN"
,
"description"
:
"Downlink
NR
Absolute Radio Frequency Channel Number of the cell"
,
"dl_
e
arfcn"
:
{
"title"
:
"DL
E
ARFCN"
,
"description"
:
"Downlink
E-UTRA
Absolute Radio Frequency Channel Number of the cell"
,
"type"
:
"number"
,
"default"
:
3
7800
0
"default"
:
3
835
0
},
"n
r_band
"
:
{
"title"
:
"
NR band
"
,
"description"
:
"
NR band number
"
,
"n
_rb_dl
"
:
{
"title"
:
"
DL RB
"
,
"description"
:
"
number of DL resource blocks
"
,
"type"
:
"number"
,
"default"
:
39
"default"
:
100
},
"nr_bandwidth"
:
{
"title"
:
"Bandwidth"
,
"description"
:
"Downlink Bandwidth (in MHz)"
,
"type"
:
"number"
,
"default"
:
40
},
"amf_list"
:
{
"title"
:
"AMF list"
,
"description"
:
"Optionnal. List of AMF to which the gNodeB is connected"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"amf_addr"
:
{
"title"
:
"AMF Address"
,
"description"
:
"IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412."
,
"type"
:
"string"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"gnb_id"
:
{
"title"
:
"gNB ID"
,
"description"
:
"gNB ID"
,
"imsi"
:
{
"title"
:
"IMSI"
,
"description"
:
"IMSI"
,
"type"
:
"string"
,
"default"
:
"0x12345"
"default"
:
001010123456789
},
"pci"
:
{
"title"
:
"Physical Cell ID"
,
"description"
:
"Physical Cell ID"
,
"type"
:
"number"
,
"default"
:
1
},
"ssb_pos_bitmap"
:
{
"title"
:
"SSB Position Bitmap"
,
"description"
:
"SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency)."
,
"k"
:
{
"title"
:
"K"
,
"description"
:
"Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK)."
,
"type"
:
"string"
,
"default"
:
1000
},
"plmn_list"
:
{
"title"
:
"PLMN list"
,
"description"
:
"List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"plmn"
:
{
"default"
:
"00101"
,
"title"
:
"Public Land Mobile Network"
,
"description"
:
"Public Land Mobile Network"
,
"type"
:
"string"
},
"tac"
:
{
"default"
:
100
,
"title"
:
"Tracking Area Code"
,
"description"
:
"Integer (range 0 to 16777215)"
,
"type"
:
"number"
},
"ranac"
:
{
"title"
:
"Optional integer (range 0 to 255)"
,
"description"
:
"RAN Area Code"
,
"type"
:
"number"
},
"reserved"
:
{
"default"
:
false
,
"title"
:
"Reserved"
,
"description"
:
"True if the cell is reserved for operator use."
,
"type"
:
"boolean"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"nssai"
:
{
"title"
:
"AMF slices configuration"
,
"description"
:
"AMF slices configuration."
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"sst"
:
{
"default"
:
1
,
"title"
:
"Slice Service Type"
,
"description"
:
"Integer (range 1 to 255)."
,
"type"
:
"number"
},
"sd"
:
{
"default"
:
50
,
"title"
:
"Slice Differentiator"
,
"description"
:
"Optional integer (range 0 to 0xFFFFFE)"
,
"type"
:
"number"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"use_ipv4"
:
{
"default"
:
false
,
"title"
:
"Use IPv4"
,
"description"
:
"Set to true to use IPv4 for AMF / MME addresses"
,
"type"
:
"boolean"
"default"
:
00112233445566778899
aabbccddeeff
}
}
}
software/ors-amarisoft/instance-tdd1900-ue-nr-input-schema.json
View file @
9de46148
...
...
@@ -33,108 +33,23 @@
"type"
:
"number"
,
"default"
:
40
},
"amf_list"
:
{
"title"
:
"AMF list"
,
"description"
:
"Optionnal. List of AMF to which the gNodeB is connected"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"amf_addr"
:
{
"title"
:
"AMF Address"
,
"description"
:
"IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412."
,
"type"
:
"string"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"gnb_id"
:
{
"title"
:
"gNB ID"
,
"description"
:
"gNB ID"
,
"type"
:
"string"
,
"default"
:
"0x12345"
},
"pci"
:
{
"title"
:
"Physical Cell ID"
,
"description"
:
"Physical Cell ID"
,
"ssb-nr-arfcn"
:
{
"title"
:
"SSB NR ARFCN"
,
"description"
:
"SSB NR ARFCN"
,
"type"
:
"number"
,
"default"
:
1
"default"
:
},
"
ssb_pos_bitmap
"
:
{
"title"
:
"
SSB Position Bitmap
"
,
"description"
:
"
SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency).
"
,
"
imsi
"
:
{
"title"
:
"
IMSI
"
,
"description"
:
"
IMSI
"
,
"type"
:
"string"
,
"default"
:
1000
"default"
:
001010123456789
},
"plmn_list"
:
{
"title"
:
"PLMN list"
,
"description"
:
"List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"plmn"
:
{
"default"
:
"00101"
,
"title"
:
"Public Land Mobile Network"
,
"description"
:
"Public Land Mobile Network"
,
"type"
:
"string"
},
"tac"
:
{
"default"
:
100
,
"title"
:
"Tracking Area Code"
,
"description"
:
"Integer (range 0 to 16777215)"
,
"type"
:
"number"
},
"ranac"
:
{
"title"
:
"Optional integer (range 0 to 255)"
,
"description"
:
"RAN Area Code"
,
"type"
:
"number"
},
"reserved"
:
{
"default"
:
false
,
"title"
:
"Reserved"
,
"description"
:
"True if the cell is reserved for operator use."
,
"type"
:
"boolean"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"nssai"
:
{
"title"
:
"AMF slices configuration"
,
"description"
:
"AMF slices configuration."
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"sst"
:
{
"default"
:
1
,
"title"
:
"Slice Service Type"
,
"description"
:
"Integer (range 1 to 255)."
,
"type"
:
"number"
},
"sd"
:
{
"default"
:
50
,
"title"
:
"Slice Differentiator"
,
"description"
:
"Optional integer (range 0 to 0xFFFFFE)"
,
"type"
:
"number"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"use_ipv4"
:
{
"default"
:
false
,
"title"
:
"Use IPv4"
,
"description"
:
"Set to true to use IPv4 for AMF / MME addresses"
,
"type"
:
"boolean"
"k"
:
{
"title"
:
"K"
,
"description"
:
"Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK)."
,
"type"
:
"string"
,
"default"
:
00112233445566778899
aabbccddeeff
}
}
}
software/ors-amarisoft/instance-tdd2600-ue-lte-input-schema.json
View file @
9de46148
...
...
@@ -15,126 +15,29 @@
"type"
:
"number"
,
"default"
:
40
},
"dl_
nr_
arfcn"
:
{
"title"
:
"DL
NR
ARFCN"
,
"description"
:
"Downlink
NR
Absolute Radio Frequency Channel Number of the cell"
,
"dl_
e
arfcn"
:
{
"title"
:
"DL
E
ARFCN"
,
"description"
:
"Downlink
E-UTRA
Absolute Radio Frequency Channel Number of the cell"
,
"type"
:
"number"
,
"default"
:
52000
0
"default"
:
3805
0
},
"n
r_band
"
:
{
"title"
:
"
NR band
"
,
"description"
:
"
NR band number
"
,
"n
_rb_dl
"
:
{
"title"
:
"
DL RB
"
,
"description"
:
"
number of DL resource blocks
"
,
"type"
:
"number"
,
"default"
:
38
"default"
:
100
},
"nr_bandwidth"
:
{
"title"
:
"Bandwidth"
,
"description"
:
"Downlink Bandwidth (in MHz)"
,
"type"
:
"number"
,
"default"
:
40
},
"amf_list"
:
{
"title"
:
"AMF list"
,
"description"
:
"Optionnal. List of AMF to which the gNodeB is connected"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"amf_addr"
:
{
"title"
:
"AMF Address"
,
"description"
:
"IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412."
,
"type"
:
"string"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"gnb_id"
:
{
"title"
:
"gNB ID"
,
"description"
:
"gNB ID"
,
"imsi"
:
{
"title"
:
"IMSI"
,
"description"
:
"IMSI"
,
"type"
:
"string"
,
"default"
:
"0x12345"
"default"
:
001010123456789
},
"pci"
:
{
"title"
:
"Physical Cell ID"
,
"description"
:
"Physical Cell ID"
,
"type"
:
"number"
,
"default"
:
1
},
"ssb_pos_bitmap"
:
{
"title"
:
"SSB Position Bitmap"
,
"description"
:
"SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency)."
,
"k"
:
{
"title"
:
"K"
,
"description"
:
"Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK)."
,
"type"
:
"string"
,
"default"
:
10000000
},
"plmn_list"
:
{
"title"
:
"PLMN list"
,
"description"
:
"List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"plmn"
:
{
"default"
:
"00101"
,
"title"
:
"Public Land Mobile Network"
,
"description"
:
"Public Land Mobile Network"
,
"type"
:
"string"
},
"tac"
:
{
"default"
:
100
,
"title"
:
"Tracking Area Code"
,
"description"
:
"Integer (range 0 to 16777215)"
,
"type"
:
"number"
},
"ranac"
:
{
"title"
:
"Optional integer (range 0 to 255)"
,
"description"
:
"RAN Area Code"
,
"type"
:
"number"
},
"reserved"
:
{
"default"
:
false
,
"title"
:
"Reserved"
,
"description"
:
"True if the cell is reserved for operator use."
,
"type"
:
"boolean"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"nssai"
:
{
"title"
:
"AMF slices configuration"
,
"description"
:
"AMF slices configuration."
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"sst"
:
{
"default"
:
1
,
"title"
:
"Slice Service Type"
,
"description"
:
"Integer (range 1 to 255)."
,
"type"
:
"number"
},
"sd"
:
{
"default"
:
50
,
"title"
:
"Slice Differentiator"
,
"description"
:
"Optional integer (range 0 to 0xFFFFFE)"
,
"type"
:
"number"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"use_ipv4"
:
{
"default"
:
false
,
"title"
:
"Use IPv4"
,
"description"
:
"Set to true to use IPv4 for AMF / MME addresses"
,
"type"
:
"boolean"
"default"
:
00112233445566778899
aabbccddeeff
}
}
}
software/ors-amarisoft/instance-tdd2600-ue-nr-input-schema.json
View file @
9de46148
...
...
@@ -33,108 +33,23 @@
"type"
:
"number"
,
"default"
:
40
},
"amf_list"
:
{
"title"
:
"AMF list"
,
"description"
:
"Optionnal. List of AMF to which the gNodeB is connected"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"amf_addr"
:
{
"title"
:
"AMF Address"
,
"description"
:
"IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412."
,
"type"
:
"string"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"gnb_id"
:
{
"title"
:
"gNB ID"
,
"description"
:
"gNB ID"
,
"type"
:
"string"
,
"default"
:
"0x12345"
},
"pci"
:
{
"title"
:
"Physical Cell ID"
,
"description"
:
"Physical Cell ID"
,
"ssb-nr-arfcn"
:
{
"title"
:
"SSB NR ARFCN"
,
"description"
:
"SSB NR ARFCN"
,
"type"
:
"number"
,
"default"
:
1
"default"
:
},
"
ssb_pos_bitmap
"
:
{
"title"
:
"
SSB Position Bitmap
"
,
"description"
:
"
SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency).
"
,
"
imsi
"
:
{
"title"
:
"
IMSI
"
,
"description"
:
"
IMSI
"
,
"type"
:
"string"
,
"default"
:
10000000
"default"
:
001010123456789
},
"plmn_list"
:
{
"title"
:
"PLMN list"
,
"description"
:
"List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"plmn"
:
{
"default"
:
"00101"
,
"title"
:
"Public Land Mobile Network"
,
"description"
:
"Public Land Mobile Network"
,
"type"
:
"string"
},
"tac"
:
{
"default"
:
100
,
"title"
:
"Tracking Area Code"
,
"description"
:
"Integer (range 0 to 16777215)"
,
"type"
:
"number"
},
"ranac"
:
{
"title"
:
"Optional integer (range 0 to 255)"
,
"description"
:
"RAN Area Code"
,
"type"
:
"number"
},
"reserved"
:
{
"default"
:
false
,
"title"
:
"Reserved"
,
"description"
:
"True if the cell is reserved for operator use."
,
"type"
:
"boolean"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"nssai"
:
{
"title"
:
"AMF slices configuration"
,
"description"
:
"AMF slices configuration."
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"sst"
:
{
"default"
:
1
,
"title"
:
"Slice Service Type"
,
"description"
:
"Integer (range 1 to 255)."
,
"type"
:
"number"
},
"sd"
:
{
"default"
:
50
,
"title"
:
"Slice Differentiator"
,
"description"
:
"Optional integer (range 0 to 0xFFFFFE)"
,
"type"
:
"number"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"use_ipv4"
:
{
"default"
:
false
,
"title"
:
"Use IPv4"
,
"description"
:
"Set to true to use IPv4 for AMF / MME addresses"
,
"type"
:
"boolean"
"k"
:
{
"title"
:
"K"
,
"description"
:
"Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK)."
,
"type"
:
"string"
,
"default"
:
00112233445566778899
aabbccddeeff
}
}
}
software/ors-amarisoft/instance-tdd3500-ue-lte-input-schema.json
View file @
9de46148
...
...
@@ -15,126 +15,29 @@
"type"
:
"number"
,
"default"
:
40
},
"dl_
nr_
arfcn"
:
{
"title"
:
"DL
NR
ARFCN"
,
"description"
:
"Downlink
NR
Absolute Radio Frequency Channel Number of the cell"
,
"dl_
e
arfcn"
:
{
"title"
:
"DL
E
ARFCN"
,
"description"
:
"Downlink
E-UTRA
Absolute Radio Frequency Channel Number of the cell"
,
"type"
:
"number"
,
"default"
:
632628
"default"
:
42590
},
"n
r_band
"
:
{
"title"
:
"
NR band
"
,
"description"
:
"
NR band number
"
,
"n
_rb_dl
"
:
{
"title"
:
"
DL RB
"
,
"description"
:
"
number of DL resource blocks
"
,
"type"
:
"number"
,
"default"
:
78
},
"nr_bandwidth"
:
{
"title"
:
"Bandwidth"
,
"description"
:
"Downlink Bandwidth (in MHz)"
,
"type"
:
"number"
,
"default"
:
40
},
"amf_list"
:
{
"title"
:
"AMF list"
,
"description"
:
"Optionnal. List of AMF to which the gNodeB is connected"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"amf_addr"
:
{
"title"
:
"AMF Address"
,
"description"
:
"IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412."
,
"type"
:
"string"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
"default"
:
100
},
"
gnb_id
"
:
{
"title"
:
"
gNB ID
"
,
"description"
:
"
gNB ID
"
,
"
imsi
"
:
{
"title"
:
"
IMSI
"
,
"description"
:
"
IMSI
"
,
"type"
:
"string"
,
"default"
:
"0x12345"
"default"
:
001010123456789
},
"pci"
:
{
"title"
:
"Physical Cell ID"
,
"description"
:
"Physical Cell ID"
,
"type"
:
"number"
,
"default"
:
1
},
"ssb_pos_bitmap"
:
{
"title"
:
"SSB Position Bitmap"
,
"description"
:
"SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency)."
,
"k"
:
{
"title"
:
"K"
,
"description"
:
"Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK)."
,
"type"
:
"string"
,
"default"
:
10000000
},
"plmn_list"
:
{
"title"
:
"PLMN list"
,
"description"
:
"List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"plmn"
:
{
"default"
:
"00101"
,
"title"
:
"Public Land Mobile Network"
,
"description"
:
"Public Land Mobile Network"
,
"type"
:
"string"
},
"tac"
:
{
"default"
:
100
,
"title"
:
"Tracking Area Code"
,
"description"
:
"Integer (range 0 to 16777215)"
,
"type"
:
"number"
},
"ranac"
:
{
"title"
:
"Optional integer (range 0 to 255)"
,
"description"
:
"RAN Area Code"
,
"type"
:
"number"
},
"reserved"
:
{
"default"
:
false
,
"title"
:
"Reserved"
,
"description"
:
"True if the cell is reserved for operator use."
,
"type"
:
"boolean"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"nssai"
:
{
"title"
:
"AMF slices configuration"
,
"description"
:
"AMF slices configuration."
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"sst"
:
{
"default"
:
1
,
"title"
:
"Slice Service Type"
,
"description"
:
"Integer (range 1 to 255)."
,
"type"
:
"number"
},
"sd"
:
{
"default"
:
50
,
"title"
:
"Slice Differentiator"
,
"description"
:
"Optional integer (range 0 to 0xFFFFFE)"
,
"type"
:
"number"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"use_ipv4"
:
{
"default"
:
false
,
"title"
:
"Use IPv4"
,
"description"
:
"Set to true to use IPv4 for AMF / MME addresses"
,
"type"
:
"boolean"
"default"
:
00112233445566778899
aabbccddeeff
}
}
}
software/ors-amarisoft/instance-tdd3500-ue-nr-input-schema.json
View file @
9de46148
...
...
@@ -33,108 +33,23 @@
"type"
:
"number"
,
"default"
:
40
},
"amf_list"
:
{
"title"
:
"AMF list"
,
"description"
:
"Optionnal. List of AMF to which the gNodeB is connected"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"amf_addr"
:
{
"title"
:
"AMF Address"
,
"description"
:
"IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412."
,
"type"
:
"string"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"gnb_id"
:
{
"title"
:
"gNB ID"
,
"description"
:
"gNB ID"
,
"type"
:
"string"
,
"default"
:
"0x12345"
},
"pci"
:
{
"title"
:
"Physical Cell ID"
,
"description"
:
"Physical Cell ID"
,
"ssb-nr-arfcn"
:
{
"title"
:
"SSB NR ARFCN"
,
"description"
:
"SSB NR ARFCN"
,
"type"
:
"number"
,
"default"
:
1
"default"
:
},
"
ssb_pos_bitmap
"
:
{
"title"
:
"
SSB Position Bitmap
"
,
"description"
:
"
SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency).
"
,
"
imsi
"
:
{
"title"
:
"
IMSI
"
,
"description"
:
"
IMSI
"
,
"type"
:
"string"
,
"default"
:
10000000
"default"
:
001010123456789
},
"plmn_list"
:
{
"title"
:
"PLMN list"
,
"description"
:
"List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"plmn"
:
{
"default"
:
"00101"
,
"title"
:
"Public Land Mobile Network"
,
"description"
:
"Public Land Mobile Network"
,
"type"
:
"string"
},
"tac"
:
{
"default"
:
100
,
"title"
:
"Tracking Area Code"
,
"description"
:
"Integer (range 0 to 16777215)"
,
"type"
:
"number"
},
"ranac"
:
{
"title"
:
"Optional integer (range 0 to 255)"
,
"description"
:
"RAN Area Code"
,
"type"
:
"number"
},
"reserved"
:
{
"default"
:
false
,
"title"
:
"Reserved"
,
"description"
:
"True if the cell is reserved for operator use."
,
"type"
:
"boolean"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"nssai"
:
{
"title"
:
"AMF slices configuration"
,
"description"
:
"AMF slices configuration."
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"sst"
:
{
"default"
:
1
,
"title"
:
"Slice Service Type"
,
"description"
:
"Integer (range 1 to 255)."
,
"type"
:
"number"
},
"sd"
:
{
"default"
:
50
,
"title"
:
"Slice Differentiator"
,
"description"
:
"Optional integer (range 0 to 0xFFFFFE)"
,
"type"
:
"number"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"use_ipv4"
:
{
"default"
:
false
,
"title"
:
"Use IPv4"
,
"description"
:
"Set to true to use IPv4 for AMF / MME addresses"
,
"type"
:
"boolean"
"k"
:
{
"title"
:
"K"
,
"description"
:
"Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK)."
,
"type"
:
"string"
,
"default"
:
00112233445566778899
aabbccddeeff
}
}
}
software/ors-amarisoft/instance-tdd3700-ue-lte-input-schema.json
View file @
9de46148
...
...
@@ -15,126 +15,29 @@
"type"
:
"number"
,
"default"
:
40
},
"dl_
nr_
arfcn"
:
{
"title"
:
"DL
NR
ARFCN"
,
"description"
:
"Downlink
NR
Absolute Radio Frequency Channel Number of the cell"
,
"dl_
e
arfcn"
:
{
"title"
:
"DL
E
ARFCN"
,
"description"
:
"Downlink
E-UTRA
Absolute Radio Frequency Channel Number of the cell"
,
"type"
:
"number"
,
"default"
:
646666
"default"
:
44590
},
"n
r_band
"
:
{
"title"
:
"
NR band
"
,
"description"
:
"
NR band number
"
,
"n
_rb_dl
"
:
{
"title"
:
"
DL RB
"
,
"description"
:
"
number of DL resource blocks
"
,
"type"
:
"number"
,
"default"
:
78
},
"nr_bandwidth"
:
{
"title"
:
"Bandwidth"
,
"description"
:
"Downlink Bandwidth (in MHz)"
,
"type"
:
"number"
,
"default"
:
40
},
"amf_list"
:
{
"title"
:
"AMF list"
,
"description"
:
"Optionnal. List of AMF to which the gNodeB is connected"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"amf_addr"
:
{
"title"
:
"AMF Address"
,
"description"
:
"IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412."
,
"type"
:
"string"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
"default"
:
100
},
"
gnb_id
"
:
{
"title"
:
"
gNB ID
"
,
"description"
:
"
gNB ID
"
,
"
imsi
"
:
{
"title"
:
"
IMSI
"
,
"description"
:
"
IMSI
"
,
"type"
:
"string"
,
"default"
:
"0x12345"
"default"
:
001010123456789
},
"pci"
:
{
"title"
:
"Physical Cell ID"
,
"description"
:
"Physical Cell ID"
,
"type"
:
"number"
,
"default"
:
1
},
"ssb_pos_bitmap"
:
{
"title"
:
"SSB Position Bitmap"
,
"description"
:
"SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency)."
,
"k"
:
{
"title"
:
"K"
,
"description"
:
"Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK)."
,
"type"
:
"string"
,
"default"
:
10000000
},
"plmn_list"
:
{
"title"
:
"PLMN list"
,
"description"
:
"List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"plmn"
:
{
"default"
:
"00101"
,
"title"
:
"Public Land Mobile Network"
,
"description"
:
"Public Land Mobile Network"
,
"type"
:
"string"
},
"tac"
:
{
"default"
:
100
,
"title"
:
"Tracking Area Code"
,
"description"
:
"Integer (range 0 to 16777215)"
,
"type"
:
"number"
},
"ranac"
:
{
"title"
:
"Optional integer (range 0 to 255)"
,
"description"
:
"RAN Area Code"
,
"type"
:
"number"
},
"reserved"
:
{
"default"
:
false
,
"title"
:
"Reserved"
,
"description"
:
"True if the cell is reserved for operator use."
,
"type"
:
"boolean"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"nssai"
:
{
"title"
:
"AMF slices configuration"
,
"description"
:
"AMF slices configuration."
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"sst"
:
{
"default"
:
1
,
"title"
:
"Slice Service Type"
,
"description"
:
"Integer (range 1 to 255)."
,
"type"
:
"number"
},
"sd"
:
{
"default"
:
50
,
"title"
:
"Slice Differentiator"
,
"description"
:
"Optional integer (range 0 to 0xFFFFFE)"
,
"type"
:
"number"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"use_ipv4"
:
{
"default"
:
false
,
"title"
:
"Use IPv4"
,
"description"
:
"Set to true to use IPv4 for AMF / MME addresses"
,
"type"
:
"boolean"
"default"
:
00112233445566778899
aabbccddeeff
}
}
}
software/ors-amarisoft/instance-tdd3700-ue-nr-input-schema.json
View file @
9de46148
...
...
@@ -33,108 +33,23 @@
"type"
:
"number"
,
"default"
:
40
},
"amf_list"
:
{
"title"
:
"AMF list"
,
"description"
:
"Optionnal. List of AMF to which the gNodeB is connected"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"amf_addr"
:
{
"title"
:
"AMF Address"
,
"description"
:
"IP address (and optional port) of NGAP SCTP connection to the AMF. The default port is 38412."
,
"type"
:
"string"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"gnb_id"
:
{
"title"
:
"gNB ID"
,
"description"
:
"gNB ID"
,
"type"
:
"string"
,
"default"
:
"0x12345"
},
"pci"
:
{
"title"
:
"Physical Cell ID"
,
"description"
:
"Physical Cell ID"
,
"ssb-nr-arfcn"
:
{
"title"
:
"SSB NR ARFCN"
,
"description"
:
"SSB NR ARFCN"
,
"type"
:
"number"
,
"default"
:
1
"default"
:
},
"
ssb_pos_bitmap
"
:
{
"title"
:
"
SSB Position Bitmap
"
,
"description"
:
"
SSB position bitmap in bits (4, 8 or 64 bits depending on the DL frequency).
"
,
"
imsi
"
:
{
"title"
:
"
IMSI
"
,
"description"
:
"
IMSI
"
,
"type"
:
"string"
,
"default"
:
10000000
"default"
:
001010123456789
},
"plmn_list"
:
{
"title"
:
"PLMN list"
,
"description"
:
"List of PLMNs broadcasted by the gNodeB, at most 12 (default: 00101)"
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"plmn"
:
{
"default"
:
"00101"
,
"title"
:
"Public Land Mobile Network"
,
"description"
:
"Public Land Mobile Network"
,
"type"
:
"string"
},
"tac"
:
{
"default"
:
100
,
"title"
:
"Tracking Area Code"
,
"description"
:
"Integer (range 0 to 16777215)"
,
"type"
:
"number"
},
"ranac"
:
{
"title"
:
"Optional integer (range 0 to 255)"
,
"description"
:
"RAN Area Code"
,
"type"
:
"number"
},
"reserved"
:
{
"default"
:
false
,
"title"
:
"Reserved"
,
"description"
:
"True if the cell is reserved for operator use."
,
"type"
:
"boolean"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"nssai"
:
{
"title"
:
"AMF slices configuration"
,
"description"
:
"AMF slices configuration."
,
"patternProperties"
:
{
".*"
:
{
"properties"
:
{
"sst"
:
{
"default"
:
1
,
"title"
:
"Slice Service Type"
,
"description"
:
"Integer (range 1 to 255)."
,
"type"
:
"number"
},
"sd"
:
{
"default"
:
50
,
"title"
:
"Slice Differentiator"
,
"description"
:
"Optional integer (range 0 to 0xFFFFFE)"
,
"type"
:
"number"
}
},
"type"
:
"object"
}
},
"type"
:
"object"
,
"default"
:
{}
},
"use_ipv4"
:
{
"default"
:
false
,
"title"
:
"Use IPv4"
,
"description"
:
"Set to true to use IPv4 for AMF / MME addresses"
,
"type"
:
"boolean"
"k"
:
{
"title"
:
"K"
,
"description"
:
"Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK)."
,
"type"
:
"string"
,
"default"
:
00112233445566778899
aabbccddeeff
}
}
}
software/ors-amarisoft/instance-ue-lte-schema.jinja2.json
→
software/ors-amarisoft/instance-ue-lte-
input-
schema.jinja2.json
View file @
9de46148
...
...
@@ -38,12 +38,6 @@
"description"
:
"Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK)."
,
"type"
:
"string"
,
"default"
:
{{
default_lte_k
}}
},
"use_ipv4"
:
{
"default"
:
false
,
"title"
:
"Use IPv4"
,
"description"
:
"Set to true to use IPv4 for AMF / MME addresses"
,
"type"
:
"boolean"
}
}
}
software/ors-amarisoft/instance-ue-nr-input-schema.jinja2.json
View file @
9de46148
...
...
@@ -37,7 +37,7 @@
"title"
:
"SSB NR ARFCN"
,
"description"
:
"SSB NR ARFCN"
,
"type"
:
"number"
,
"default"
:
{{
default
-ssb-nr-
arfcn
}}
"default"
:
{{
default
_ssb_nr_
arfcn
}}
},
"imsi"
:
{
"title"
:
"IMSI"
,
...
...
@@ -50,12 +50,6 @@
"description"
:
"Set the user secret key (as a 16 bytes hexadecimal string, or eventually 32 bytes hexadecimal string for TUAK)."
,
"type"
:
"string"
,
"default"
:
{{
default_nr_k
}}
},
"use_ipv4"
:
{
"default"
:
false
,
"title"
:
"Use IPv4"
,
"description"
:
"Set to true to use IPv4 for AMF / MME addresses"
,
"type"
:
"boolean"
}
}
}
software/ors-amarisoft/render-templates
View file @
9de46148
...
...
@@ -130,6 +130,10 @@ with open('instance-enb-input-schema.jinja2.json', 'r') as f:
instance_enb_json_template
=
Template
(
f
.
read
())
with
open
(
'instance-gnb-input-schema.jinja2.json'
,
'r'
)
as
f
:
instance_gnb_json_template
=
Template
(
f
.
read
())
with
open
(
'instance-ue-lte-input-schema.jinja2.json'
,
'r'
)
as
f
:
instance_ue_lte_json_template
=
Template
(
f
.
read
())
with
open
(
'instance-ue-nr-input-schema.jinja2.json'
,
'r'
)
as
f
:
instance_ue_nr_json_template
=
Template
(
f
.
read
())
with
open
(
'software.jinja2.cfg'
,
'r'
)
as
f
:
software_template
=
Template
(
f
.
read
())
with
open
(
'test/test.jinja2.py'
,
'r'
)
as
f
:
...
...
@@ -152,5 +156,10 @@ for rf_mode_context in rf_mode_context_list:
'w+'
)
as
f
:
if
software_type
in
[
'enb'
,
'enb-epc'
]:
f
.
write
(
instance_enb_json_template
.
render
(
**
rf_mode_context
,
**
global_context
,
epc
=
'epc'
in
software_type
)
+
'
\
n
'
)
el
se
:
el
if
software_type
in
[
'gnb'
,
'gnb-epc'
]:
f
.
write
(
instance_gnb_json_template
.
render
(
**
rf_mode_context
,
**
global_context
,
epc
=
'epc'
in
software_type
)
+
'
\
n
'
)
elif
software_type
in
[
'ue-lte'
]:
f
.
write
(
instance_ue_lte_json_template
.
render
(
**
rf_mode_context
,
**
global_context
)
+
'
\
n
'
)
else
:
f
.
write
(
instance_ue_nr_json_template
.
render
(
**
rf_mode_context
,
**
global_context
)
+
'
\
n
'
)
software/ors-amarisoft/test/test.jinja2.py
View file @
9de46148
...
...
@@ -140,6 +140,20 @@ epc_param_dict = {
'epc_plmn'
:
'00102'
,
}
ue_param_dict
=
{
'testing'
:
True
,
'tx_gain'
:
17
,
'rx_gain'
:
17
,
'dl_earfcn'
:
325320
,
'n_rb_dl'
:
50
,
'dl_nr_arfcn'
:
325320
,
'nr_band'
:
99
,
'nr_bandwidth'
:
50
,
'ssb-nr-arfcn'
:
377790
,
'imsi'
:
"001010123456789"
,
'k'
:
"00112233445566778899aabbccddeeff"
,
}
def
test_enb_conf
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
...
...
@@ -309,3 +323,33 @@ class TestGNBEPCSimCard(ORSTestCase):
def
test_sim_card
(
self
):
self
.
slap
.
waitForInstance
()
# Wait until publish is done
test_ue_db
(
self
)
class
TestUELTESimCard
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
"ue-lte"
def
test_ue_lte_conf
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
self
.
slap
.
instance_directory
,
'*'
,
'etc'
,
'ue-lte.cfg'
))[
0
]
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
class
TestUENRSimCard
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
"ue-nr"
def
test_ue_lte_conf
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
self
.
slap
.
instance_directory
,
'*'
,
'etc'
,
'ue-nr.cfg'
))[
0
]
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'ssb-nr-arfcn'
],
ue_param_dict
[
'ssb-nr-arfcn'
])
software/ors-amarisoft/test/testTDD1900.py
View file @
9de46148
...
...
@@ -140,6 +140,20 @@ epc_param_dict = {
'epc_plmn'
:
'00102'
,
}
ue_param_dict
=
{
'testing'
:
True
,
'tx_gain'
:
17
,
'rx_gain'
:
17
,
'dl_earfcn'
:
325320
,
'n_rb_dl'
:
50
,
'dl_nr_arfcn'
:
325320
,
'nr_band'
:
99
,
'nr_bandwidth'
:
50
,
'ssb-nr-arfcn'
:
377790
,
'imsi'
:
"001010123456789"
,
'k'
:
"00112233445566778899aabbccddeeff"
,
}
def
test_enb_conf
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
...
...
@@ -309,3 +323,33 @@ class TestGNBEPCSimCard(ORSTestCase):
def
test_sim_card
(
self
):
self
.
slap
.
waitForInstance
()
# Wait until publish is done
test_ue_db
(
self
)
class
TestUELTESimCard
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
"ue-lte"
def
test_ue_lte_conf
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
self
.
slap
.
instance_directory
,
'*'
,
'etc'
,
'ue-lte.cfg'
))[
0
]
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
class
TestUENRSimCard
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
"ue-nr"
def
test_ue_lte_conf
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
self
.
slap
.
instance_directory
,
'*'
,
'etc'
,
'ue-nr.cfg'
))[
0
]
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'ssb-nr-arfcn'
],
ue_param_dict
[
'ssb-nr-arfcn'
])
software/ors-amarisoft/test/testTDD2600.py
View file @
9de46148
...
...
@@ -140,6 +140,20 @@ epc_param_dict = {
'epc_plmn'
:
'00102'
,
}
ue_param_dict
=
{
'testing'
:
True
,
'tx_gain'
:
17
,
'rx_gain'
:
17
,
'dl_earfcn'
:
325320
,
'n_rb_dl'
:
50
,
'dl_nr_arfcn'
:
325320
,
'nr_band'
:
99
,
'nr_bandwidth'
:
50
,
'ssb-nr-arfcn'
:
377790
,
'imsi'
:
"001010123456789"
,
'k'
:
"00112233445566778899aabbccddeeff"
,
}
def
test_enb_conf
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
...
...
@@ -309,3 +323,33 @@ class TestGNBEPCSimCard(ORSTestCase):
def
test_sim_card
(
self
):
self
.
slap
.
waitForInstance
()
# Wait until publish is done
test_ue_db
(
self
)
class
TestUELTESimCard
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
"ue-lte"
def
test_ue_lte_conf
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
self
.
slap
.
instance_directory
,
'*'
,
'etc'
,
'ue-lte.cfg'
))[
0
]
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
class
TestUENRSimCard
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
"ue-nr"
def
test_ue_lte_conf
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
self
.
slap
.
instance_directory
,
'*'
,
'etc'
,
'ue-nr.cfg'
))[
0
]
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'ssb-nr-arfcn'
],
ue_param_dict
[
'ssb-nr-arfcn'
])
software/ors-amarisoft/test/testTDD3500.py
View file @
9de46148
...
...
@@ -140,6 +140,20 @@ epc_param_dict = {
'epc_plmn'
:
'00102'
,
}
ue_param_dict
=
{
'testing'
:
True
,
'tx_gain'
:
17
,
'rx_gain'
:
17
,
'dl_earfcn'
:
325320
,
'n_rb_dl'
:
50
,
'dl_nr_arfcn'
:
325320
,
'nr_band'
:
99
,
'nr_bandwidth'
:
50
,
'ssb-nr-arfcn'
:
377790
,
'imsi'
:
"001010123456789"
,
'k'
:
"00112233445566778899aabbccddeeff"
,
}
def
test_enb_conf
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
...
...
@@ -309,3 +323,33 @@ class TestGNBEPCSimCard(ORSTestCase):
def
test_sim_card
(
self
):
self
.
slap
.
waitForInstance
()
# Wait until publish is done
test_ue_db
(
self
)
class
TestUELTESimCard
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
"ue-lte"
def
test_ue_lte_conf
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
self
.
slap
.
instance_directory
,
'*'
,
'etc'
,
'ue-lte.cfg'
))[
0
]
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
class
TestUENRSimCard
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
"ue-nr"
def
test_ue_lte_conf
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
self
.
slap
.
instance_directory
,
'*'
,
'etc'
,
'ue-nr.cfg'
))[
0
]
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'ssb-nr-arfcn'
],
ue_param_dict
[
'ssb-nr-arfcn'
])
software/ors-amarisoft/test/testTDD3700.py
View file @
9de46148
...
...
@@ -140,6 +140,20 @@ epc_param_dict = {
'epc_plmn'
:
'00102'
,
}
ue_param_dict
=
{
'testing'
:
True
,
'tx_gain'
:
17
,
'rx_gain'
:
17
,
'dl_earfcn'
:
325320
,
'n_rb_dl'
:
50
,
'dl_nr_arfcn'
:
325320
,
'nr_band'
:
99
,
'nr_bandwidth'
:
50
,
'ssb-nr-arfcn'
:
377790
,
'imsi'
:
"001010123456789"
,
'k'
:
"00112233445566778899aabbccddeeff"
,
}
def
test_enb_conf
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
...
...
@@ -309,3 +323,33 @@ class TestGNBEPCSimCard(ORSTestCase):
def
test_sim_card
(
self
):
self
.
slap
.
waitForInstance
()
# Wait until publish is done
test_ue_db
(
self
)
class
TestUELTESimCard
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
"ue-lte"
def
test_ue_lte_conf
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
self
.
slap
.
instance_directory
,
'*'
,
'etc'
,
'ue-lte.cfg'
))[
0
]
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
class
TestUENRSimCard
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc_param_dict
)}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
"ue-nr"
def
test_ue_lte_conf
(
self
):
conf_file
=
glob
.
glob
(
os
.
path
.
join
(
self
.
slap
.
instance_directory
,
'*'
,
'etc'
,
'ue-nr.cfg'
))[
0
]
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'ssb-nr-arfcn'
],
ue_param_dict
[
'ssb-nr-arfcn'
])
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