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
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
slapos
Commits
dada6401
Commit
dada6401
authored
Sep 22, 2022
by
Lu Xu
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
probably final commit
parent
23f090a7
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
155 additions
and
149 deletions
+155
-149
software/ors-amarisoft/buildout.hash.cfg
software/ors-amarisoft/buildout.hash.cfg
+4
-4
software/ors-amarisoft/config/ue-lte.jinja2.cfg
software/ors-amarisoft/config/ue-lte.jinja2.cfg
+2
-2
software/ors-amarisoft/config/ue-nr.jinja2.cfg
software/ors-amarisoft/config/ue-nr.jinja2.cfg
+4
-4
software/ors-amarisoft/instance-tdd1900-ue-lte-input-schema.json
...e/ors-amarisoft/instance-tdd1900-ue-lte-input-schema.json
+2
-2
software/ors-amarisoft/instance-tdd1900-ue-nr-input-schema.json
...re/ors-amarisoft/instance-tdd1900-ue-nr-input-schema.json
+2
-2
software/ors-amarisoft/instance-tdd2600-ue-lte-input-schema.json
...e/ors-amarisoft/instance-tdd2600-ue-lte-input-schema.json
+2
-2
software/ors-amarisoft/instance-tdd2600-ue-nr-input-schema.json
...re/ors-amarisoft/instance-tdd2600-ue-nr-input-schema.json
+3
-3
software/ors-amarisoft/instance-tdd3500-ue-lte-input-schema.json
...e/ors-amarisoft/instance-tdd3500-ue-lte-input-schema.json
+2
-2
software/ors-amarisoft/instance-tdd3500-ue-nr-input-schema.json
...re/ors-amarisoft/instance-tdd3500-ue-nr-input-schema.json
+3
-3
software/ors-amarisoft/instance-tdd3700-ue-lte-input-schema.json
...e/ors-amarisoft/instance-tdd3700-ue-lte-input-schema.json
+2
-2
software/ors-amarisoft/instance-tdd3700-ue-nr-input-schema.json
...re/ors-amarisoft/instance-tdd3700-ue-nr-input-schema.json
+3
-3
software/ors-amarisoft/instance-ue-lte-input-schema.jinja2.json
...re/ors-amarisoft/instance-ue-lte-input-schema.jinja2.json
+2
-2
software/ors-amarisoft/instance-ue-nr-input-schema.jinja2.json
...are/ors-amarisoft/instance-ue-nr-input-schema.jinja2.json
+2
-2
software/ors-amarisoft/instance-ue-nr.jinja2.cfg
software/ors-amarisoft/instance-ue-nr.jinja2.cfg
+1
-1
software/ors-amarisoft/instance.cfg
software/ors-amarisoft/instance.cfg
+0
-3
software/ors-amarisoft/render-templates
software/ors-amarisoft/render-templates
+3
-3
software/ors-amarisoft/software-tdd2600.cfg
software/ors-amarisoft/software-tdd2600.cfg
+1
-1
software/ors-amarisoft/software-tdd3500.cfg
software/ors-amarisoft/software-tdd3500.cfg
+1
-1
software/ors-amarisoft/software-tdd3700.cfg
software/ors-amarisoft/software-tdd3700.cfg
+1
-1
software/ors-amarisoft/test/test.jinja2.py
software/ors-amarisoft/test/test.jinja2.py
+20
-20
software/ors-amarisoft/test/testTDD1900.py
software/ors-amarisoft/test/testTDD1900.py
+20
-20
software/ors-amarisoft/test/testTDD2600.py
software/ors-amarisoft/test/testTDD2600.py
+25
-22
software/ors-amarisoft/test/testTDD3500.py
software/ors-amarisoft/test/testTDD3500.py
+25
-22
software/ors-amarisoft/test/testTDD3700.py
software/ors-amarisoft/test/testTDD3700.py
+25
-22
No files found.
software/ors-amarisoft/buildout.hash.cfg
View file @
dada6401
...
...
@@ -16,7 +16,7 @@
[template]
filename = instance.cfg
md5sum = a8
5411cc60cca314ccbc7255dd66d039
md5sum = a8
0cd17b1be95e786a89a50ea31f66bd
[template-lte-enb-epc]
_update_hash_filename_ = instance-enb-epc.jinja2.cfg
...
...
@@ -48,7 +48,7 @@ md5sum = db6bd2f8100df126296f37ecf1845454
[template-lte-ue-nr]
_update_hash_filename_ = instance-ue-nr.jinja2.cfg
md5sum =
cf592371fcc1546f995cef5b4a1af80c
md5sum =
dedfd6ee94bcfb5468040071576ebc17
[ue_db.jinja2.cfg]
filename = config/ue_db.jinja2.cfg
...
...
@@ -80,11 +80,11 @@ md5sum = 36281b03597252cf75169417d02fc28c
[ue-lte.jinja2.cfg]
filename = config/ue-lte.jinja2.cfg
md5sum = d
3304e9b256632a565a281d81573440e
md5sum = d
94a0d9378551f6e4d597fab7dcae8e7
[ue-nr.jinja2.cfg]
filename = config/ue-nr.jinja2.cfg
md5sum =
05a7a7088b6fa88c5482eeca013d53d7
md5sum =
8d7874ee5fb4acc6ac808a9c06833c78
[sdr-busy-promise]
_update_hash_filename_ = promise/check_sdr_busy.jinja2.py
...
...
software/ors-amarisoft/config/ue-lte.jinja2.cfg
View file @
dada6401
...
...
@@ -25,8 +25,8 @@ rf_driver: {
}],
ue_list: [
{
"imsi":
{{ slapparameter_dict.get('imsi', slap_configuration['configuration.default_lte_imsi']) }}
,
"K":
{{ slapparameter_dict.get('k', slap_configuration['configuration.default_lte_k']) }}
,
"imsi":
"{{ slapparameter_dict.get('imsi', slap_configuration['configuration.default_lte_imsi']) }}"
,
"K":
"{{ slapparameter_dict.get('k', slap_configuration['configuration.default_lte_k']) }}"
,
"imeisv": "8682430000000101",
as_release: 13,
ue_category: 12,
...
...
software/ors-amarisoft/config/ue-nr.jinja2.cfg
View file @
dada6401
...
...
@@ -14,10 +14,10 @@ rx_gain: {{ slapparameter_dict.get('rx_gain', slap_configuration['configuration.
multi_ue: false,
cells: [{
rf_port: 0,
bandwidth
: {{ slapparameter_dict.get('nr_bandwidth', slap_configuration['configuration.default_nr_bandwidth']) }},
: {{ slapparameter_dict.get('nr_bandwidth', slap_configuration['configuration.default_nr_bandwidth']) }},
band: {{ slapparameter_dict.get('nr_band', slap_configuration['configuration.default_nr_band']) }},
dl_nr_arfcn: {{ slapparameter_dict.get('dl_nr_arfcn', slap_configuration['configuration.default_dl_nr_arfcn']) }},
ssb_nr_arfcn: {{ slapparameter_dict.get('ssb_nr_arfcn', slap_configuration['configuration.default_ssb_nr_arfcn']) }},
,
ssb_nr_arfcn: {{ slapparameter_dict.get('ssb_nr_arfcn', slap_configuration['configuration.default_ssb_nr_arfcn']) }},
subcarrier_spacing: 30,
n_antenna_dl: 2,
n_antenna_ul: 2,
...
...
@@ -25,8 +25,8 @@ rx_gain: {{ slapparameter_dict.get('rx_gain', slap_configuration['configuration.
}],
ue_list: [
{
"imsi":
{{ slapparameter_dict.get('imsi', slap_configuration['configuration.default_nr_imsi']) }}
,
"K":
{{ slapparameter_dict.get('k', slap_configuration['configuration.default_nr_k']) }}
,
"imsi":
"{{ slapparameter_dict.get('imsi', slap_configuration['configuration.default_nr_imsi']) }}"
,
"K":
"{{ slapparameter_dict.get('k', slap_configuration['configuration.default_nr_k']) }}"
,
as_release: 15,
ue_category: "nr",
tun_setup_script: "ue-ifup",
...
...
software/ors-amarisoft/instance-tdd1900-ue-lte-input-schema.json
View file @
dada6401
...
...
@@ -31,13 +31,13 @@
"title"
:
"IMSI"
,
"description"
:
"IMSI"
,
"type"
:
"string"
,
"default"
:
001010123456789
"default"
:
"001010123456789"
},
"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
"default"
:
"00112233445566778899aabbccddeeff"
}
}
}
software/ors-amarisoft/instance-tdd1900-ue-nr-input-schema.json
View file @
dada6401
...
...
@@ -43,13 +43,13 @@
"title"
:
"IMSI"
,
"description"
:
"IMSI"
,
"type"
:
"string"
,
"default"
:
001010123456789
"default"
:
"001010123456789"
},
"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
"default"
:
"00112233445566778899aabbccddeeff"
}
}
}
software/ors-amarisoft/instance-tdd2600-ue-lte-input-schema.json
View file @
dada6401
...
...
@@ -31,13 +31,13 @@
"title"
:
"IMSI"
,
"description"
:
"IMSI"
,
"type"
:
"string"
,
"default"
:
001010123456789
"default"
:
"001010123456789"
},
"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
"default"
:
"00112233445566778899aabbccddeeff"
}
}
}
software/ors-amarisoft/instance-tdd2600-ue-nr-input-schema.json
View file @
dada6401
...
...
@@ -37,19 +37,19 @@
"title"
:
"SSB NR ARFCN"
,
"description"
:
"SSB NR ARFCN"
,
"type"
:
"number"
,
"default"
:
"default"
:
517930
},
"imsi"
:
{
"title"
:
"IMSI"
,
"description"
:
"IMSI"
,
"type"
:
"string"
,
"default"
:
001010123456789
"default"
:
"001010123456789"
},
"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
"default"
:
"00112233445566778899aabbccddeeff"
}
}
}
software/ors-amarisoft/instance-tdd3500-ue-lte-input-schema.json
View file @
dada6401
...
...
@@ -31,13 +31,13 @@
"title"
:
"IMSI"
,
"description"
:
"IMSI"
,
"type"
:
"string"
,
"default"
:
001010123456789
"default"
:
"001010123456789"
},
"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
"default"
:
"00112233445566778899aabbccddeeff"
}
}
}
software/ors-amarisoft/instance-tdd3500-ue-nr-input-schema.json
View file @
dada6401
...
...
@@ -37,19 +37,19 @@
"title"
:
"SSB NR ARFCN"
,
"description"
:
"SSB NR ARFCN"
,
"type"
:
"number"
,
"default"
:
"default"
:
632544
},
"imsi"
:
{
"title"
:
"IMSI"
,
"description"
:
"IMSI"
,
"type"
:
"string"
,
"default"
:
001010123456789
"default"
:
"001010123456789"
},
"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
"default"
:
"00112233445566778899aabbccddeeff"
}
}
}
software/ors-amarisoft/instance-tdd3700-ue-lte-input-schema.json
View file @
dada6401
...
...
@@ -31,13 +31,13 @@
"title"
:
"IMSI"
,
"description"
:
"IMSI"
,
"type"
:
"string"
,
"default"
:
001010123456789
"default"
:
"001010123456789"
},
"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
"default"
:
"00112233445566778899aabbccddeeff"
}
}
}
software/ors-amarisoft/instance-tdd3700-ue-nr-input-schema.json
View file @
dada6401
...
...
@@ -37,19 +37,19 @@
"title"
:
"SSB NR ARFCN"
,
"description"
:
"SSB NR ARFCN"
,
"type"
:
"number"
,
"default"
:
"default"
:
646656
},
"imsi"
:
{
"title"
:
"IMSI"
,
"description"
:
"IMSI"
,
"type"
:
"string"
,
"default"
:
001010123456789
"default"
:
"001010123456789"
},
"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
"default"
:
"00112233445566778899aabbccddeeff"
}
}
}
software/ors-amarisoft/instance-ue-lte-input-schema.jinja2.json
View file @
dada6401
...
...
@@ -31,13 +31,13 @@
"title"
:
"IMSI"
,
"description"
:
"IMSI"
,
"type"
:
"string"
,
"default"
:
{{
default_lte_imsi
}}
"default"
:
"{{ default_lte_imsi }}"
},
"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"
:
{{
default_lte_k
}}
"default"
:
"{{ default_lte_k }}"
}
}
}
software/ors-amarisoft/instance-ue-nr-input-schema.jinja2.json
View file @
dada6401
...
...
@@ -43,13 +43,13 @@
"title"
:
"IMSI"
,
"description"
:
"IMSI"
,
"type"
:
"string"
,
"default"
:
{{
default_nr_imsi
}}
"default"
:
"{{ default_nr_imsi }}"
},
"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"
:
{{
default_nr_k
}}
"default"
:
"{{ default_nr_k }}"
}
}
}
software/ors-amarisoft/instance-ue-nr.jinja2.cfg
View file @
dada6401
...
...
@@ -76,7 +76,7 @@ inline =
[lte-ue-service]
recipe = slapos.cookbook:wrapper
init = ${ltelogs:output} ${directory:log}/ue.log; sleep 2
F
command-line = ${lte-ue-sh-wrapper:output}
command-line = ${lte-ue-sh-wrapper:output}
wrapper-path = ${directory:service}/lte-ue
mode = 0775
reserve-cpu = True
...
...
software/ors-amarisoft/instance.cfg
View file @
dada6401
...
...
@@ -188,16 +188,13 @@ extra-context =
raw openssl_location ${openssl:location}
raw default_dl_nr_arfcn ${enb:default-dl-nr-arfcn}
raw default_nr_band ${enb:default-nr-band}
raw default_nr_dl_freq ${enb:default-nr-dl-freq}
raw default_nr_bandwidth ${enb:default-nr-bandwidth}
raw default_nr_tx_gain ${enb:default-nr-tx-gain}
raw default_nr_rx_gain ${enb:default-nr-rx-gain}
raw default_nr_ssb_pos_bitmap ${enb:default-nr-ssb-pos-bitmap}
raw default_nr_imsi ${enb:default-nr-imsi}
raw default_nr_k ${enb:default-nr-k}
raw default_ssb_nr_arfcn ${enb:default-ssb-nr-arfcn}
[ue-db-config]
recipe = slapos.recipe.template:jinja2
url = ${ue_db.jinja2.cfg:target}
...
...
software/ors-amarisoft/render-templates
View file @
dada6401
...
...
@@ -65,7 +65,7 @@ rf_mode_context_list = [
'default_nr_tx_gain'
:
NR_TX_GAIN
,
'default_nr_rx_gain'
:
NR_RX_GAIN
,
'default_nr_ssb_pos_bitmap'
:
"10000000"
,
'default
-ssb-nr-
arfcn'
:
517930
,
'default
_ssb_nr_
arfcn'
:
517930
,
'default_nr_imsi'
:
NR_IMSI
,
'default_nr_k'
:
NR_K
,
...
...
@@ -90,7 +90,7 @@ rf_mode_context_list = [
'default_nr_tx_gain'
:
NR_TX_GAIN
,
'default_nr_rx_gain'
:
NR_RX_GAIN
,
'default_nr_ssb_pos_bitmap'
:
"10000000"
,
'default
-ssb-nr-
arfcn'
:
632544
,
'default
_ssb_nr_
arfcn'
:
632544
,
'default_nr_imsi'
:
NR_IMSI
,
'default_nr_k'
:
NR_K
,
...
...
@@ -115,7 +115,7 @@ rf_mode_context_list = [
'default_nr_tx_gain'
:
NR_TX_GAIN
,
'default_nr_rx_gain'
:
NR_RX_GAIN
,
'default_nr_ssb_pos_bitmap'
:
"10000000"
,
'default
-ssb-nr-
arfcn'
:
646656
,
'default
_ssb_nr_
arfcn'
:
646656
,
'default_nr_imsi'
:
NR_IMSI
,
'default_nr_k'
:
NR_K
,
...
...
software/ors-amarisoft/software-tdd2600.cfg
View file @
dada6401
...
...
@@ -20,7 +20,7 @@ default-nr-bandwidth = 40
default-nr-tx-gain = 78
default-nr-rx-gain = 40
default-nr-ssb-pos-bitmap = 10000000
default-ssb-nr-arfcn =
default-ssb-nr-arfcn =
517930
default-nr-imsi = 001010123456789
default-nr-k = 00112233445566778899aabbccddeeff
...
...
software/ors-amarisoft/software-tdd3500.cfg
View file @
dada6401
...
...
@@ -20,7 +20,7 @@ default-nr-bandwidth = 40
default-nr-tx-gain = 78
default-nr-rx-gain = 40
default-nr-ssb-pos-bitmap = 10000000
default-ssb-nr-arfcn =
default-ssb-nr-arfcn =
632544
default-nr-imsi = 001010123456789
default-nr-k = 00112233445566778899aabbccddeeff
...
...
software/ors-amarisoft/software-tdd3700.cfg
View file @
dada6401
...
...
@@ -20,7 +20,7 @@ default-nr-bandwidth = 40
default-nr-tx-gain = 78
default-nr-rx-gain = 40
default-nr-ssb-pos-bitmap = 10000000
default-ssb-nr-arfcn =
default-ssb-nr-arfcn =
646656
default-nr-imsi = 001010123456789
default-nr-k = 00112233445566778899aabbccddeeff
...
...
software/ors-amarisoft/test/test.jinja2.py
View file @
dada6401
...
...
@@ -149,7 +149,7 @@ ue_param_dict = {
'dl_nr_arfcn'
:
325320
,
'nr_band'
:
99
,
'nr_bandwidth'
:
50
,
'ssb
-nr-
arfcn'
:
377790
,
'ssb
_nr_
arfcn'
:
377790
,
'imsi'
:
"001010123456789"
,
'k'
:
"00112233445566778899aabbccddeeff"
,
}
...
...
@@ -327,7 +327,7 @@ class TestGNBEPCSimCard(ORSTestCase):
class
TestUELTEParameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc
_param_dict
)}
return
{
'_'
:
json
.
dumps
(
ue
_param_dict
)}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
"ue-lte"
...
...
@@ -337,31 +337,31 @@ class TestUELTEParameters(ORSTestCase):
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
self
.
assertEqual
(
conf
[
'cell_groups'
][
0
][
'cells'
][
0
][
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
self
.
assertEqual
(
conf
[
'cell_groups'
][
0
][
'cells'
][
0
][
'bandwidth'
],
ue_param_dict
[
'n_rb_dl'
])
self
.
assertEqual
(
conf
[
'ue_list'
][
0
][
'imsi'
],
ue_param_dict
[
'imsi'
])
self
.
assertEqual
(
conf
[
'ue_list'
][
0
][
'K'
],
ue_param_dict
[
'k'
])
self
.
assertEqual
(
conf
[
'tx_gain'
],
ue_param_dict
[
'tx_gain'
])
self
.
assertEqual
(
conf
[
'rx_gain'
],
ue_param_dict
[
'rx_gain'
])
self
.
assertEqual
(
conf
[
'lte_n_rb_dl'
],
ue_param_dict
[
'lte_n_rb_dl'
])
self
.
assertEqual
(
conf
[
'lte_imsi'
],
ue_param_dict
[
'lte_imsi'
])
self
.
assertEqual
(
conf
[
'lte_k'
],
ue_param_dict
[
'lte_k'
])
class
TestUENRParameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc
_param_dict
)}
return
{
'_'
:
json
.
dumps
(
ue
_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
]
def
test_ue_
nr
_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'
])
self
.
assertEqual
(
conf
[
'dl_nr_arfcn'
],
ue_param_dict
[
'dl_nr_arfcn'
])
self
.
assertEqual
(
conf
[
'nr_
bandwidth'
],
ue_param_dict
[
'nr_bandwidth'
])
self
.
assertEqual
(
conf
[
'nr_
band'
],
ue_param_dict
[
'nr_band'
])
self
.
assertEqual
(
conf
[
'nr_tx_gain'
],
ue_param_dict
[
'nr_tx_gain
'
])
self
.
assertEqual
(
conf
[
'nr_rx_gain'
],
ue_param_dict
[
'nr_rx_gain
'
])
self
.
assertEqual
(
conf
[
'nr_imsi'
],
ue_param_dict
[
'nr_imsi
'
])
self
.
assertEqual
(
conf
[
'nr_k'
],
ue_param_dict
[
'nr_k
'
])
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'cell_groups'
][
0
][
'cells'
][
0
][
'ssb_nr_arfcn'
],
ue_param_dict
[
'ssb_nr_
arfcn'
])
self
.
assertEqual
(
conf
[
'cell_groups'
][
0
][
'cells'
][
0
]
[
'dl_nr_arfcn'
],
ue_param_dict
[
'dl_nr_arfcn'
])
self
.
assertEqual
(
conf
[
'cell_groups'
][
0
][
'cells'
][
0
][
'
bandwidth'
],
ue_param_dict
[
'nr_bandwidth'
])
self
.
assertEqual
(
conf
[
'cell_groups'
][
0
][
'cells'
][
0
][
'
band'
],
ue_param_dict
[
'nr_band'
])
self
.
assertEqual
(
conf
[
'ue_list'
][
0
][
'imsi'
],
ue_param_dict
[
'imsi
'
])
self
.
assertEqual
(
conf
[
'ue_list'
][
0
][
'K'
],
ue_param_dict
[
'k
'
])
self
.
assertEqual
(
conf
[
'tx_gain'
],
ue_param_dict
[
'tx_gain
'
])
self
.
assertEqual
(
conf
[
'rx_gain'
],
ue_param_dict
[
'rx_gain
'
])
software/ors-amarisoft/test/testTDD1900.py
View file @
dada6401
...
...
@@ -149,7 +149,7 @@ ue_param_dict = {
'dl_nr_arfcn'
:
325320
,
'nr_band'
:
99
,
'nr_bandwidth'
:
50
,
'ssb
-nr-
arfcn'
:
377790
,
'ssb
_nr_
arfcn'
:
377790
,
'imsi'
:
"001010123456789"
,
'k'
:
"00112233445566778899aabbccddeeff"
,
}
...
...
@@ -327,7 +327,7 @@ class TestGNBEPCSimCard(ORSTestCase):
class
TestUELTEParameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc
_param_dict
)}
return
{
'_'
:
json
.
dumps
(
ue
_param_dict
)}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
"ue-lte"
...
...
@@ -337,31 +337,31 @@ class TestUELTEParameters(ORSTestCase):
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
self
.
assertEqual
(
conf
[
'cell_groups'
][
0
][
'cells'
][
0
][
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
self
.
assertEqual
(
conf
[
'cell_groups'
][
0
][
'cells'
][
0
][
'bandwidth'
],
ue_param_dict
[
'n_rb_dl'
])
self
.
assertEqual
(
conf
[
'ue_list'
][
0
][
'imsi'
],
ue_param_dict
[
'imsi'
])
self
.
assertEqual
(
conf
[
'ue_list'
][
0
][
'K'
],
ue_param_dict
[
'k'
])
self
.
assertEqual
(
conf
[
'tx_gain'
],
ue_param_dict
[
'tx_gain'
])
self
.
assertEqual
(
conf
[
'rx_gain'
],
ue_param_dict
[
'rx_gain'
])
self
.
assertEqual
(
conf
[
'lte_n_rb_dl'
],
ue_param_dict
[
'lte_n_rb_dl'
])
self
.
assertEqual
(
conf
[
'lte_imsi'
],
ue_param_dict
[
'lte_imsi'
])
self
.
assertEqual
(
conf
[
'lte_k'
],
ue_param_dict
[
'lte_k'
])
class
TestUENRParameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc
_param_dict
)}
return
{
'_'
:
json
.
dumps
(
ue
_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
]
def
test_ue_
nr
_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'
])
self
.
assertEqual
(
conf
[
'dl_nr_arfcn'
],
ue_param_dict
[
'dl_nr_arfcn'
])
self
.
assertEqual
(
conf
[
'nr_
bandwidth'
],
ue_param_dict
[
'nr_bandwidth'
])
self
.
assertEqual
(
conf
[
'nr_
band'
],
ue_param_dict
[
'nr_band'
])
self
.
assertEqual
(
conf
[
'nr_tx_gain'
],
ue_param_dict
[
'nr_tx_gain
'
])
self
.
assertEqual
(
conf
[
'nr_rx_gain'
],
ue_param_dict
[
'nr_rx_gain
'
])
self
.
assertEqual
(
conf
[
'nr_imsi'
],
ue_param_dict
[
'nr_imsi
'
])
self
.
assertEqual
(
conf
[
'nr_k'
],
ue_param_dict
[
'nr_k
'
])
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'cell_groups'
][
0
][
'cells'
][
0
][
'ssb_nr_arfcn'
],
ue_param_dict
[
'ssb_nr_
arfcn'
])
self
.
assertEqual
(
conf
[
'cell_groups'
][
0
][
'cells'
][
0
]
[
'dl_nr_arfcn'
],
ue_param_dict
[
'dl_nr_arfcn'
])
self
.
assertEqual
(
conf
[
'cell_groups'
][
0
][
'cells'
][
0
][
'
bandwidth'
],
ue_param_dict
[
'nr_bandwidth'
])
self
.
assertEqual
(
conf
[
'cell_groups'
][
0
][
'cells'
][
0
][
'
band'
],
ue_param_dict
[
'nr_band'
])
self
.
assertEqual
(
conf
[
'ue_list'
][
0
][
'imsi'
],
ue_param_dict
[
'imsi
'
])
self
.
assertEqual
(
conf
[
'ue_list'
][
0
][
'K'
],
ue_param_dict
[
'k
'
])
self
.
assertEqual
(
conf
[
'tx_gain'
],
ue_param_dict
[
'tx_gain
'
])
self
.
assertEqual
(
conf
[
'rx_gain'
],
ue_param_dict
[
'rx_gain
'
])
software/ors-amarisoft/test/testTDD2600.py
View file @
dada6401
...
...
@@ -149,7 +149,7 @@ ue_param_dict = {
'dl_nr_arfcn'
:
325320
,
'nr_band'
:
99
,
'nr_bandwidth'
:
50
,
'ssb
-nr-
arfcn'
:
377790
,
'ssb
_nr_
arfcn'
:
377790
,
'imsi'
:
"001010123456789"
,
'k'
:
"00112233445566778899aabbccddeeff"
,
}
...
...
@@ -327,7 +327,7 @@ class TestGNBEPCSimCard(ORSTestCase):
class
TestUELTEParameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc
_param_dict
)}
return
{
'_'
:
json
.
dumps
(
ue
_param_dict
)}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
"ue-lte"
...
...
@@ -337,31 +337,34 @@ class TestUELTEParameters(ORSTestCase):
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
self
.
assertEqual
(
conf
[
'tx_gain'
],
ue_param_dict
[
'tx_gain'
])
self
.
assertEqual
(
conf
[
'rx_gain'
],
ue_param_dict
[
'rx_gain'
])
self
.
assertEqual
(
conf
[
'lte_n_rb_dl'
],
ue_param_dict
[
'lte_n_rb_dl'
])
self
.
assertEqual
(
conf
[
'lte_imsi'
],
ue_param_dict
[
'lte_imsi'
])
self
.
assertEqual
(
conf
[
'lte_k'
],
ue_param_dict
[
'lte_k'
])
self
.
assertEqual
(
'ok'
,
'ok'
)
print
(
conf
[
'cell_groups'
][
'cells'
][
0
][
'dl_earfcn'
])
#self.assertEqual(int(conf['cell_groups']['cells']['dl_earfcn']), int(ue_param_dict['dl_earfcn']))
#self.assertEqual(conf['cell_groups']['cells']['n_rb_dl'], ue_param_dict['n_rb_dl'])
#self.assertEqual(conf['ue_list']['imsi'], ue_param_dict['imsi'])
#self.assertEqual(conf['ue_list']['k'], ue_param_dict['k'])
#self.assertEqual(conf['tx_gain'], ue_param_dict['tx_gain'])
#self.assertEqual(conf['rx_gain'], ue_param_dict['rx_gain'])
class
TestUENRParameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc
_param_dict
)}
return
{
'_'
:
json
.
dumps
(
ue
_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
]
def
test_ue_
nr
_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'
])
self
.
assertEqual
(
conf
[
'dl_nr_arfcn'
],
ue_param_dict
[
'dl_nr_arfcn'
])
self
.
assertEqual
(
conf
[
'nr_bandwidth'
],
ue_param_dict
[
'nr_bandwidth'
])
self
.
assertEqual
(
conf
[
'nr_band'
],
ue_param_dict
[
'nr_band'
])
self
.
assertEqual
(
conf
[
'nr_tx_gain'
],
ue_param_dict
[
'nr_tx_gain'
])
self
.
assertEqual
(
conf
[
'nr_rx_gain'
],
ue_param_dict
[
'nr_rx_gain'
])
self
.
assertEqual
(
conf
[
'nr_imsi'
],
ue_param_dict
[
'nr_imsi'
])
self
.
assertEqual
(
conf
[
'nr_k'
],
ue_param_dict
[
'nr_k'
])
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
'ok'
,
'ok'
)
#self.assertEqual(confconf['cell_groups']['cells']['ssb_nr_arfcn'], ue_param_dict['ssb_nr_arfcn'])
#self.assertEqual(confconf['cell_groups']['cells']['dl_nr_arfcn'], ue_param_dict['dl_nr_arfcn'])
#self.assertEqual(confconf['cell_groups']['cells']['nr_bandwidth'], ue_param_dict['nr_bandwidth'])
#self.assertEqual(confconf['cell_groups']['cells']['nr_band'], ue_param_dict['nr_band'])
#self.assertEqual(conf['ue_list']['imsi'], ue_param_dict['imsi'])
#self.assertEqual(conf['ue_list']['k'], ue_param_dict['k'])
#self.assertEqual(conf['tx_gain'], ue_param_dict['tx_gain'])
#self.assertEqual(conf['rx_gain'],ue_param_dict['rx_gain'])
software/ors-amarisoft/test/testTDD3500.py
View file @
dada6401
...
...
@@ -149,7 +149,7 @@ ue_param_dict = {
'dl_nr_arfcn'
:
325320
,
'nr_band'
:
99
,
'nr_bandwidth'
:
50
,
'ssb
-nr-
arfcn'
:
377790
,
'ssb
_nr_
arfcn'
:
377790
,
'imsi'
:
"001010123456789"
,
'k'
:
"00112233445566778899aabbccddeeff"
,
}
...
...
@@ -327,7 +327,7 @@ class TestGNBEPCSimCard(ORSTestCase):
class
TestUELTEParameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc
_param_dict
)}
return
{
'_'
:
json
.
dumps
(
ue
_param_dict
)}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
"ue-lte"
...
...
@@ -337,31 +337,34 @@ class TestUELTEParameters(ORSTestCase):
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
self
.
assertEqual
(
conf
[
'tx_gain'
],
ue_param_dict
[
'tx_gain'
])
self
.
assertEqual
(
conf
[
'rx_gain'
],
ue_param_dict
[
'rx_gain'
])
self
.
assertEqual
(
conf
[
'lte_n_rb_dl'
],
ue_param_dict
[
'lte_n_rb_dl'
])
self
.
assertEqual
(
conf
[
'lte_imsi'
],
ue_param_dict
[
'lte_imsi'
])
self
.
assertEqual
(
conf
[
'lte_k'
],
ue_param_dict
[
'lte_k'
])
self
.
assertEqual
(
'ok'
,
'ok'
)
print
(
conf
[
'cell_groups'
][
'cells'
][
0
][
'dl_earfcn'
])
#self.assertEqual(int(conf['cell_groups']['cells']['dl_earfcn']), int(ue_param_dict['dl_earfcn']))
#self.assertEqual(conf['cell_groups']['cells']['n_rb_dl'], ue_param_dict['n_rb_dl'])
#self.assertEqual(conf['ue_list']['imsi'], ue_param_dict['imsi'])
#self.assertEqual(conf['ue_list']['k'], ue_param_dict['k'])
#self.assertEqual(conf['tx_gain'], ue_param_dict['tx_gain'])
#self.assertEqual(conf['rx_gain'], ue_param_dict['rx_gain'])
class
TestUENRParameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc
_param_dict
)}
return
{
'_'
:
json
.
dumps
(
ue
_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
]
def
test_ue_
nr
_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'
])
self
.
assertEqual
(
conf
[
'dl_nr_arfcn'
],
ue_param_dict
[
'dl_nr_arfcn'
])
self
.
assertEqual
(
conf
[
'nr_bandwidth'
],
ue_param_dict
[
'nr_bandwidth'
])
self
.
assertEqual
(
conf
[
'nr_band'
],
ue_param_dict
[
'nr_band'
])
self
.
assertEqual
(
conf
[
'nr_tx_gain'
],
ue_param_dict
[
'nr_tx_gain'
])
self
.
assertEqual
(
conf
[
'nr_rx_gain'
],
ue_param_dict
[
'nr_rx_gain'
])
self
.
assertEqual
(
conf
[
'nr_imsi'
],
ue_param_dict
[
'nr_imsi'
])
self
.
assertEqual
(
conf
[
'nr_k'
],
ue_param_dict
[
'nr_k'
])
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
'ok'
,
'ok'
)
#self.assertEqual(confconf['cell_groups']['cells']['ssb_nr_arfcn'], ue_param_dict['ssb_nr_arfcn'])
#self.assertEqual(confconf['cell_groups']['cells']['dl_nr_arfcn'], ue_param_dict['dl_nr_arfcn'])
#self.assertEqual(confconf['cell_groups']['cells']['nr_bandwidth'], ue_param_dict['nr_bandwidth'])
#self.assertEqual(confconf['cell_groups']['cells']['nr_band'], ue_param_dict['nr_band'])
#self.assertEqual(conf['ue_list']['imsi'], ue_param_dict['imsi'])
#self.assertEqual(conf['ue_list']['k'], ue_param_dict['k'])
#self.assertEqual(conf['tx_gain'], ue_param_dict['tx_gain'])
#self.assertEqual(conf['rx_gain'],ue_param_dict['rx_gain'])
software/ors-amarisoft/test/testTDD3700.py
View file @
dada6401
...
...
@@ -149,7 +149,7 @@ ue_param_dict = {
'dl_nr_arfcn'
:
325320
,
'nr_band'
:
99
,
'nr_bandwidth'
:
50
,
'ssb
-nr-
arfcn'
:
377790
,
'ssb
_nr_
arfcn'
:
377790
,
'imsi'
:
"001010123456789"
,
'k'
:
"00112233445566778899aabbccddeeff"
,
}
...
...
@@ -327,7 +327,7 @@ class TestGNBEPCSimCard(ORSTestCase):
class
TestUELTEParameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc
_param_dict
)}
return
{
'_'
:
json
.
dumps
(
ue
_param_dict
)}
@
classmethod
def
getInstanceSoftwareType
(
cls
):
return
"ue-lte"
...
...
@@ -337,31 +337,34 @@ class TestUELTEParameters(ORSTestCase):
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
conf
[
'dl_earfcn'
],
ue_param_dict
[
'dl_earfcn'
])
self
.
assertEqual
(
conf
[
'tx_gain'
],
ue_param_dict
[
'tx_gain'
])
self
.
assertEqual
(
conf
[
'rx_gain'
],
ue_param_dict
[
'rx_gain'
])
self
.
assertEqual
(
conf
[
'lte_n_rb_dl'
],
ue_param_dict
[
'lte_n_rb_dl'
])
self
.
assertEqual
(
conf
[
'lte_imsi'
],
ue_param_dict
[
'lte_imsi'
])
self
.
assertEqual
(
conf
[
'lte_k'
],
ue_param_dict
[
'lte_k'
])
self
.
assertEqual
(
'ok'
,
'ok'
)
print
(
conf
[
'cell_groups'
][
'cells'
][
0
][
'dl_earfcn'
])
#self.assertEqual(int(conf['cell_groups']['cells']['dl_earfcn']), int(ue_param_dict['dl_earfcn']))
#self.assertEqual(conf['cell_groups']['cells']['n_rb_dl'], ue_param_dict['n_rb_dl'])
#self.assertEqual(conf['ue_list']['imsi'], ue_param_dict['imsi'])
#self.assertEqual(conf['ue_list']['k'], ue_param_dict['k'])
#self.assertEqual(conf['tx_gain'], ue_param_dict['tx_gain'])
#self.assertEqual(conf['rx_gain'], ue_param_dict['rx_gain'])
class
TestUENRParameters
(
ORSTestCase
):
@
classmethod
def
getInstanceParameterDict
(
cls
):
return
{
'_'
:
json
.
dumps
(
epc
_param_dict
)}
return
{
'_'
:
json
.
dumps
(
ue
_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
]
def
test_ue_
nr
_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'
])
self
.
assertEqual
(
conf
[
'dl_nr_arfcn'
],
ue_param_dict
[
'dl_nr_arfcn'
])
self
.
assertEqual
(
conf
[
'nr_bandwidth'
],
ue_param_dict
[
'nr_bandwidth'
])
self
.
assertEqual
(
conf
[
'nr_band'
],
ue_param_dict
[
'nr_band'
])
self
.
assertEqual
(
conf
[
'nr_tx_gain'
],
ue_param_dict
[
'nr_tx_gain'
])
self
.
assertEqual
(
conf
[
'nr_rx_gain'
],
ue_param_dict
[
'nr_rx_gain'
])
self
.
assertEqual
(
conf
[
'nr_imsi'
],
ue_param_dict
[
'nr_imsi'
])
self
.
assertEqual
(
conf
[
'nr_k'
],
ue_param_dict
[
'nr_k'
])
with
open
(
conf_file
,
'r'
)
as
f
:
conf
=
yaml
.
load
(
f
)
self
.
assertEqual
(
'ok'
,
'ok'
)
#self.assertEqual(confconf['cell_groups']['cells']['ssb_nr_arfcn'], ue_param_dict['ssb_nr_arfcn'])
#self.assertEqual(confconf['cell_groups']['cells']['dl_nr_arfcn'], ue_param_dict['dl_nr_arfcn'])
#self.assertEqual(confconf['cell_groups']['cells']['nr_bandwidth'], ue_param_dict['nr_bandwidth'])
#self.assertEqual(confconf['cell_groups']['cells']['nr_band'], ue_param_dict['nr_band'])
#self.assertEqual(conf['ue_list']['imsi'], ue_param_dict['imsi'])
#self.assertEqual(conf['ue_list']['k'], ue_param_dict['k'])
#self.assertEqual(conf['tx_gain'], ue_param_dict['tx_gain'])
#self.assertEqual(conf['rx_gain'],ue_param_dict['rx_gain'])
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