From addb1bcd86885dcee559a61eb18998ae6a38b2ab Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Thu, 11 Oct 2018 14:39:13 +0200 Subject: [PATCH] Nest: Fix 'show interfaces summary' command The command showed interfaces that were removed / in shutdown. --- nest/iface.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nest/iface.c b/nest/iface.c index a633f748..9462b634 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -887,6 +887,9 @@ if_show_summary(void) byte a4[IPA_MAX_TEXT_LENGTH + 17]; byte a6[IPA_MAX_TEXT_LENGTH + 17]; + if (i->flags & IF_SHUTDOWN) + continue; + if (i->addr4) bsprintf(a4, "%I/%d", i->addr4->ip, i->addr4->prefix.pxlen); else