diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-11 07:27:15 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-15 10:36:23 -0400 |
| commit | 1306c09a1b6996f7afa3ac651659c40146117834 (patch) | |
| tree | cb1a038dfebfb2532b8b067ffdb79d04eae41518 /ospf6d/ospf6_interface.c | |
| parent | a90607a4ba81caec852bd2e15f541ff12b08c031 (diff) | |
*: Refactor if_lookup_by_name to be VRF aware
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ospf6d/ospf6_interface.c')
| -rw-r--r-- | ospf6d/ospf6_interface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index 62c77e6f87..8e0779df92 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -1006,7 +1006,7 @@ DEFUN (show_ipv6_ospf6_interface, if (argc == 5) { - ifp = if_lookup_by_name (argv[idx_ifname]->arg); + ifp = if_lookup_by_name (argv[idx_ifname]->arg, VRF_DEFAULT); if (ifp == NULL) { vty_out (vty, "No such Interface: %s%s", argv[idx_ifname]->arg, @@ -1043,7 +1043,7 @@ DEFUN (show_ipv6_ospf6_interface_ifname_prefix, struct interface *ifp; struct ospf6_interface *oi; - ifp = if_lookup_by_name (argv[idx_ifname]->arg); + ifp = if_lookup_by_name (argv[idx_ifname]->arg, VRF_DEFAULT); if (ifp == NULL) { vty_out (vty, "No such Interface: %s%s", argv[idx_ifname]->arg, VNL); @@ -1897,7 +1897,7 @@ DEFUN (clear_ipv6_ospf6_interface, } else /* Interface name is specified. */ { - if ((ifp = if_lookup_by_name (argv[idx_ifname]->arg)) == NULL) + if ((ifp = if_lookup_by_name (argv[idx_ifname]->arg, VRF_DEFAULT)) == NULL) { vty_out (vty, "No such Interface: %s%s", argv[idx_ifname]->arg, VNL); return CMD_WARNING; |
