diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-12-20 12:57:43 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2018-12-20 12:57:43 +0100 |
commit | d82b1a19778d00b0efd5eddd4f96cf4cf5170dd3 (patch) | |
tree | 70b1f73927ce7448875a9bf3d6f2614c86fa7ed5 /nest | |
parent | 257c7ce95d6991c123879148a857afbe4dc4e6dc (diff) |
Nest: Fix 'show interfaces summary' command
The command showed interfaces that were removed / in shutdown.
Diffstat (limited to 'nest')
-rw-r--r-- | nest/iface.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |