mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-03 06:28:33 +00:00
bgpd: use CHECK_FLAG for es_flags in route detail
Use CHECK_FLAG for es_flags in vtysh output for route detail. Signed-off-by: Stephen Worley <sworley@nvidia.com>
This commit is contained in:
parent
da823882a5
commit
6012963ecd
@ -10109,10 +10109,11 @@ void route_vty_out_detail(struct vty *vty, struct bgp *bgp, struct bgp_dest *bn,
|
||||
(struct prefix_evpn *)
|
||||
bgp_dest_get_prefix(dest),
|
||||
tag_buf);
|
||||
if (attr->es_flags & ATTR_ES_L3_NHG)
|
||||
if (CHECK_FLAG(attr->es_flags, ATTR_ES_L3_NHG))
|
||||
vty_out(vty, ", L3NHG %s",
|
||||
(attr->es_flags &
|
||||
ATTR_ES_L3_NHG_ACTIVE)
|
||||
CHECK_FLAG(
|
||||
attr->es_flags,
|
||||
ATTR_ES_L3_NHG_ACTIVE)
|
||||
? "active"
|
||||
: "inactive");
|
||||
vty_out(vty, "\n");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user