From 94a01fb26e4b8be71517b07d7920b594ef79b0a6 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 7 Aug 2019 15:02:43 -0400 Subject: [PATCH] zebra: Allow v4 or v6 addresses to be optional after `vrf X` in show ip nht The `show ip nht vrf EVA ...` command was not allowing you to only specify the vrf anymore. Fix this: robot# show ip nht vrf EVA A.B.C.D IPv4 Address X:X::X:X IPv6 Address robot# show ip nht vrf EVA 4.5.6.7 robot# show ip nht vrf EVA robot# Ticket: CM-25831 Signed-off-by: Donald Sharp --- zebra/zebra_vty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index 99431e7e6d..5c0dc27380 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -1028,7 +1028,7 @@ DEFPY (show_route_all_table_vrf, DEFPY (show_ip_nht, show_ip_nht_cmd, - "show $type [$addr|vrf NAME$vrf_name $addr|vrf all$vrf_all]", + "show $type [$addr|vrf NAME$vrf_name [$addr]|vrf all$vrf_all]", SHOW_STR IP_STR IP6_STR -- 2.39.5