]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: notify zebra if advertise-gw-macip is enabled when VNI comes up
authorMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Fri, 28 Jul 2017 00:11:48 +0000 (17:11 -0700)
committerMitesh Kanjariya <mitesh@marvel-07.cumulusnetworks.com>
Thu, 17 Aug 2017 00:29:51 +0000 (17:29 -0700)
Ticket: CM-17281
Review: CCR-6517
Testing: Manual

Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
bgpd/bgp_evpn.c

index 0560dc46f961db6864c77465abc979c815e462a6..109c98f81cbf31162ecb17e72f3095fec0f13fa6 100644 (file)
@@ -45,6 +45,7 @@
 #include "bgpd/bgp_encap_types.h"
 #include "bgpd/bgp_debug.h"
 #include "bgpd/bgp_aspath.h"
+#include "bgpd/bgp_zebra.h"
 
 /*
  * Definitions and external declarations.
@@ -2725,6 +2726,10 @@ int bgp_evpn_local_vni_add(struct bgp *bgp, vni_t vni,
         */
        install_routes_for_vni(bgp, vpn);
 
+       /* If we are advertising gateway mac-ip
+          It needs to be conveyed again to zebra */
+       bgp_zebra_advertise_gw_macip(bgp, vpn->advertise_gw_macip, vpn->vni);
+
        return 0;
 }