summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_vty.c')
-rw-r--r--bgpd/bgp_vty.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index b94f4abd..05353bc8 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -6768,7 +6768,7 @@ bgp_show_summary (struct vty *vty, struct bgp *bgp, int afi, int safi)
vty_out (vty, "%8s",
peer_uptime (peer->uptime, timebuf, BGP_UPTIME_LEN));
- if (peer->status == Established)
+ if (peer->state == bgp_peer_sEstablished)
{
vty_out (vty, " %8ld", peer->pcount[afi][safi]);
}
@@ -6779,7 +6779,7 @@ bgp_show_summary (struct vty *vty, struct bgp *bgp, int afi, int safi)
else if (CHECK_FLAG (peer->sflags, PEER_STATUS_PREFIX_OVERFLOW))
vty_out (vty, " Idle (PfxCt)");
else
- vty_out (vty, " %-11s", LOOKUP(bgp_status_msg, peer->status));
+ vty_out (vty, " %-11s", LOOKUP(bgp_peer_status_msg, peer->state));
}
vty_out (vty, "%s", VTY_NEWLINE);
@@ -7301,8 +7301,8 @@ bgp_show_peer (struct vty *vty, struct peer *p)
/* Status. */
vty_out (vty, " BGP state = %s",
- LOOKUP (bgp_status_msg, p->status));
- if (p->status == Established)
+ LOOKUP (bgp_peer_status_msg, p->state));
+ if (p->state == bgp_peer_sEstablished)
vty_out (vty, ", up for %8s",
peer_uptime (p->uptime, timebuf, BGP_UPTIME_LEN));
/* TODO: what is state "Active" now? sEnabled? */
@@ -7331,7 +7331,7 @@ bgp_show_peer (struct vty *vty, struct peer *p)
}
/* Capability. */
- if (p->status == Established)
+ if (p->state == bgp_peer_sEstablished)
{
if (p->cap
|| p->afc_adv[AFI_IP][SAFI_UNICAST]
@@ -7453,7 +7453,7 @@ bgp_show_peer (struct vty *vty, struct peer *p)
int eor_receive_af_count = 0;
vty_out (vty, " Graceful restart informations:%s", VTY_NEWLINE);
- if (p->status == Established)
+ if (p->state == bgp_peer_sEstablished)
{
vty_out (vty, " End-of-RIB send: ");
for (afi = AFI_IP ; afi < AFI_MAX ; afi++)
@@ -8025,7 +8025,7 @@ bgp_write_rsclient_summary (struct vty *vty, struct peer *rsclient,
else if (CHECK_FLAG (rsclient->sflags, PEER_STATUS_PREFIX_OVERFLOW))
vty_out (vty, " Idle (PfxCt)");
else
- vty_out (vty, " %-11s", LOOKUP(bgp_status_msg, rsclient->status));
+ vty_out (vty, " %-11s", LOOKUP(bgp_peer_status_msg, rsclient->state));
vty_out (vty, "%s", VTY_NEWLINE);