mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-02 15:34:30 +00:00
Merge pull request #17888 from krishna-samy/bgpd_mac_hash
bgpd: Fix for local interface MAC cache issue in 'bgp mac hash' table
This commit is contained in:
commit
97b7875963
@ -3375,12 +3375,15 @@ static int bgp_ifp_create(struct interface *ifp)
|
||||
zlog_debug("Rx Intf add VRF %s IF %s", ifp->vrf->name,
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user