summaryrefslogtreecommitdiff
path: root/zebra/zebra_pw.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-03-28 15:49:50 -0400
committerDonald Sharp <sharpd@nvidia.com>2023-03-28 15:49:50 -0400
commit9a7d1e7427a1c7d24e270ad12cd3f45be49e9a51 (patch)
treeb95d6fbcc770a2ffc44ea6f8d1d727c4b21bd8e4 /zebra/zebra_pw.c
parent9b00c0a1657230ad9f2a437651cd05c3b7e02d06 (diff)
zebra: Use zebra_vrf_lookup_by_id when we can
Let's make this as consistent as is possible. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_pw.c')
-rw-r--r--zebra/zebra_pw.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/zebra/zebra_pw.c b/zebra/zebra_pw.c
index a02d7e8807..12dcac1de5 100644
--- a/zebra/zebra_pw.c
+++ b/zebra/zebra_pw.c
@@ -407,7 +407,7 @@ DEFUN_NOSH (pseudowire_if,
const char *ifname;
int idx = 0;
- zvrf = vrf_info_lookup(VRF_DEFAULT);
+ zvrf = zebra_vrf_lookup_by_id(VRF_DEFAULT);
if (!zvrf)
return CMD_WARNING;
@@ -439,7 +439,7 @@ DEFUN (no_pseudowire_if,
const char *ifname;
int idx = 0;
- zvrf = vrf_info_lookup(VRF_DEFAULT);
+ zvrf = zebra_vrf_lookup_by_id(VRF_DEFAULT);
if (!zvrf)
return CMD_WARNING;
@@ -563,7 +563,7 @@ DEFUN (show_pseudowires,
struct zebra_vrf *zvrf;
struct zebra_pw *pw;
- zvrf = vrf_info_lookup(VRF_DEFAULT);
+ zvrf = zebra_vrf_lookup_by_id(VRF_DEFAULT);
if (!zvrf)
return 0;
@@ -602,7 +602,7 @@ static void vty_show_mpls_pseudowire_detail(struct vty *vty)
struct nexthop *nexthop;
struct nexthop_group *nhg;
- zvrf = vrf_info_lookup(VRF_DEFAULT);
+ zvrf = zebra_vrf_lookup_by_id(VRF_DEFAULT);
if (!zvrf)
return;
@@ -758,7 +758,7 @@ static void vty_show_mpls_pseudowire_detail_json(struct vty *vty)
struct zebra_vrf *zvrf;
struct zebra_pw *pw;
- zvrf = vrf_info_lookup(VRF_DEFAULT);
+ zvrf = zebra_vrf_lookup_by_id(VRF_DEFAULT);
if (!zvrf)
return;
@@ -794,7 +794,7 @@ static int zebra_pw_config(struct vty *vty)
struct zebra_vrf *zvrf;
struct zebra_pw *pw;
- zvrf = vrf_info_lookup(VRF_DEFAULT);
+ zvrf = zebra_vrf_lookup_by_id(VRF_DEFAULT);
if (!zvrf)
return 0;