]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Nest: Fix 'show interfaces summary' command
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 11 Oct 2018 12:39:13 +0000 (14:39 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 11 Oct 2018 12:39:13 +0000 (14:39 +0200)
The command showed interfaces that were removed / in shutdown.

nest/iface.c

index a633f748aa03b62c70019ad4ee038154c905dc51..9462b6341d35c366f2f68f309d283634de703487 100644 (file)
@@ -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