Merge pull request #18115 from FRRouting/mergify/bp/dev/10.3/pr-18069

bgpd: Request SRv6 locator after zebra connection (backport #18069)
This commit is contained in:
Donald Sharp 2025-02-12 08:15:05 -05:00 committed by GitHub
commit 60dbf7eeba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2349,6 +2349,13 @@ void bgp_zebra_instance_register(struct bgp *bgp)
bgp_zebra_advertise_all_vni(bgp, 1);
bgp_nht_register_nexthops(bgp);
/*
* Request SRv6 locator information from Zebra, if SRv6 is enabled
* and a locator is configured for this BGP instance.
*/
if (bgp->srv6_enabled && bgp->srv6_locator_name[0] != '\0' && !bgp->srv6_locator)
bgp_zebra_srv6_manager_get_locator(bgp->srv6_locator_name);
}
/* Deregister this instance with Zebra. Invoked upon the instance