mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 01:57:26 +00:00
Merge pull request #12838 from opensourcerouting/feature/backport_timer_on_shutdown
bgpd: Fix bgp no shutdown
This commit is contained in:
commit
3bbf66cf77
@ -4636,6 +4636,9 @@ void bgp_shutdown_enable(struct bgp *bgp, const char *msg)
|
|||||||
/* Disable global administrative shutdown of all peers of BGP instance */
|
/* Disable global administrative shutdown of all peers of BGP instance */
|
||||||
void bgp_shutdown_disable(struct bgp *bgp)
|
void bgp_shutdown_disable(struct bgp *bgp)
|
||||||
{
|
{
|
||||||
|
const struct listnode *node;
|
||||||
|
struct peer *peer;
|
||||||
|
|
||||||
/* do nothing if not shut down. */
|
/* do nothing if not shut down. */
|
||||||
if (!CHECK_FLAG(bgp->flags, BGP_FLAG_SHUTDOWN))
|
if (!CHECK_FLAG(bgp->flags, BGP_FLAG_SHUTDOWN))
|
||||||
return;
|
return;
|
||||||
@ -4646,6 +4649,9 @@ void bgp_shutdown_disable(struct bgp *bgp)
|
|||||||
|
|
||||||
/* clear the BGP instances shutdown flag */
|
/* clear the BGP instances shutdown flag */
|
||||||
UNSET_FLAG(bgp->flags, BGP_FLAG_SHUTDOWN);
|
UNSET_FLAG(bgp->flags, BGP_FLAG_SHUTDOWN);
|
||||||
|
|
||||||
|
for (ALL_LIST_ELEMENTS_RO(bgp->peer, node, peer))
|
||||||
|
bgp_timer_set(peer);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Change specified peer flag. */
|
/* Change specified peer flag. */
|
||||||
|
Loading…
Reference in New Issue
Block a user