bsc: Allow to apply configuration for an individual BTS

This will drop a specific IP based BTS. It will lead to a
re-connect of the BTS and the new settings will be applied
then.

Fixes: SYS#737
This commit is contained in:
Holger Hans Peter Freyther
2014-11-21 10:20:29 +01:00
parent b1edf7b64f
commit b1461152e6
2 changed files with 39 additions and 2 deletions

View File

@@ -411,6 +411,15 @@ class TestCtrlNITB(TestCtrlBase):
self.assertEquals(r['var'], 'subscriber-list-active-v1')
self.assertEquals(r['value'], None)
def testApplyConfiguration(self):
r = self.do_get('bts.0.apply-configuration')
self.assertEquals(r['mtype'], 'ERROR')
self.assertEquals(r['error'], 'Write only attribute')
r = self.do_set('bts.0.apply-configuration', '1')
self.assertEquals(r['mtype'], 'SET_REPLY')
self.assertEquals(r['value'], 'Tried to drop the BTS')
class TestCtrlNAT(TestCtrlBase):
def ctrl_command(self):