]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: When removing v6 address being used as a nexthop ensure peer is reset
authorDonald Sharp <sharpd@nvidia.com>
Wed, 29 Sep 2021 15:42:19 +0000 (11:42 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 4 Oct 2021 12:03:38 +0000 (08:03 -0400)
commitf3d20a2aa5746ad4b00a53b04df4fd863d8c49b4
treeedbd59e4f31b43fd4e5dd5b659080da4eb6abcc8
parente1a32ec1c5a4468a8ab7f7d92febfdbebe475d79
bgpd: When removing v6 address being used as a nexthop ensure peer is reset

With v6 interface based peering, we send the global as well as the LL address
as nexthops to the peer.  When either of these were removed on the interface
we were not necessarily resetting the connection.  Leaving bgp in a state
where the peer had reachability for addresses that are no longer in use.

Modify the code that when we receive an interface address deletion
event.  Check to see that we are using the v6 address as nexthops
for that peer and if so, tell it to reset.

I initially struggled with a hard reset of the peer or a clear but
choose to follow other places in the code that we noticed address
changes that resulted in hard resets.

Ticket: #2799568
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_zebra.c