summaryrefslogtreecommitdiffstats
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2019-09-06 22:55:35 +0200
committerChirag Shah <chirag@cumulusnetworks.com>2019-11-22 16:53:33 +0100
commit0056f687d759166e59fbe099c6b5aa8b90826b67 (patch)
tree5a9c54e7a7e768f043f133bd904842edfc2a060d /zebra/interface.c
parentbgpd: evpn pip handle svi ip route (diff)
downloadfrr-0056f687d759166e59fbe099c6b5aa8b90826b67.tar.xz
frr-0056f687d759166e59fbe099c6b5aa8b90826b67.zip
zebra: evpn pip mac vlan up-down event
macvlan interface up/down event triggers bgp to send updates for evpn routes with changed RMAC and nexthop IP values. Ticket:CM-26190 Reviewed By: Testing Done: Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index eea80652e..02c00ebfa 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -1060,7 +1060,9 @@ void if_up(struct interface *ifp)
zif->link_ifindex);
if (link_if)
zebra_vxlan_svi_up(ifp, link_if);
- }
+ } else if (IS_ZEBRA_IF_MACVLAN(ifp))
+ zebra_vxlan_macvlan_up(ifp);
+
}
/* Interface goes down. We have to manage different behavior of based
@@ -1092,7 +1094,8 @@ void if_down(struct interface *ifp)
zif->link_ifindex);
if (link_if)
zebra_vxlan_svi_down(ifp, link_if);
- }
+ } else if (IS_ZEBRA_IF_MACVLAN(ifp))
+ zebra_vxlan_macvlan_down(ifp);
/* Notify to the protocol daemons. */