mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 03:42:57 +00:00
zebra: Update flag output for route entry dump
Update the nexthop flag output for the route entry dump to include all possible flag states be output. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
6883bf8d35
commit
df38b099ee
@ -2571,8 +2571,8 @@ void _route_entry_dump(const char *func, union prefixconstptr pp,
|
||||
INET6_ADDRSTRLEN);
|
||||
break;
|
||||
}
|
||||
zlog_debug("%s: %s %s[%u] vrf %s(%u) with flags %s%s%s", func,
|
||||
(nexthop->rparent ? " NH" : "NH"), straddr,
|
||||
zlog_debug("%s: %s %s[%u] vrf %s(%u) with flags %s%s%s%s%s%s",
|
||||
func, (nexthop->rparent ? " NH" : "NH"), straddr,
|
||||
nexthop->ifindex, vrf ? vrf->name : "Unknown",
|
||||
nexthop->vrf_id,
|
||||
(CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_ACTIVE)
|
||||
@ -2582,7 +2582,16 @@ void _route_entry_dump(const char *func, union prefixconstptr pp,
|
||||
? "FIB "
|
||||
: ""),
|
||||
(CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_RECURSIVE)
|
||||
? "RECURSIVE"
|
||||
? "RECURSIVE "
|
||||
: ""),
|
||||
(CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_ONLINK)
|
||||
? "ONLINK "
|
||||
: ""),
|
||||
(CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_MATCHED)
|
||||
? "MATCHED "
|
||||
: ""),
|
||||
(CHECK_FLAG(nexthop->flags, NEXTHOP_FLAG_DUPLICATE)
|
||||
? "DUPLICATE "
|
||||
: ""));
|
||||
}
|
||||
zlog_debug("%s: dump complete", func);
|
||||
|
Loading…
Reference in New Issue
Block a user