nitb/ctrl: Implement a command to list all active subscribers

This is only useful for small networks. List the IMSI and MSISDN
of all active subscribers.

Fixes: SYS#266
This commit is contained in:
Holger Hans Peter Freyther
2014-03-23 16:22:55 +01:00
parent 2d99eeb7f2
commit d883db027b
4 changed files with 70 additions and 0 deletions

View File

@@ -341,6 +341,13 @@ class TestCtrlNITB(TestCtrlBase):
self.assertEquals(r['mtype'], 'ERROR')
self.assertEquals(r['error'], 'Failed to find subscriber')
def testSubscriberList(self):
# TODO. Add command to mark a subscriber as active
r = self.do_get('subscriber-list-active-v1')
self.assertEquals(r['mtype'], 'GET_REPLY')
self.assertEquals(r['var'], 'subscriber-list-active-v1')
self.assertEquals(r['value'], None)
class TestCtrlNAT(TestCtrlBase):
def ctrl_command(self):