diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-03-23 12:38:30 -0700 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-03-23 12:38:30 -0700 |
| commit | f8962871283672835ee121737b67cb689fa3823b (patch) | |
| tree | cf5f13cdb995a0991b33bf01f9c7d6e42f652034 /lib/if.h | |
| parent | b359768d2279f9d44858e9eadb410a30d1edbe4d (diff) | |
bgpd, lib, zebra: Add ability to retrieve ifp without specifying a vrf
There are cases where we get an interface name but do not have a
corresponding vrf. We care about getting an interface pointer
so just provide a function that searches all vrf's for the ifp.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Radhicak Mahankali <radhika@cumulusnetworks.com>
Reviewed-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Diffstat (limited to 'lib/if.h')
| -rw-r--r-- | lib/if.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -287,6 +287,7 @@ extern struct interface *if_lookup_prefix_vrf (struct prefix *prefix, extern struct interface *if_lookup_by_name (const char *ifname); extern struct interface *if_get_by_name (const char *ifname); +extern struct interface *if_lookup_by_name_all_vrf (const char *ifname); extern struct interface *if_lookup_by_name_vrf (const char *ifname, vrf_id_t vrf_id); extern struct interface *if_get_by_name_vrf (const char *ifname, |
