From: Ondrej Zajicek (work) Date: Thu, 20 Dec 2018 11:57:43 +0000 (+0100) Subject: Nest: Fix 'show interfaces summary' command X-Git-Tag: v1.6.5~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d82b1a19778d00b0efd5eddd4f96cf4cf5170dd3;p=thirdparty%2Fbird.git Nest: Fix 'show interfaces summary' command The command showed interfaces that were removed / in shutdown. --- diff --git a/nest/iface.c b/nest/iface.c index 7acadc7d8..1ef161858 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