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.h | |
| 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.h')
| -rw-r--r-- | lib/vrf.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -108,6 +108,8 @@ extern struct vrf_name_head vrfs_by_name; */ extern void vrf_add_hook (int, int (*)(struct vrf *)); +int (*vrf_callback)(struct vrf *); + extern struct vrf *vrf_lookup_by_id (vrf_id_t); extern struct vrf *vrf_lookup_by_name (const char *); extern struct vrf *vrf_get (vrf_id_t, const char *); @@ -146,10 +148,6 @@ extern void *vrf_info_lookup (vrf_id_t); extern struct list *vrf_iflist (vrf_id_t); /* Get the interface list of the specified VRF. Create one if not find. */ extern struct list *vrf_iflist_get (vrf_id_t); -/* Create the interface list for the specified VRF, if needed. */ -extern void vrf_iflist_create (vrf_id_t vrf_id); -/* Free the interface list of the specified VRF. */ -extern void vrf_iflist_terminate (vrf_id_t vrf_id); /* * VRF bit-map: maintaining flags, one bit per VRF ID |
