[PATCH] Add subscriber delete command

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Hans Peter Freyther holger at freyther.de
Mon Sep 1 18:45:02 UTC 2014


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!




More information about the OpenBSC mailing list