0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 01:31:55 +00:00

Nest: Fix 'show interfaces summary' command

The command showed interfaces that were removed / in shutdown.
This commit is contained in:
Ondrej Zajicek (work) 2018-10-11 14:39:13 +02:00
parent 961671c0f5
commit addb1bcd86

View 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