From d82b1a19778d00b0efd5eddd4f96cf4cf5170dd3 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Thu, 20 Dec 2018 12:57:43 +0100 Subject: Nest: Fix 'show interfaces summary' command The command showed interfaces that were removed / in shutdown. --- nest/iface.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nest') diff --git a/nest/iface.c b/nest/iface.c index 7acadc7d..1ef16185 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -827,6 +827,9 @@ if_show_summary(void) cli_msg(-2005, "interface state address"); WALK_LIST(i, iface_list) { + if (i->flags & IF_SHUTDOWN) + continue; + if (i->addr) bsprintf(addr, "%I/%d", i->addr->ip, i->addr->pxlen); else -- cgit v1.2.3