diff options
author | Stephen Worley <sworley@nvidia.com> | 2022-08-03 16:11:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-03 16:11:08 +0200 |
commit | 098a55c5f816b7cb64b8f4d38c46996698e75dd2 (patch) | |
tree | 5db01ae7848538b9bfe386d3053411d98c7f931f /zebra | |
parent | Merge pull request #11722 from donaldsharp/qdb (diff) | |
parent | zebra: fix bond down for evpn-mh (diff) | |
download | frr-098a55c5f816b7cb64b8f4d38c46996698e75dd2.tar.xz frr-098a55c5f816b7cb64b8f4d38c46996698e75dd2.zip |
Merge pull request #11713 from anlancs/fix/evpn-mh-bond-redirect
zebra: fix bond down for evpn-mh
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/zebra_vxlan.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index dbe1ce3e4..49689c6ac 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -4038,6 +4038,19 @@ int zebra_vxlan_dp_network_mac_add(struct interface *ifp, struct zebra_evpn_es *es; struct interface *acc_ifp; + /* If netlink message is with vid, it will have no nexthop. + * So skip it. + */ + if (vid) { + if (IS_ZEBRA_DEBUG_VXLAN || IS_ZEBRA_DEBUG_EVPN_MH_MAC) + zlog_debug("dpAdd MAC %pEA VID %u - ignore as no nhid", + macaddr, vid); + return 0; + } + + /* Get vxlan's vid for netlink message has no it. */ + vid = ((struct zebra_if *)ifp->info)->l2info.vxl.access_vlan; + /* if remote mac delete the local entry */ if (!nhg_id || !zebra_evpn_nhg_is_local_es(nhg_id, &es) || !zebra_evpn_es_local_mac_via_network_port(es)) { |