Commit c8bc71ee authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 929a8ab1
......@@ -43,7 +43,7 @@ print(kslap.ref_of_instance(ienb), ienb)
# eref returns full reference for a enb subreference ref.
def eref(ref):
enb_ref = kslap.ref_of_instance(ienb)
return '%s/%s' % (enb_ref, ref)
return '%s.%s' % (enb_ref, ref)
# XXX shorthand
def iENB(ref, kw):
......@@ -68,7 +68,7 @@ RU1 = {
'txrx_active': 'INACTIVE',
}
iru1 = iENB('RU1', RU1) # XXX -> eref('RU1')
iru1 = iENB(eref('RU1'), RU1)
print(kslap.ref_of_instance(iru1), iru1)
CELL1 = {
......@@ -80,11 +80,11 @@ CELL1 = {
'cell_id': '0x01',
'ru': {
'ru_type': 'ru_ref',
'ru_ref': 'RU1' # XXX eref
'ru_ref': eref('RU1')
}
}
icell1 = iENB('CELL1', CELL1) # XXX -> eref
icell1 = iENB(eref('CELL1'), CELL1)
print(kslap.ref_of_instance(icell1), icell1)
......
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