diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-06-16 13:09:37 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-06-16 13:09:37 -0400 |
| commit | d7a75a6ca6739e5bdbf23fa8f732bb29a3913df6 (patch) | |
| tree | 8499c0027f1ea1ddc3ac3c1773bfc66ab59a961f | |
| parent | 18c57037100955cd6588ccc62d0d63923bed7d07 (diff) | |
lib, vtysh, zebra: Fix per CR comments
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
| -rw-r--r-- | lib/if.c | 6 | ||||
| -rw-r--r-- | lib/vrf.c | 7 | ||||
| -rw-r--r-- | vtysh/vtysh.c | 8 | ||||
| -rw-r--r-- | zebra/interface.c | 6 | ||||
| -rw-r--r-- | zebra/router-id.c | 4 | ||||
| -rw-r--r-- | zebra/zebra_vty.c | 58 |
6 files changed, 44 insertions, 45 deletions
@@ -678,7 +678,7 @@ if_sunwzebra_get (const char *name, size_t nlen, vrf_id_t vrf_id) DEFUN (interface, interface_cmd, - "interface IFNAME [vrf VRFNAME]", + "interface IFNAME [vrf NAME]", "Select an interface to configure\n" "Interface's name\n" VRF_CMD_HELP_STR) @@ -723,7 +723,7 @@ DEFUN (interface, DEFUN_NOSH (no_interface, no_interface_cmd, - "no interface IFNAME [vrf VRFNAME]", + "no interface IFNAME [vrf NAME]", NO_STR "Delete a pseudo interface's configuration\n" "Interface's name\n" @@ -774,7 +774,7 @@ if_cmd_init (void) /* For debug purpose. */ DEFUN (show_address, show_address_cmd, - "show address [vrf VRFNAME]", + "show address [vrf NAME]", SHOW_STR "address\n" VRF_CMD_HELP_STR) @@ -391,7 +391,7 @@ vrf_autocomplete (vector comps, struct cmd_token *token) static const struct cmd_variable_handler vrf_var_handlers[] = { { - .tokenname = "VRFNAME", + .varname = "vrf", .completions = vrf_autocomplete, }, { @@ -399,7 +399,6 @@ static const struct cmd_variable_handler vrf_var_handlers[] = { }, }; - /* Initialize VRF module. */ void vrf_init (int (*create)(struct vrf *), @@ -464,7 +463,7 @@ vrf_socket (int domain, int type, int protocol, vrf_id_t vrf_id) /* vrf CLI commands */ DEFUN_NOSH (vrf, vrf_cmd, - "vrf VRFNAME", + "vrf NAME", "Select a VRF to configure\n" "VRF's name\n") { @@ -489,7 +488,7 @@ DEFUN_NOSH (vrf, DEFUN_NOSH (no_vrf, no_vrf_cmd, - "no vrf VRFNAME", + "no vrf NAME", NO_STR "Delete a pseudo VRF's configuration\n" "VRF's name\n") diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index 27077951b0..ffdfd5d725 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -1902,7 +1902,7 @@ DEFUNSH (VTYSH_ALL, DEFUNSH (VTYSH_INTERFACE, vtysh_interface, vtysh_interface_cmd, - "interface IFNAME vrf VRFNAME", + "interface IFNAME [vrf NAME]", "Select an interface to configure\n" "Interface's name\n" VRF_CMD_HELP_STR) @@ -1921,7 +1921,7 @@ DEFSH (VTYSH_ZEBRA|VTYSH_RIPD|VTYSH_RIPNGD|VTYSH_OSPFD|VTYSH_OSPF6D|VTYSH_EIGRPD DEFSH (VTYSH_ZEBRA, vtysh_no_interface_vrf_cmd, - "no interface IFNAME vrf VRFNAME", + "no interface IFNAME vrf NAME", NO_STR "Delete a pseudo interface's configuration\n" "Interface's name\n" @@ -1943,7 +1943,7 @@ DEFUNSH (VTYSH_NS, DEFUNSH (VTYSH_VRF, vtysh_vrf, vtysh_vrf_cmd, - "vrf VRFNAME", + "vrf NAME", "Select a VRF to configure\n" "VRF's name\n") { @@ -1953,7 +1953,7 @@ DEFUNSH (VTYSH_VRF, DEFSH (VTYSH_ZEBRA, vtysh_no_vrf_cmd, - "no vrf VRFNAME", + "no vrf NAME", NO_STR "Delete a pseudo vrf's configuration\n" "VRF's name\n") diff --git a/zebra/interface.c b/zebra/interface.c index 39476c6119..9393305f06 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -1282,7 +1282,7 @@ struct cmd_node interface_node = /* Show all interfaces to vty. */ DEFUN (show_interface, show_interface_cmd, - "show interface [vrf VRFNAME]", + "show interface [vrf NAME]", SHOW_STR "Interface status and configuration\n" VRF_CMD_HELP_STR) @@ -1330,7 +1330,7 @@ DEFUN (show_interface_vrf_all, DEFUN (show_interface_name_vrf, show_interface_name_vrf_cmd, - "show interface IFNAME vrf VRFNAME", + "show interface IFNAME vrf NAME", SHOW_STR "Interface status and configuration\n" "Interface name\n" @@ -1438,7 +1438,7 @@ if_show_description (struct vty *vty, vrf_id_t vrf_id) DEFUN (show_interface_desc, show_interface_desc_cmd, - "show interface description [vrf VRFNAME]", + "show interface description [vrf NAME]", SHOW_STR "Interface status and configuration\n" "Interface description\n" diff --git a/zebra/router-id.c b/zebra/router-id.c index f4306ba21e..318986c1b7 100644 --- a/zebra/router-id.c +++ b/zebra/router-id.c @@ -215,7 +215,7 @@ router_id_write (struct vty *vty) DEFUN (router_id, router_id_cmd, - "router-id A.B.C.D [vrf VRFNAME]", + "router-id A.B.C.D [vrf NAME]", "Manually set the router-id\n" "IP address to use for router-id\n" VRF_CMD_HELP_STR) @@ -243,7 +243,7 @@ DEFUN (router_id, DEFUN (no_router_id, no_router_id_cmd, - "no router-id [A.B.C.D [vrf VRFNAME]]", + "no router-id [A.B.C.D [vrf NAME]]", NO_STR "Remove the manually configured router-id\n" "IP address to use for router-id\n" diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index d1ca6d0a39..88778e491b 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -395,7 +395,7 @@ zebra_vty_ip_route_tdv_helper (int argc, struct cmd_token *argv[], /* Static route configuration. */ DEFUN (ip_route, ip_route_cmd, - "ip route A.B.C.D/M <A.B.C.D|INTERFACE|null0> [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "ip route A.B.C.D/M <A.B.C.D|INTERFACE|null0> [tag (1-4294967295)] [(1-255)] [vrf NAME]", IP_STR "Establish static routes\n" "IP destination prefix (e.g. 10.0.0.0/8)\n" @@ -425,7 +425,7 @@ DEFUN (ip_route, DEFUN (ip_route_flags, ip_route_flags_cmd, - "ip route A.B.C.D/M <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "ip route A.B.C.D/M <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf NAME]", IP_STR "Establish static routes\n" "IP destination prefix (e.g. 10.0.0.0/8)\n" @@ -456,7 +456,7 @@ DEFUN (ip_route_flags, /* Mask as A.B.C.D format. */ DEFUN (ip_route_mask, ip_route_mask_cmd, - "ip route A.B.C.D A.B.C.D <A.B.C.D|INTERFACE|null0> [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "ip route A.B.C.D A.B.C.D <A.B.C.D|INTERFACE|null0> [tag (1-4294967295)] [(1-255)] [vrf NAME]", IP_STR "Establish static routes\n" "IP destination prefix\n" @@ -488,7 +488,7 @@ DEFUN (ip_route_mask, DEFUN (ip_route_mask_flags, ip_route_mask_flags_cmd, - "ip route A.B.C.D A.B.C.D <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "ip route A.B.C.D A.B.C.D <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf NAME]", IP_STR "Establish static routes\n" "IP destination prefix\n" @@ -520,7 +520,7 @@ DEFUN (ip_route_mask_flags, DEFUN (no_ip_route, no_ip_route_cmd, - "no ip route A.B.C.D/M <A.B.C.D|INTERFACE|null0> [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "no ip route A.B.C.D/M <A.B.C.D|INTERFACE|null0> [tag (1-4294967295)] [(1-255)] [vrf NAME]", NO_STR IP_STR "Establish static routes\n" @@ -552,7 +552,7 @@ DEFUN (no_ip_route, DEFUN (no_ip_route_flags, no_ip_route_flags_cmd, - "no ip route A.B.C.D/M <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "no ip route A.B.C.D/M <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf NAME]", NO_STR IP_STR "Establish static routes\n" @@ -580,7 +580,7 @@ DEFUN (no_ip_route_flags, DEFUN (no_ip_route_mask, no_ip_route_mask_cmd, - "no ip route A.B.C.D A.B.C.D <A.B.C.D|INTERFACE|null0> [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "no ip route A.B.C.D A.B.C.D <A.B.C.D|INTERFACE|null0> [tag (1-4294967295)] [(1-255)] [vrf NAME]", NO_STR IP_STR "Establish static routes\n" @@ -614,7 +614,7 @@ DEFUN (no_ip_route_mask, DEFUN (no_ip_route_mask_flags, no_ip_route_mask_flags_cmd, - "no ip route A.B.C.D A.B.C.D <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "no ip route A.B.C.D A.B.C.D <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf NAME]", NO_STR IP_STR "Establish static routes\n" @@ -1219,7 +1219,7 @@ do_show_ip_route (struct vty *vty, const char *vrf_name, afi_t afi, safi_t safi, DEFUN (show_ip_nht, show_ip_nht_cmd, - "show ip nht [vrf VRFNAME]", + "show ip nht [vrf NAME]", SHOW_STR IP_STR "IP nexthop tracking table\n" @@ -1259,7 +1259,7 @@ DEFUN (show_ip_nht_vrf_all, DEFUN (show_ipv6_nht, show_ipv6_nht_cmd, - "show ipv6 nht [vrf VRFNAME]", + "show ipv6 nht [vrf NAME]", SHOW_STR IPV6_STR "IPv6 nexthop tracking table\n" @@ -1362,7 +1362,7 @@ DEFUN (no_ipv6_nht_default_route, // dwalton one "show ip route" to rule them all DEFUN (show_ip_route, show_ip_route_cmd, - "show ip <fib|route> [vrf VRFNAME] [tag (1-4294967295)|A.B.C.D/M longer-prefixes|supernets-only|" FRR_IP_REDIST_STR_ZEBRA "|ospf (1-65535)] [json]", + "show ip <fib|route> [vrf NAME] [tag (1-4294967295)|A.B.C.D/M longer-prefixes|supernets-only|" FRR_IP_REDIST_STR_ZEBRA "|ospf (1-65535)] [json]", SHOW_STR IP_STR "IP forwarding table\n" @@ -1475,7 +1475,7 @@ DEFUN (show_ip_route, DEFUN (show_ip_route_addr, show_ip_route_addr_cmd, - "show ip route [vrf VRFNAME] A.B.C.D", + "show ip route [vrf NAME] A.B.C.D", SHOW_STR IP_STR "IP routing table\n" @@ -1524,7 +1524,7 @@ DEFUN (show_ip_route_addr, DEFUN (show_ip_route_prefix, show_ip_route_prefix_cmd, - "show ip route [vrf VRFNAME] A.B.C.D/M", + "show ip route [vrf NAME] A.B.C.D/M", SHOW_STR IP_STR "IP routing table\n" @@ -1724,7 +1724,7 @@ vty_show_ip_route_summary_prefix (struct vty *vty, struct route_table *table) /* Show route summary. */ DEFUN (show_ip_route_summary, show_ip_route_summary_cmd, - "show ip route [vrf VRFNAME] summary", + "show ip route [vrf NAME] summary", SHOW_STR IP_STR "IP routing table\n" @@ -1749,7 +1749,7 @@ DEFUN (show_ip_route_summary, /* Show route summary prefix. */ DEFUN (show_ip_route_summary_prefix, show_ip_route_summary_prefix_cmd, - "show ip route [vrf VRFNAME] summary prefix", + "show ip route [vrf NAME] summary prefix", SHOW_STR IP_STR "IP routing table\n" @@ -2165,7 +2165,7 @@ static_ipv6_func (struct vty *vty, int add_cmd, const char *dest_str, DEFUN (ipv6_route, ipv6_route_cmd, - "ipv6 route X:X::X:X/M [from X:X::X:X/M] <X:X::X:X|INTERFACE|null0> [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "ipv6 route X:X::X:X/M [from X:X::X:X/M] <X:X::X:X|INTERFACE|null0> [tag (1-4294967295)] [(1-255)] [vrf NAME]", IP_STR "Establish static routes\n" "IPv6 destination prefix (e.g. 3ffe:506::/32)\n" @@ -2211,7 +2211,7 @@ DEFUN (ipv6_route, DEFUN (ipv6_route_flags, ipv6_route_flags_cmd, - "ipv6 route X:X::X:X/M [from X:X::X:X/M] <X:X::X:X|INTERFACE> <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "ipv6 route X:X::X:X/M [from X:X::X:X/M] <X:X::X:X|INTERFACE> <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf NAME]", IP_STR "Establish static routes\n" "IPv6 destination prefix (e.g. 3ffe:506::/32)\n" @@ -2263,7 +2263,7 @@ DEFUN (ipv6_route_flags, DEFUN (ipv6_route_ifname, ipv6_route_ifname_cmd, - "ipv6 route X:X::X:X/M [from X:X::X:X/M] X:X::X:X INTERFACE [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "ipv6 route X:X::X:X/M [from X:X::X:X/M] X:X::X:X INTERFACE [tag (1-4294967295)] [(1-255)] [vrf NAME]", IP_STR "Establish static routes\n" "IPv6 destination prefix (e.g. 3ffe:506::/32)\n" @@ -2312,7 +2312,7 @@ DEFUN (ipv6_route_ifname, DEFUN (ipv6_route_ifname_flags, ipv6_route_ifname_flags_cmd, - "ipv6 route X:X::X:X/M [from X:X::X:X/M] X:X::X:X INTERFACE <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "ipv6 route X:X::X:X/M [from X:X::X:X/M] X:X::X:X INTERFACE <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf NAME]", IP_STR "Establish static routes\n" "IPv6 destination prefix (e.g. 3ffe:506::/32)\n" @@ -2366,7 +2366,7 @@ DEFUN (ipv6_route_ifname_flags, DEFUN (no_ipv6_route, no_ipv6_route_cmd, - "no ipv6 route X:X::X:X/M [from X:X::X:X/M] <X:X::X:X|INTERFACE|null0> [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "no ipv6 route X:X::X:X/M [from X:X::X:X/M] <X:X::X:X|INTERFACE|null0> [tag (1-4294967295)] [(1-255)] [vrf NAME]", NO_STR IP_STR "Establish static routes\n" @@ -2413,7 +2413,7 @@ DEFUN (no_ipv6_route, DEFUN (no_ipv6_route_flags, no_ipv6_route_flags_cmd, - "no ipv6 route X:X::X:X/M [from X:X::X:X/M] <X:X::X:X|INTERFACE> <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "no ipv6 route X:X::X:X/M [from X:X::X:X/M] <X:X::X:X|INTERFACE> <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf NAME]", NO_STR IP_STR "Establish static routes\n" @@ -2465,7 +2465,7 @@ DEFUN (no_ipv6_route_flags, DEFUN (no_ipv6_route_ifname, no_ipv6_route_ifname_cmd, - "no ipv6 route X:X::X:X/M [from X:X::X:X/M] X:X::X:X INTERFACE [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "no ipv6 route X:X::X:X/M [from X:X::X:X/M] X:X::X:X INTERFACE [tag (1-4294967295)] [(1-255)] [vrf NAME]", NO_STR IP_STR "Establish static routes\n" @@ -2515,7 +2515,7 @@ DEFUN (no_ipv6_route_ifname, DEFUN (no_ipv6_route_ifname_flags, no_ipv6_route_ifname_flags_cmd, - "no ipv6 route X:X::X:X/M [from X:X::X:X/M] X:X::X:X INTERFACE <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf VRFNAME]", + "no ipv6 route X:X::X:X/M [from X:X::X:X/M] X:X::X:X INTERFACE <reject|blackhole> [tag (1-4294967295)] [(1-255)] [vrf NAME]", NO_STR IP_STR "Establish static routes\n" @@ -2571,7 +2571,7 @@ DEFUN (no_ipv6_route_ifname_flags, // dwalton duplicate to here DEFUN (show_ipv6_route, show_ipv6_route_cmd, - "show ipv6 <fib|route> [vrf VRFNAME] [tag (1-4294967295)|X:X::X:X/M longer-prefixes|" FRR_IP6_REDIST_STR_ZEBRA "] [json]", + "show ipv6 <fib|route> [vrf NAME] [tag (1-4294967295)|X:X::X:X/M longer-prefixes|" FRR_IP6_REDIST_STR_ZEBRA "] [json]", SHOW_STR IP_STR "IP forwarding table\n" @@ -2670,7 +2670,7 @@ DEFUN (show_ipv6_route, DEFUN (show_ipv6_route_addr, show_ipv6_route_addr_cmd, - "show ipv6 route [vrf VRFNAME] X:X::X:X", + "show ipv6 route [vrf NAME] X:X::X:X", SHOW_STR IP_STR "IPv6 routing table\n" @@ -2719,7 +2719,7 @@ DEFUN (show_ipv6_route_addr, DEFUN (show_ipv6_route_prefix, show_ipv6_route_prefix_cmd, - "show ipv6 route [vrf VRFNAME] X:X::X:X/M", + "show ipv6 route [vrf NAME] X:X::X:X/M", SHOW_STR IP_STR "IPv6 routing table\n" @@ -2768,7 +2768,7 @@ DEFUN (show_ipv6_route_prefix, /* Show route summary. */ DEFUN (show_ipv6_route_summary, show_ipv6_route_summary_cmd, - "show ipv6 route [vrf VRFNAME] summary", + "show ipv6 route [vrf NAME] summary", SHOW_STR IP_STR "IPv6 routing table\n" @@ -2794,7 +2794,7 @@ DEFUN (show_ipv6_route_summary, /* Show ipv6 route summary prefix. */ DEFUN (show_ipv6_route_summary_prefix, show_ipv6_route_summary_prefix_cmd, - "show ipv6 route [vrf VRFNAME] summary prefix", + "show ipv6 route [vrf NAME] summary prefix", SHOW_STR IP_STR "IPv6 routing table\n" @@ -2824,7 +2824,7 @@ DEFUN (show_ipv6_route_summary_prefix, */ DEFUN (show_ipv6_mroute, show_ipv6_mroute_cmd, - "show ipv6 mroute [vrf VRFNAME]", + "show ipv6 mroute [vrf NAME]", SHOW_STR IP_STR "IPv6 Multicast routing table\n" |
