Commit f5270783 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 88edb73f
...@@ -16,6 +16,8 @@ CB5 = "COMP-4020" ...@@ -16,6 +16,8 @@ CB5 = "COMP-4020"
supply(kamari, computer_guid=CB5) supply(kamari, computer_guid=CB5)
# Core Network + SIM
icore = kslap.request(kamari, icore = kslap.request(kamari,
software_type="core-network", software_type="core-network",
partition_reference="CB5-CORE", partition_reference="CB5-CORE",
...@@ -27,15 +29,15 @@ icore = kslap.request(kamari, ...@@ -27,15 +29,15 @@ icore = kslap.request(kamari,
isim1 = kslap.iSIM(icore, 1) isim1 = kslap.iSIM(icore, 1)
# eNB
ienb = kslap.request(kamari, ienb = kslap.request(kamari,
software_type="enb", software_type="enb",
partition_reference="CB5-ENB", partition_reference="CB5-ENB",
filter_kw={"computer_guid": CB5}, filter_kw={"computer_guid": CB5},
partition_parameter_kw={"_": json.dumps({ partition_parameter_kw={"_": json.dumps({
mme_list: {'1': {'mme_addr': icore['core-network-ipv6']}}, 'mme_list': {'1': {'mme_addr': kslap.conn(icore)['core-network-ipv6']}},
})}) })})
# eref returns full reference for ienb's shared instance with given ref. # eref returns full reference for ienb's shared instance with given ref.
def eref(ref): def eref(ref):
enb_ref = kslap.ref_of_instance(ienb) enb_ref = kslap.ref_of_instance(ienb)
...@@ -72,6 +74,7 @@ RU2['cpri_link']['sfp_port'] = 2 ...@@ -72,6 +74,7 @@ RU2['cpri_link']['sfp_port'] = 2
iru1 = iENB(eref('RU1'), RU1) iru1 = iENB(eref('RU1'), RU1)
iru2 = iENB(eref('RU2'), RU2) iru2 = iENB(eref('RU2'), RU2)
# Cells # Cells
CELL1 = { CELL1 = {
'cell_type': 'lte', 'cell_type': 'lte',
......
...@@ -71,6 +71,12 @@ def instance_by_ref(ref): ...@@ -71,6 +71,12 @@ def instance_by_ref(ref):
return inst return inst
""" """
# conn returns connection parameters of an instance.
def conn(inst):
return json.loads(inst.getConnectionParameterDict()['_'])
# iSIM adds to core a shared SIM instance with specified number. # iSIM adds to core a shared SIM instance with specified number.
def iSIM(core, sim_n): def iSIM(core, sim_n):
core_ref = ref_of_instance(core) core_ref = ref_of_instance(core)
......
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