diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-11 07:52:59 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-15 10:43:31 -0400 |
| commit | 128c2be2a1b1592e4641b79d897c8ceebc0e8bf5 (patch) | |
| tree | 847fe9db6e474b32f9531977d829602f9d016419 /lib/if.c | |
| parent | baaea325e6a425321296cff40cc7a3b47b53efb3 (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.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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) |
