summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-05-08 07:58:32 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-07-29 12:37:24 -0400
commit7e24fdf333e8ffe78403788d824eae110c6e65bf (patch)
tree08564ff89be16bb9928acb85ffdd05d7e31a196f /zebra/interface.c
parentf23cbcda591480973f0be795d487c9268cb667ec (diff)
staticd: Start the addition of a staticd
This is the start of separating out the static handling code from zebra -> staticd. This will help simplify the zebra code and isolate static route handling to it's own code base. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index 1067f9bdc1..7fe7058de9 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -577,7 +577,6 @@ void if_add_update(struct interface *ifp)
"interface %s vrf %u index %d becomes active.",
ifp->name, ifp->vrf_id, ifp->ifindex);
- static_ifindex_update(ifp, true);
} else {
if (IS_ZEBRA_DEBUG_KERNEL)
zlog_debug("interface %s vrf %u index %d is added.",
@@ -736,8 +735,6 @@ void if_delete_update(struct interface *ifp)
zlog_debug("interface %s vrf %u index %d is now inactive.",
ifp->name, ifp->vrf_id, ifp->ifindex);
- static_ifindex_update(ifp, false);
-
/* Delete connected routes from the kernel. */
if_delete_connected(ifp);
@@ -777,8 +774,6 @@ void if_handle_vrf_change(struct interface *ifp, vrf_id_t vrf_id)
old_vrf_id = ifp->vrf_id;
- static_ifindex_update(ifp, false);
-
/* Uninstall connected routes. */
if_uninstall_connected(ifp);
@@ -803,8 +798,6 @@ void if_handle_vrf_change(struct interface *ifp, vrf_id_t vrf_id)
if (if_is_operative(ifp))
if_install_connected(ifp);
- static_ifindex_update(ifp, true);
-
/* Due to connected route change, schedule RIB processing for both old
* and new VRF.
*/
@@ -934,12 +927,6 @@ void if_up(struct interface *ifp)
/* Install connected routes to the kernel. */
if_install_connected(ifp);
- /* Install any static routes using this vrf interface */
- if (IS_ZEBRA_IF_VRF(ifp)) {
- static_fixup_vrf_ids(zvrf);
- static_config_install_delayed_routes(zvrf);
- }
-
if (IS_ZEBRA_DEBUG_RIB_DETAILED)
zlog_debug("%u: IF %s up, scheduling RIB processing",
ifp->vrf_id, ifp->name);