On Sun, Aug 31, 2014 at 05:13:15PM -0500, Ruben Pollan wrote:
+ if (subscr->use_count != 1) {
+ vty_out(vty, "Removing active subscriber%s", VTY_NEWLINE);
+ }
You could write abort() as well. You should return CMD_ERROR or
such as you can't remove an active subscriber.
+ # Delte it
Delete
+ # Now it should not be there anymore
+ res = self.vty.command('show subscriber imsi '+imsi)
+ self.assert_(res != '% No subscriber found for imsi '+imsi)
good!