From 05808320260ae79cce8ac927b1b1e20a8b1716b5 Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Mon, 19 Oct 2020 14:08:18 -0400 Subject: [PATCH] zebra: add alias for "show ip/ipv6 ro" Add an alias so people can still type `show ip ro`. It became ambigious in a recent release. Signed-off-by: Stephen Worley --- zebra/zebra_vty.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index fc0df09df8..cb9ae670bf 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -1745,6 +1745,15 @@ DEFPY (show_route, return CMD_SUCCESS; } +ALIAS_HIDDEN (show_route, + show_ro_cmd, + "show ro", + SHOW_STR + IP_STR + IPV6_STR + "IP routing table\n"); + + DEFPY (show_route_detail, show_route_detail_cmd, "show\ @@ -3845,6 +3854,7 @@ void zebra_vty_init(void) install_element(VIEW_NODE, &show_vrf_cmd); install_element(VIEW_NODE, &show_vrf_vni_cmd); install_element(VIEW_NODE, &show_route_cmd); + install_element(VIEW_NODE, &show_ro_cmd); install_element(VIEW_NODE, &show_route_detail_cmd); install_element(VIEW_NODE, &show_route_summary_cmd); install_element(VIEW_NODE, &show_ip_nht_cmd); -- 2.39.5