summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorStephen Worley <sworley@nvidia.com>2022-08-03 16:11:08 +0200
committerGitHub <noreply@github.com>2022-08-03 16:11:08 +0200
commit098a55c5f816b7cb64b8f4d38c46996698e75dd2 (patch)
tree5db01ae7848538b9bfe386d3053411d98c7f931f /zebra
parentMerge pull request #11722 from donaldsharp/qdb (diff)
parentzebra: fix bond down for evpn-mh (diff)
downloadfrr-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.c13
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)) {