]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Do a bit better job of tracking the bgp->peerhash
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 8 Oct 2018 00:34:31 +0000 (20:34 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 8 Oct 2018 00:55:52 +0000 (20:55 -0400)
commit19bd3dffc19eb0a4fb13ec6da987c6bd00a1f727
tree20e1fe85427dba8e091cf771f442285b423cba99
parentcc4d4ce8229d6107599eb42d4f646eddbea5ddc7
bgpd: Do a bit better job of tracking the bgp->peerhash

When we add/remove peers we need to do a bit better job
of tracking them in the bgp->peerhash.

1) When we have the doppelganger take over, make sure the
winner is the one represented in the peerhash.

2) When creating the doppelganger, leave the current one
in place instead of blindly replacing it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_fsm.c
bgpd/bgpd.c