Commit d9d7376b authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 7337b718
#!/usr/bin/env -S slapos console #!/usr/bin/env -S slapos console
"""request mme/enb and configure radio units and cells on Callbox5 + real SlapOS Master""" """request mme/enb and configure radio units and cells on Callbox5 + real SlapOS Master"""
# NOTE see krequest-tmru.enb+ for requesting under theia
# XXX workaround for `slapos console` not setting up sys.path the same way as std python does # XXX workaround for `slapos console` not setting up sys.path the same way as std python does
import sys import sys
......
...@@ -9,11 +9,11 @@ sys.path.insert(0, dirname(__file__)) ...@@ -9,11 +9,11 @@ sys.path.insert(0, dirname(__file__))
import kslap import kslap
kslap.init(slap) kslap.init(slap)
import json, copy import os, json, copy
from pprint import pprint from pprint import pprint
kamari = "/srv/slapgrid/slappart35/srv/project/slapos/software/ors-amarisoft/software.cfg" kamari = "%(HOME)s/srv/project/slapos/software/ors-amarisoft/software.cfg" % os.environ
enb1 = kslap.request(kamari, enb1 = kslap.request(kamari,
software_type="enb", software_type="enb",
...@@ -21,6 +21,12 @@ enb1 = kslap.request(kamari, ...@@ -21,6 +21,12 @@ enb1 = kslap.request(kamari,
filter_kw={"computer_guid": "slaprunner"}, filter_kw={"computer_guid": "slaprunner"},
partition_parameter_kw={"_": json.dumps({ partition_parameter_kw={"_": json.dumps({
'testing': True, 'testing': True,
"enb_id": "0x10012",
"gnb_id": "0x54321",
'mme_list': {'1': {'mme_addr': '127.0.0.100'}},
'amf_list': {'1': {'amf_addr': '127.0.0.200'}},
'plmn_list': {'1': {'plmn': '31415'}},
'plmn_list_5g': {'1': {'plmn': '51413', 'tac': 0x4321}},
})}) })})
""" """
...@@ -70,6 +76,7 @@ CELL1_a = { ...@@ -70,6 +76,7 @@ CELL1_a = {
'dl_earfcn': 38050, # 2600 MHz 'dl_earfcn': 38050, # 2600 MHz
'pci': 1, 'pci': 1,
'cell_id': '0x01', 'cell_id': '0x01',
'tac': '0x1234',
'ru': RU1, # RU definition embedded into CELL 'ru': RU1, # RU definition embedded into CELL
} }
...@@ -84,6 +91,7 @@ CELL1_b = { ...@@ -84,6 +91,7 @@ CELL1_b = {
'dl_earfcn': 38100, # 2605 MHz 'dl_earfcn': 38100, # 2605 MHz
'pci': 2, 'pci': 2,
'cell_id': '0x02', 'cell_id': '0x02',
'tac': '0x1234',
'ru': { # CELL1_b shares RU with CELL1_a referring to it via cell 'ru': { # CELL1_b shares RU with CELL1_a referring to it via cell
'ru_type': 'ruincell_ref', 'ru_type': 'ruincell_ref',
'ruincell_ref': 'CELL1_a' 'ruincell_ref': 'CELL1_a'
...@@ -129,6 +137,7 @@ kslap.iSHARED(enb1, 'CELL2_a', { ...@@ -129,6 +137,7 @@ kslap.iSHARED(enb1, 'CELL2_a', {
'dl_earfcn': 3350, # 2680 MHz 'dl_earfcn': 3350, # 2680 MHz
'pci': 21, 'pci': 21,
'cell_id': '0x21', 'cell_id': '0x21',
'tac': '0x1234',
'ru': { # CELL2_a links to RU2_a by its reference 'ru': { # CELL2_a links to RU2_a by its reference
'ru_type': 'ru_ref', 'ru_type': 'ru_ref',
'ru_ref': 'RU2_a' 'ru_ref': 'RU2_a'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment