From e0701b7955b883c5437269a382e1afc76ee71e5c Mon Sep 17 00:00:00 2001 From: hasso Date: Thu, 20 May 2004 09:19:34 +0000 Subject: Merge bgpd changeset 1176 from Zebra repository by Rivo Nurges. --- bgpd/bgp_fsm.c | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'bgpd/bgp_fsm.c') diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index 5c8224c6..d28cd934 100644 --- a/bgpd/bgp_fsm.c +++ b/bgpd/bgp_fsm.c @@ -307,6 +307,33 @@ bgp_uptime_reset (struct peer *peer) peer->uptime = time (NULL); } +/* BGP Peer Down Cause */ +char *peer_down_str[] = +{ + "", + "Router ID changed", + "Remote AS changed", + "Local AS change", + "Cluster ID changed", + "Confederation identifier changed", + "Confederation peer changed", + "RR client config change", + "RS client config change", + "Update source change", + "Address family activated", + "Admin. shutdown", + "User reset", + "BGP Notification received", + "BGP Notification send", + "Peer closed the session", + "Neighbor deleted", + "Peer-group add member", + "Peer-group delete member", + "Capability changed", + "Passive config change", + "Multihop config change" +}; + /* Administrative BGP peer stop event. */ int bgp_stop (struct peer *peer) @@ -325,7 +352,8 @@ bgp_stop (struct peer *peer) /* bgp log-neighbor-changes of neighbor Down */ if (bgp_flag_check (peer->bgp, BGP_FLAG_LOG_NEIGHBOR_CHANGES)) - zlog_info ("%%ADJCHANGE: neighbor %s Down", peer->host); + zlog_info ("%%ADJCHANGE: neighbor %s Down %s", peer->host, + peer_down_str [(int) peer->last_reset]); /* set last reset time */ peer->resettime = time (NULL); -- cgit v1.2.1