Merge pull request #7344 from sworleys/Show-IP-Ro

zebra: add alias for "show ip/ipv6 ro"
This commit is contained in:
Russ White 2020-10-20 07:31:24 -04:00 committed by GitHub
commit dcb77e3e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1768,6 +1768,15 @@ DEFPY (show_route,
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,
show_route_detail_cmd,
"show\
@ -3905,6 +3914,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);