[PATCH] gbproxy/vty: Enhance delete-gbproxy-peer 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
Thu Oct 24 14:23:48 UTC 2013


On Thu, Oct 24, 2013 at 12:48:23PM +0200, Jacob Erlbeck wrote:

> +		llist_for_each_entry_safe(nsvc, nsvc2, &nsi->gprs_nsvcs, list) {
> +			if (nsvc->nsei != nsei)
> +				continue;
> +			if (nsvc->persistent)
> +				continue;
> +
> +			if (!dry_run)
> +				gprs_nsvc_delete(nsvc);
> +			else
> +				vty_out(vty, "NS-VC: NSEI %5u, NS-VCI %5u, "
> +					"remote %s%s",
> +					nsvc->nsei, nsvc->nsvci,
> +					gprs_ns_ll_str(nsvc), VTY_NEWLINE);
> +			counter += 1;
> +		}
> +		vty_out(vty, "%sDeleted %d NS-VC%s",
> +			dry_run ? "Not " : "", counter, VTY_NEWLINE);


ahhh, now I understand! Good solution! Going to review it again.




More information about the OpenBSC mailing list