summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-04-13 10:06:36 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-04-14 20:56:43 -0400
commite2b1be648db7e7906aa5e4e04b23ef88cbeff04a (patch)
tree14faf25a68b8848173c59a8b340d75a4e427537b /zebra/interface.c
parente74f14fc793475ed3dd3ad4b87f8648313b42b1b (diff)
lib, zebra: Rework vrf_add_update
The vrf_add_update function does not need to exist. Move it's constituent parts into the appropriate vrf_create/vrf_enable functionality as well as move the zebra_vrf_add_update() function call into zebra_vrf_enable() Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Don Slice <dslice@cumulusnetworks.com> Reviewed-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index cd5f1d9f0d..df6848f05a 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -714,31 +714,6 @@ if_handle_vrf_change (struct interface *ifp, vrf_id_t vrf_id)
rib_update (ifp->vrf_id, RIB_UPDATE_IF_CHANGE);
}
-
-/* Handle VRF addition */
-void
-vrf_add_update (struct vrf *vrfp)
-{
- zebra_vrf_add_update (vrf_info_lookup (vrfp->vrf_id));
-
- if (! CHECK_FLAG (vrfp->status, VRF_ACTIVE))
- {
- SET_FLAG (vrfp->status, VRF_ACTIVE);
-
- //Pending: Check if the equivalent of if_addr_wakeup (ifp) is needed here.
-
- if (IS_ZEBRA_DEBUG_KERNEL)
- zlog_debug ("VRF %s id %u becomes active.",
- vrfp->name, vrfp->vrf_id);
- }
- else
- {
- if (IS_ZEBRA_DEBUG_KERNEL)
- zlog_debug ("VRF %s id %u is added.",
- vrfp->name, vrfp->vrf_id);
- }
-}
-
static void
ipv6_ll_address_to_mac (struct in6_addr *address, u_char *mac)
{