Commit d82b1a19 authored by Ondřej Zajíček's avatar Ondřej Zajíček

Nest: Fix 'show interfaces summary' command

The command showed interfaces that were removed / in shutdown.
parent 257c7ce9
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment