mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 23:42:27 +00:00
quagga-reload.py thinks the BGP ASN changed when it did not
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-11463
(cherry picked from commit ab5f831080
)
This commit is contained in:
parent
c9deb8fd45
commit
bb132d19d7
@ -567,7 +567,11 @@ def compare_context_objects(newconf, running):
|
|||||||
if running_ctx_keys not in newconf.contexts:
|
if running_ctx_keys not in newconf.contexts:
|
||||||
|
|
||||||
# Check if bgp's local ASN has changed. If yes, just restart it
|
# Check if bgp's local ASN has changed. If yes, just restart it
|
||||||
if "router bgp" in running_ctx_keys[0]:
|
# We check that the len is 1 here so that we only look at ('router bgp 10')
|
||||||
|
# and not ('router bgp 10', 'address-family ipv4 unicast'). The
|
||||||
|
# latter could cause a false restart_bgpd positive if ipv4 unicast is in
|
||||||
|
# running but not in newconf.
|
||||||
|
if "router bgp" in running_ctx_keys[0] and len(running_ctx_keys) == 1:
|
||||||
restart_bgpd = True
|
restart_bgpd = True
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user