Commit 51925409b1 for frr
commit 51925409b18661e22e57cf265f8251a287289eb9
Merge: 9665a0db07 1362046ae1
Author: Donatas Abraitis <donatas@opensourcerouting.org>
Date: Fri Nov 27 08:56:28 2026 +0100
Merge pull request #24493 from aprathik04/aprathi-subif-destroy
bgpd: reset bgp connections when their bound interface is deleted
diff --cc bgpd/bgp_network.c
index 65938565d3,f14fe8f534..20e016c24e
--- a/bgpd/bgp_network.c
+++ b/bgpd/bgp_network.c
@@@ -776,10 -787,10 +787,10 @@@ static char *bgp_get_bound_name(struct
* If a v6 neighbors address is covered by an interfaces connected prefix,
* then let's use that interfaces name as the bind point. This will prevent
* 'fun' situations with DAD not fully saying an address is usable and causing
- * some random source address to be choosen.
+ * some random source address to be chosen.
* Skip link-local neighbors: they match every interface.
*/
- if (connection->su.sa.sa_family == AF_INET6 &&
+ if (!name && connection->su.sa.sa_family == AF_INET6 &&
!IN6_IS_ADDR_LINKLOCAL(&connection->su.sin6.sin6_addr)) {
c = if_lookup_address(&connection->su.sin6.sin6_addr, connection->su.sa.sa_family,
peer->bgp->vrf_id);