summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_vty.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-01-17 23:55:39 +0100
committerRenato Westphal <renato@opensourcerouting.org>2019-01-18 17:21:42 +0100
commit6f95d11a172aca23e7fda492988567c944bd4553 (patch)
treee4c81de36a4bbe30270cdb050469a11fab7bfa28 /zebra/zebra_vty.c
parentMerge pull request #3625 from donaldsharp/clist_strlen (diff)
downloadfrr-6f95d11a172aca23e7fda492988567c944bd4553.tar.xz
frr-6f95d11a172aca23e7fda492988567c944bd4553.zip
zebra: fix the "show ip import-check" command
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'zebra/zebra_vty.c')
-rw-r--r--zebra/zebra_vty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index b18f0e943..b62ff81bf 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -958,7 +958,7 @@ DEFPY (show_ip_import_check,
VRF_CMD_HELP_STR
VRF_ALL_CMD_HELP_STR)
{
- afi_t afi = ipv4 ? AFI_IP : AFI_IP6;
+ int family = ipv4 ? AF_INET : AF_INET6;
vrf_id_t vrf_id = VRF_DEFAULT;
if (vrf_all) {
@@ -970,15 +970,15 @@ DEFPY (show_ip_import_check,
vty_out(vty, "\nVRF %s:\n",
zvrf_name(zvrf));
zebra_print_rnh_table(zvrf_id(zvrf),
- afi, vty,
- RNH_NEXTHOP_TYPE);
+ family, vty,
+ RNH_IMPORT_CHECK_TYPE);
}
return CMD_SUCCESS;
}
if (vrf_name)
VRF_GET_ID(vrf_id, vrf_name, false);
- zebra_print_rnh_table(vrf_id, afi, vty, RNH_IMPORT_CHECK_TYPE);
+ zebra_print_rnh_table(vrf_id, family, vty, RNH_IMPORT_CHECK_TYPE);
return CMD_SUCCESS;
}