mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 12:52:49 +00:00
2004-05-03 Daniel Roesen <dr@cluenet.de>
* bgp_fsm.c: (bgp_stop) Reset uptime only on transition from Established so that it reflects true downtime (rather time since last transition, eg Active->Idle)
This commit is contained in:
parent
8b338fe94c
commit
c53174045b
@ -1,3 +1,9 @@
|
||||
2004-05-03 Daniel Roesen <dr@cluenet.de>
|
||||
|
||||
* bgp_fsm.c: (bgp_stop) Reset uptime only on transition from
|
||||
Established so that it reflects true downtime (rather time
|
||||
since last transition, eg Active->Idle)
|
||||
|
||||
2004-05-01 rivo nurges <rix@estpak.ee>
|
||||
|
||||
* bgp_route.c: fix UNH IOL BGP-4.1.12f
|
||||
|
@ -329,15 +329,14 @@ bgp_stop (struct peer *peer)
|
||||
|
||||
/* set last reset time */
|
||||
peer->resettime = time (NULL);
|
||||
/* Reset uptime. */
|
||||
bgp_uptime_reset (peer);
|
||||
|
||||
#ifdef HAVE_SNMP
|
||||
bgpTrapBackwardTransition (peer);
|
||||
#endif /* HAVE_SNMP */
|
||||
}
|
||||
|
||||
/* Reset uptime. */
|
||||
bgp_uptime_reset (peer);
|
||||
|
||||
/* Need of clear of peer. */
|
||||
if (established)
|
||||
bgp_clear_route_all (peer);
|
||||
|
Loading…
Reference in New Issue
Block a user