From 92a57eb206d51a6e9a28c9ffa1066557a18da9b2 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sat, 11 Mar 2017 07:30:52 -0500 Subject: *: Refactor if_get_by_name to be VRF aware Signed-off-by: Donald Sharp --- lib/if.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lib/if.c') diff --git a/lib/if.c b/lib/if.c index 4f2eb3a1c5..3deec8025b 100644 --- a/lib/if.c +++ b/lib/if.c @@ -427,7 +427,7 @@ if_lookup_prefix (struct prefix *prefix, vrf_id_t vrf_id) /* Get interface by name if given name interface doesn't exist create one. */ struct interface * -if_get_by_name_vrf (const char *name, vrf_id_t vrf_id) +if_get_by_name (const char *name, vrf_id_t vrf_id) { struct interface *ifp; @@ -435,12 +435,6 @@ if_get_by_name_vrf (const char *name, vrf_id_t vrf_id) if_create (name, strlen(name), vrf_id); } -struct interface * -if_get_by_name (const char *name) -{ - return if_get_by_name_vrf (name, VRF_DEFAULT); -} - struct interface * if_get_by_name_len_vrf (const char *name, size_t namelen, vrf_id_t vrf_id, int vty) { -- cgit v1.2.3