summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-05-03 20:04:43 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-05-06 10:41:28 -0400
commitfb148af4a143a521c8274d54a6d65e698e179aa3 (patch)
tree8e98a3f04580686ac31964c2593f09fb78aacd6a /zebra/interface.c
parent0b6d694ba04ab007fe02bc056bfc8e8f76a69e3f (diff)
zebra: Add code to add/remove statics from the rib
On enable/disable of static routes add and remove them from the rib as appropriate. Ticket: CM-10139 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index 91eb5c49ce..ff7cf21512 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -706,6 +706,8 @@ if_handle_vrf_change (struct interface *ifp, vrf_id_t vrf_id)
ifp->vrf_id, ifp->name);
rib_update (old_vrf_id, RIB_UPDATE_IF_CHANGE);
rib_update (ifp->vrf_id, RIB_UPDATE_IF_CHANGE);
+
+ zebra_vrf_static_route_interface_fixup (ifp);
}
static void