vty: Properly extract the extension, before the LAC was extracted
This commit is contained in:
parent
e73e749b56
commit
27bfbde0b5
|
@ -58,4 +58,4 @@ class NITBSocket(object):
|
||||||
if not self.imsi_present(imsi):
|
if not self.imsi_present(imsi):
|
||||||
return None
|
return None
|
||||||
res = self._vty().connectSendAndWait('show subscriber imsi %s' % imsi)
|
res = self._vty().connectSendAndWait('show subscriber imsi %s' % imsi)
|
||||||
return res.split('\r\n')[3].split(': ')[1]
|
return res.split('\r\n')[2].split(': ')[1]
|
||||||
|
|
Reference in New Issue