mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 00:31:32 +00:00
Merge pull request #17893 from FRRouting/mergify/bp/stable/10.0/pr-17888
bgpd: Fix for local interface MAC cache issue in 'bgp mac hash' table (backport #17888)
This commit is contained in:
commit
689b455c47
@ -3141,12 +3141,15 @@ static int bgp_ifp_create(struct interface *ifp)
|
||||
zlog_debug("Rx Intf add VRF %u IF %s", ifp->vrf->vrf_id,
|
||||
ifp->name);
|
||||
|
||||
/* We don't need to check for vrf->bgp link to add this local MAC
|
||||
* to the hash table as the tenant VRF might not have the BGP instance.
|
||||
*/
|
||||
bgp_mac_add_mac_entry(ifp);
|
||||
|
||||
bgp = ifp->vrf->info;
|
||||
if (!bgp)
|
||||
return 0;
|
||||
|
||||
bgp_mac_add_mac_entry(ifp);
|
||||
|
||||
bgp_update_interface_nbrs(bgp, ifp, ifp);
|
||||
hook_call(bgp_vrf_status_changed, bgp, ifp);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user