summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-01-11 10:14:11 -0500
committerDonald Sharp <sharpd@nvidia.com>2023-01-13 08:13:52 -0500
commit2bb8b49ce13aee725fbce975eac1493890f8caff (patch)
treebd594621e7bd3e909684f6bd7f20f5d6ae1b4131 /lib/if.c
parent1ab8721a5ca32842b2904333ac6d62e90a81a129 (diff)
Revert "Merge pull request #11127 from louis-6wind/bgp-leak"
This reverts commit 16aa1809e7c8caad37e8edd4e5aaac4f344bc7d3, reversing changes made to f616e716089b16d9a678846282a6ac5c55e31a56.
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/if.c b/lib/if.c
index 6766a04b37..70c0c18141 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -564,24 +564,9 @@ size_t if_lookup_by_hwaddr(const uint8_t *hw_addr, size_t addrsz,
return count;
}
-/* Get the VRF loopback interface, i.e. the loopback on the default VRF
- * or the VRF interface.
- */
-struct interface *if_get_vrf_loopback(vrf_id_t vrf_id)
-{
- struct interface *ifp = NULL;
- struct vrf *vrf = vrf_lookup_by_id(vrf_id);
-
- FOR_ALL_INTERFACES (vrf, ifp)
- if (if_is_loopback(ifp))
- return ifp;
-
- return NULL;
-}
/* Get interface by name if given name interface doesn't exist create
- * one.
- */
+ one. */
struct interface *if_get_by_name(const char *name, vrf_id_t vrf_id,
const char *vrf_name)
{