}
-DEFUN (set_aspath_prepend,
- set_aspath_prepend_cmd,
- "set as-path prepend <(1-4294967295)...|last-as (1-10)>",
+DEFUN (set_aspath_prepend_asn,
+ set_aspath_prepend_asn_cmd,
+ "set as-path prepend (1-4294967295)...",
SET_STR
"Transform BGP AS_PATH attribute\n"
"Prepend to the as-path\n"
- "AS number\n"
- "Use the peer's AS-number\n"
- "Number of times to insert")
+ "AS number\n")
{
int idx_asn = 3;
int 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,
no_set_aspath_prepend_cmd,
install_element (RMAP_NODE, &no_set_weight_cmd);
install_element (RMAP_NODE, &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, &no_set_aspath_prepend_cmd);
install_element (RMAP_NODE, &no_set_aspath_exclude_cmd);
DEFUN (bgp_confederation_peers,
bgp_confederation_peers_cmd,
- "bgp confederation peers . (1-4294967295)",
+ "bgp confederation peers (1-4294967295)...",
"BGP specific commands\n"
"AS confederation parameters\n"
"Peer ASs in BGP confederation\n"
DEFUN (ip_router_isis,
ip_router_isis_cmd,
- "<ip|ipv6> router isis WORD",
+ "ip router isis WORD",
"Interface Internet Protocol config commands\n"
"IP router interface commands\n"
"IS-IS Routing for IP\n"
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,
no_ip_router_isis_cmd,
"no <ip|ipv6> router isis WORD",
isis_vty_init (void)
{
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, &isis_passive_cmd);
DEFUN (no_ospf_default_information_originate,
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
"Control distribution of default information\n"
"Distribute a default route\n"
DEFUN (ip_rip_receive_version_1,
ip_rip_receive_version_1_cmd,
- "ip rip receive version 1 2",
+ "ip rip receive version (1-1) (2-2)",
IP_STR
"Routing Information Protocol\n"
"Advertisement reception\n"
DEFUN (ip_zebra_import_table_distance,
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
"import routes from non-main kernel table\n"
"kernel routing table id\n"