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

nest/iface.c

index 7acadc7d8100c4af4ba7c1cf5048adfdfe0c11c4..1ef161858f8aaa7800b5689f07f5ba18f811a142 100644 (file)
@@ -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