summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-11 07:52:59 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-03-15 10:43:31 -0400
commit128c2be2a1b1592e4641b79d897c8ceebc0e8bf5 (patch)
tree847fe9db6e474b32f9531977d829602f9d016419 /lib/if.c
parentbaaea325e6a425321296cff40cc7a3b47b53efb3 (diff)
bgpd, lib, zebra: Refactor ifname2ifindex to be VRF aware
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/if.c b/lib/if.c
index f4f7ad7749..6dbadb868c 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -256,7 +256,7 @@ ifindex2ifname (ifindex_t ifindex, vrf_id_t vrf_id)
}
ifindex_t
-ifname2ifindex_vrf (const char *name, vrf_id_t vrf_id)
+ifname2ifindex (const char *name, vrf_id_t vrf_id)
{
struct interface *ifp;
@@ -264,12 +264,6 @@ ifname2ifindex_vrf (const char *name, vrf_id_t vrf_id)
: IFINDEX_INTERNAL;
}
-ifindex_t
-ifname2ifindex (const char *name)
-{
- return ifname2ifindex_vrf (name, VRF_DEFAULT);
-}
-
/* Interface existance check by interface name. */
struct interface *
if_lookup_by_name (const char *name, vrf_id_t vrf_id)