summaryrefslogtreecommitdiff
path: root/lib/vrf.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-05-15 19:11:20 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-05-15 19:11:20 -0400
commit759927a1b9e1a0a820e05dbb6ce12fb16c8f9b34 (patch)
treece43d2a13b4e7bfc44e369ada6db252581ffe2a4 /lib/vrf.c
parent7922fc65ae0bf5ec211064d8610d4122ddbb4e20 (diff)
*: Remove some unneeded functions
vrf_iflist_create -> By the time this is called in enable, the vrf's iflist is already created. Additionally this code should be a properly of the vrf to init/destroy not someone else. vrf_iflist_terminate -> This function should be a property of vrf deletion and does not need to be exposed. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/vrf.c')
-rw-r--r--lib/vrf.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/vrf.c b/lib/vrf.c
index 4fde134e44..41b6a05b3a 100644
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -310,24 +310,6 @@ vrf_iflist_get (vrf_id_t vrf_id)
return vrf->iflist;
}
-/* Create the interface list for the specified VRF, if needed. */
-void
-vrf_iflist_create (vrf_id_t vrf_id)
-{
- struct vrf * vrf = vrf_lookup_by_id (vrf_id);
- if (vrf && !vrf->iflist)
- if_init (&vrf->iflist);
-}
-
-/* Free the interface list of the specified VRF. */
-void
-vrf_iflist_terminate (vrf_id_t vrf_id)
-{
- struct vrf * vrf = vrf_lookup_by_id (vrf_id);
- if (vrf && vrf->iflist)
- if_terminate (&vrf->iflist);
-}
-
/*
* VRF bit-map
*/