diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-15 19:11:20 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-05-15 19:11:20 -0400 |
| commit | 759927a1b9e1a0a820e05dbb6ce12fb16c8f9b34 (patch) | |
| tree | ce43d2a13b4e7bfc44e369ada6db252581ffe2a4 /lib/vrf.c | |
| parent | 7922fc65ae0bf5ec211064d8610d4122ddbb4e20 (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.c | 18 |
1 files changed, 0 insertions, 18 deletions
@@ -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 */ |
