all: Fix various syntax errors

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
Quentin Young 2016-10-04 19:21:45 +00:00
parent 98463e0ab7
commit 12dcf78e0b
6 changed files with 34 additions and 12 deletions

View File

@ -3698,15 +3698,13 @@ DEFUN (no_set_weight,
} }
DEFUN (set_aspath_prepend, DEFUN (set_aspath_prepend_asn,
set_aspath_prepend_cmd, set_aspath_prepend_asn_cmd,
"set as-path prepend <(1-4294967295)...|last-as (1-10)>", "set as-path prepend (1-4294967295)...",
SET_STR SET_STR
"Transform BGP AS_PATH attribute\n" "Transform BGP AS_PATH attribute\n"
"Prepend to the as-path\n" "Prepend to the as-path\n"
"AS number\n" "AS number\n")
"Use the peer's AS-number\n"
"Number of times to insert")
{ {
int idx_asn = 3; int idx_asn = 3;
int ret; int ret;
@ -3719,6 +3717,17 @@ DEFUN (set_aspath_prepend,
return ret; return ret;
} }
DEFUN (set_aspath_prepend_lastas,
set_aspath_prepend_lastas_cmd,
"set as-path prepend last-as (1-10)",
SET_STR
"Transform BGP AS_PATH attribute\n"
"Prepend to the as-path\n"
"Use the peer's AS-number\n"
"Number of times to insert")
{
return set_aspath_prepend_asn (self, vty, argc, argv);
}
DEFUN (no_set_aspath_prepend, DEFUN (no_set_aspath_prepend,
no_set_aspath_prepend_cmd, no_set_aspath_prepend_cmd,
@ -4516,7 +4525,8 @@ bgp_route_map_init (void)
install_element (RMAP_NODE, &no_set_weight_cmd); install_element (RMAP_NODE, &no_set_weight_cmd);
install_element (RMAP_NODE, &set_metric_cmd); install_element (RMAP_NODE, &set_metric_cmd);
install_element (RMAP_NODE, &no_set_metric_cmd); install_element (RMAP_NODE, &no_set_metric_cmd);
install_element (RMAP_NODE, &set_aspath_prepend_cmd); install_element (RMAP_NODE, &set_aspath_prepend_asn_cmd);
install_element (RMAP_NODE, &set_aspath_prepend_lastas_cmd);
install_element (RMAP_NODE, &set_aspath_exclude_cmd); install_element (RMAP_NODE, &set_aspath_exclude_cmd);
install_element (RMAP_NODE, &no_set_aspath_prepend_cmd); install_element (RMAP_NODE, &no_set_aspath_prepend_cmd);
install_element (RMAP_NODE, &no_set_aspath_exclude_cmd); install_element (RMAP_NODE, &no_set_aspath_exclude_cmd);

View File

@ -943,7 +943,7 @@ DEFUN (no_bgp_confederation_identifier,
DEFUN (bgp_confederation_peers, DEFUN (bgp_confederation_peers,
bgp_confederation_peers_cmd, bgp_confederation_peers_cmd,
"bgp confederation peers . (1-4294967295)", "bgp confederation peers (1-4294967295)...",
"BGP specific commands\n" "BGP specific commands\n"
"AS confederation parameters\n" "AS confederation parameters\n"
"Peer ASs in BGP confederation\n" "Peer ASs in BGP confederation\n"

View File

@ -55,7 +55,7 @@ isis_circuit_lookup (struct vty *vty)
DEFUN (ip_router_isis, DEFUN (ip_router_isis,
ip_router_isis_cmd, ip_router_isis_cmd,
"<ip|ipv6> router isis WORD", "ip router isis WORD",
"Interface Internet Protocol config commands\n" "Interface Internet Protocol config commands\n"
"IP router interface commands\n" "IP router interface commands\n"
"IS-IS Routing for IP\n" "IS-IS Routing for IP\n"
@ -108,6 +108,17 @@ DEFUN (ip_router_isis,
return CMD_SUCCESS; return CMD_SUCCESS;
} }
DEFUN (ip6_router_isis,
ip6_router_isis_cmd,
"ipv6 router isis WORD",
"Interface Internet Protocol config commands\n"
"IP router interface commands\n"
"IS-IS Routing for IP\n"
"Routing process tag\n")
{
return ip_router_isis (self, vty, argc, argv);
}
DEFUN (no_ip_router_isis, DEFUN (no_ip_router_isis,
no_ip_router_isis_cmd, no_ip_router_isis_cmd,
"no <ip|ipv6> router isis WORD", "no <ip|ipv6> router isis WORD",
@ -2163,6 +2174,7 @@ void
isis_vty_init (void) isis_vty_init (void)
{ {
install_element (INTERFACE_NODE, &ip_router_isis_cmd); install_element (INTERFACE_NODE, &ip_router_isis_cmd);
install_element (INTERFACE_NODE, &ip6_router_isis_cmd);
install_element (INTERFACE_NODE, &no_ip_router_isis_cmd); install_element (INTERFACE_NODE, &no_ip_router_isis_cmd);
install_element (INTERFACE_NODE, &isis_passive_cmd); install_element (INTERFACE_NODE, &isis_passive_cmd);

View File

@ -8372,7 +8372,7 @@ DEFUN (ospf_default_information_originate,
DEFUN (no_ospf_default_information_originate, DEFUN (no_ospf_default_information_originate,
no_ospf_default_information_originate_cmd, no_ospf_default_information_originate_cmd,
"no default-information originate [<always|metric (0-16777214)|metric-type <1|2>|route-map WORD>]", "no default-information originate [<always|metric (0-16777214)|metric-type (1-2)|route-map WORD>]",
NO_STR NO_STR
"Control distribution of default information\n" "Control distribution of default information\n"
"Distribute a default route\n" "Distribute a default route\n"

View File

@ -1358,7 +1358,7 @@ DEFUN (ip_rip_receive_version,
DEFUN (ip_rip_receive_version_1, DEFUN (ip_rip_receive_version_1,
ip_rip_receive_version_1_cmd, ip_rip_receive_version_1_cmd,
"ip rip receive version 1 2", "ip rip receive version (1-1) (2-2)",
IP_STR IP_STR
"Routing Information Protocol\n" "Routing Information Protocol\n"
"Advertisement reception\n" "Advertisement reception\n"

View File

@ -3696,7 +3696,7 @@ zebra_ip_config (struct vty *vty)
DEFUN (ip_zebra_import_table_distance, DEFUN (ip_zebra_import_table_distance,
ip_zebra_import_table_distance_cmd, ip_zebra_import_table_distance_cmd,
"ip import-table (1-252) [distance (1-255)] [route-map WORD>]", "ip import-table (1-252) [distance (1-255)] [route-map WORD]",
IP_STR IP_STR
"import routes from non-main kernel table\n" "import routes from non-main kernel table\n"
"kernel routing table id\n" "kernel routing table id\n"