mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 20:51:17 +00:00
If a BGP path has an unreachable nexthop display that path as invalid
This commit is contained in:
parent
b184ccd889
commit
31eba040c2
@ -6015,7 +6015,8 @@ route_vty_short_status_out (struct vty *vty, struct bgp_info *binfo)
|
||||
vty_out (vty, "S");
|
||||
else if (binfo->extra && binfo->extra->suppress)
|
||||
vty_out (vty, "s");
|
||||
else if (! CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
|
||||
else if (CHECK_FLAG (binfo->flags, BGP_INFO_VALID) &&
|
||||
! CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
|
||||
vty_out (vty, "*");
|
||||
else
|
||||
vty_out (vty, " ");
|
||||
@ -6484,7 +6485,9 @@ route_vty_out_detail (struct vty *vty, struct bgp *bgp, struct prefix *p,
|
||||
if (attr->extra && attr->extra->tag != 0)
|
||||
vty_out (vty, ", tag %d", attr->extra->tag);
|
||||
|
||||
if (! CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
|
||||
if (! CHECK_FLAG (binfo->flags, BGP_INFO_VALID))
|
||||
vty_out (vty, ", invalid");
|
||||
else if (! CHECK_FLAG (binfo->flags, BGP_INFO_HISTORY))
|
||||
vty_out (vty, ", valid");
|
||||
|
||||
if (binfo->peer != bgp->peer_self)
|
||||
|
Loading…
Reference in New Issue
Block a user