diff options
| author | Jafar Al-Gharaibeh <jafar@atcorp.com> | 2023-01-13 11:20:28 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-13 11:20:28 -0600 |
| commit | c0937881df35118f726536be80e4a9028c57334b (patch) | |
| tree | 11f1804d9fdf5534cc3969cbc2b14d453d0d3c53 /lib/if.c | |
| parent | 930e01aae17fdf5e5717094c11da99a0e833c54e (diff) | |
| parent | 914c1e35b50d23712fa002e9d7ee1321419bf84a (diff) | |
Merge pull request #12637 from donaldsharp/revert_pr_11127
Revert "Merge pull request #11127 from louis-6wind/bgp-leak"
Diffstat (limited to 'lib/if.c')
| -rw-r--r-- | lib/if.c | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -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) { |
