From a3e13ef37f188386c2bda3e311f98b52ef651764 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Wed, 13 Sep 2017 15:25:39 -0300 Subject: [PATCH] zebra: 'show ip route' with multiple options at the same time Now it's possible to specify multiple options when viewing the RIB or FIB. Example: 'show ip route 192.168.0.0/16 longer-prefixes tag 10 ospf' Signed-off-by: Renato Westphal --- zebra/zebra_vty.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index dbfb491db1..889cdcfa99 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -1202,19 +1202,21 @@ DEFPY (show_route, "show\ <\ ip$ipv4 [vrf ]\ - [\ + [{\ tag (1-4294967295)\ |A.B.C.D/M$prefix longer-prefixes\ |supernets-only$supernets_only\ - |" FRR_IP_REDIST_STR_ZEBRA "$type_str\ + }]\ + [<\ + " FRR_IP_REDIST_STR_ZEBRA "$type_str\ |ospf$type_str (1-65535)$ospf_instance_id\ - ]\ + >]\ |ipv6$ipv6 [vrf ]\ - [\ + [{\ tag (1-4294967295)\ |X:X::X:X/M$prefix longer-prefixes\ - |" FRR_IP6_REDIST_STR_ZEBRA "$type_str\ - ]\ + }]\ + [" FRR_IP6_REDIST_STR_ZEBRA "$type_str]\ >\ [json$json]", SHOW_STR -- 2.39.5