]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: add alias for "show ip/ipv6 ro"
authorStephen Worley <sworley@cumulusnetworks.com>
Mon, 19 Oct 2020 18:08:18 +0000 (14:08 -0400)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 28 Oct 2020 18:35:48 +0000 (21:35 +0300)
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>
zebra/zebra_vty.c

index fc0df09df89cc5917b584d7cd37903c5342d4bcf..cb9ae670bf77d1ef52887650ec8fcb96a05ec5e4 100644 (file)
@@ -1745,6 +1745,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\
@@ -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);