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 <sworley@cumulusnetworks.com>
This commit is contained in:
Stephen Worley 2020-10-19 14:08:18 -04:00
parent c85b63238a
commit dc1c436278

View File

@ -1768,6 +1768,15 @@ DEFPY (show_route,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
ALIAS_HIDDEN (show_route,
show_ro_cmd,
"show <ip$ipv4|ipv6$ipv6> ro",
SHOW_STR
IP_STR
IPV6_STR
"IP routing table\n");
DEFPY (show_route_detail, DEFPY (show_route_detail,
show_route_detail_cmd, show_route_detail_cmd,
"show\ "show\
@ -3905,6 +3914,7 @@ void zebra_vty_init(void)
install_element(VIEW_NODE, &show_vrf_cmd); install_element(VIEW_NODE, &show_vrf_cmd);
install_element(VIEW_NODE, &show_vrf_vni_cmd); install_element(VIEW_NODE, &show_vrf_vni_cmd);
install_element(VIEW_NODE, &show_route_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_detail_cmd);
install_element(VIEW_NODE, &show_route_summary_cmd); install_element(VIEW_NODE, &show_route_summary_cmd);
install_element(VIEW_NODE, &show_ip_nht_cmd); install_element(VIEW_NODE, &show_ip_nht_cmd);