mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 16:48:43 +00:00
Nest: Fix 'show interfaces summary' command
The command showed interfaces that were removed / in shutdown.
This commit is contained in:
parent
961671c0f5
commit
addb1bcd86
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user