"IPv6 prefix <network>/<length>, e.g., 3ffe::/16\n")
#endif /* HAVE_IPV6 */
-/* stubs for removed AS-Pathlimit commands, kept for config compatibility */
-ALIAS_DEPRECATED (bgp_network,
- bgp_network_ttl_cmd,
- "network A.B.C.D/M pathlimit <0-255>",
- "Specify a network to announce via BGP\n"
- "IP prefix <network>/<length>, e.g., 35.0.0.0/8\n"
- "AS-Path hopcount limit attribute\n"
- "AS-Pathlimit TTL, in number of AS-Path hops\n")
-ALIAS_DEPRECATED (bgp_network_backdoor,
- bgp_network_backdoor_ttl_cmd,
- "network A.B.C.D/M backdoor pathlimit <0-255>",
- "Specify a network to announce via BGP\n"
- "IP prefix <network>/<length>, e.g., 35.0.0.0/8\n"
- "Specify a BGP backdoor route\n"
- "AS-Path hopcount limit attribute\n"
- "AS-Pathlimit TTL, in number of AS-Path hops\n")
-ALIAS_DEPRECATED (bgp_network_mask,
- bgp_network_mask_ttl_cmd,
- "network A.B.C.D mask A.B.C.D pathlimit <0-255>",
- "Specify a network to announce via BGP\n"
- "Network number\n"
- "Network mask\n"
- "Network mask\n"
- "AS-Path hopcount limit attribute\n"
- "AS-Pathlimit TTL, in number of AS-Path hops\n")
-ALIAS_DEPRECATED (bgp_network_mask_backdoor,
- bgp_network_mask_backdoor_ttl_cmd,
- "network A.B.C.D mask A.B.C.D backdoor pathlimit <0-255>",
- "Specify a network to announce via BGP\n"
- "Network number\n"
- "Network mask\n"
- "Network mask\n"
- "Specify a BGP backdoor route\n"
- "AS-Path hopcount limit attribute\n"
- "AS-Pathlimit TTL, in number of AS-Path hops\n")
-ALIAS_DEPRECATED (bgp_network_mask_natural,
- bgp_network_mask_natural_ttl_cmd,
- "network A.B.C.D pathlimit <0-255>",
- "Specify a network to announce via BGP\n"
- "Network number\n"
- "AS-Path hopcount limit attribute\n"
- "AS-Pathlimit TTL, in number of AS-Path hops\n")
-ALIAS_DEPRECATED (bgp_network_mask_natural_backdoor,
- bgp_network_mask_natural_backdoor_ttl_cmd,
- "network A.B.C.D backdoor pathlimit <1-255>",
- "Specify a network to announce via BGP\n"
- "Network number\n"
- "Specify a BGP backdoor route\n"
- "AS-Path hopcount limit attribute\n"
- "AS-Pathlimit TTL, in number of AS-Path hops\n")
-ALIAS_DEPRECATED (no_bgp_network,
- no_bgp_network_ttl_cmd,
- "no network A.B.C.D/M pathlimit <0-255>",
- NO_STR
- "Specify a network to announce via BGP\n"
- "IP prefix <network>/<length>, e.g., 35.0.0.0/8\n"
- "AS-Path hopcount limit attribute\n"
- "AS-Pathlimit TTL, in number of AS-Path hops\n")
-ALIAS_DEPRECATED (no_bgp_network,
- no_bgp_network_backdoor_ttl_cmd,
- "no network A.B.C.D/M backdoor pathlimit <0-255>",
- NO_STR
- "Specify a network to announce via BGP\n"
- "IP prefix <network>/<length>, e.g., 35.0.0.0/8\n"
- "Specify a BGP backdoor route\n"
- "AS-Path hopcount limit attribute\n"
- "AS-Pathlimit TTL, in number of AS-Path hops\n")
-ALIAS_DEPRECATED (no_bgp_network,
- no_bgp_network_mask_ttl_cmd,
- "no network A.B.C.D mask A.B.C.D pathlimit <0-255>",
- NO_STR
- "Specify a network to announce via BGP\n"
- "Network number\n"
- "Network mask\n"
- "Network mask\n"
- "AS-Path hopcount limit attribute\n"
- "AS-Pathlimit TTL, in number of AS-Path hops\n")
-ALIAS_DEPRECATED (no_bgp_network_mask,
- no_bgp_network_mask_backdoor_ttl_cmd,
- "no network A.B.C.D mask A.B.C.D backdoor pathlimit <0-255>",
- NO_STR
- "Specify a network to announce via BGP\n"
- "Network number\n"
- "Network mask\n"
- "Network mask\n"
- "Specify a BGP backdoor route\n"
- "AS-Path hopcount limit attribute\n"
- "AS-Pathlimit TTL, in number of AS-Path hops\n")
-ALIAS_DEPRECATED (no_bgp_network_mask_natural,
- no_bgp_network_mask_natural_ttl_cmd,
- "no network A.B.C.D pathlimit <0-255>",
- NO_STR
- "Specify a network to announce via BGP\n"
- "Network number\n"
- "AS-Path hopcount limit attribute\n"
- "AS-Pathlimit TTL, in number of AS-Path hops\n")
-ALIAS_DEPRECATED (no_bgp_network_mask_natural,
- no_bgp_network_mask_natural_backdoor_ttl_cmd,
- "no network A.B.C.D backdoor pathlimit <0-255>",
- NO_STR
- "Specify a network to announce via BGP\n"
- "Network number\n"
- "Specify a BGP backdoor route\n"
- "AS-Path hopcount limit attribute\n"
- "AS-Pathlimit TTL, in number of AS-Path hops\n")
-#ifdef HAVE_IPV6
-ALIAS_DEPRECATED (ipv6_bgp_network,
- ipv6_bgp_network_ttl_cmd,
- "network X:X::X:X/M pathlimit <0-255>",
- "Specify a network to announce via BGP\n"
- "IPv6 prefix <network>/<length>\n"
- "AS-Path hopcount limit attribute\n"
- "AS-Pathlimit TTL, in number of AS-Path hops\n")
-ALIAS_DEPRECATED (no_ipv6_bgp_network,
- no_ipv6_bgp_network_ttl_cmd,
- "no network X:X::X:X/M pathlimit <0-255>",
- NO_STR
- "Specify a network to announce via BGP\n"
- "IPv6 prefix <network>/<length>\n"
- "AS-Path hopcount limit attribute\n"
- "AS-Pathlimit TTL, in number of AS-Path hops\n")
-#endif /* HAVE_IPV6 */
-
/* Aggreagete address:
advertise-map Set condition to advertise attribute
return bgp_show (vty, NULL, AFI_IP6, SAFI_UNICAST, bgp_show_type_normal, NULL, use_json);
}
+static void
+bgp_show_ipv6_bgp_deprecate_warning (struct vty *vty)
+{
+ vty_out (vty, "WARNING: The 'show ipv6 bgp' parse tree will be deprecated in our"
+ " next release%sPlese use 'show bgp ipv6' instead%s%s",
+ VTY_NEWLINE, VTY_NEWLINE, VTY_NEWLINE);
+}
+
/* old command */
DEFUN (show_ipv6_bgp,
show_ipv6_bgp_cmd,
"JavaScript Object Notation\n")
{
u_char use_json = (argv[0] != NULL);
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show (vty, NULL, AFI_IP6, SAFI_UNICAST, bgp_show_type_normal,
NULL, use_json);
}
"JavaScript Object Notation\n")
{
u_char use_json = (argv[1] != NULL);
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_route (vty, NULL, argv[0], AFI_IP6, SAFI_UNICAST, NULL, 0, BGP_PATH_ALL, use_json);
}
"JavaScript Object Notation\n")
{
u_char use_json = (argv[1] != NULL);
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_route (vty, NULL, argv[0], AFI_IP6, SAFI_UNICAST, NULL, 1, BGP_PATH_ALL, use_json);
}
"JavaScript Object Notation\n")
{
u_char use_json = (argv[0] != NULL);
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show (vty, NULL, AFI_IP6, SAFI_MULTICAST, bgp_show_type_normal,
NULL, use_json);
}
"JavaScript Object Notation\n")
{
u_char use_json = (argv[1] != NULL);
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_route (vty, NULL, argv[0], AFI_IP6, SAFI_MULTICAST, NULL, 0, BGP_PATH_ALL, use_json);
}
"JavaScript Object Notation\n")
{
u_char use_json = (argv[1] != NULL);
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_route (vty, NULL, argv[0], AFI_IP6, SAFI_MULTICAST, NULL, 1, BGP_PATH_ALL, use_json);
}
#endif
"Display routes matching the AS path regular expression\n"
"A regular-expression to match the BGP AS paths\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_regexp (vty, argc, argv, AFI_IP6, SAFI_UNICAST,
bgp_show_type_regexp);
}
"Display routes matching the AS path regular expression\n"
"A regular-expression to match the MBGP AS paths\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_regexp (vty, argc, argv, AFI_IP6, SAFI_MULTICAST,
bgp_show_type_regexp);
}
"Display routes matching the prefix-list\n"
"IPv6 prefix-list name\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_prefix_list (vty, argv[0], AFI_IP6, SAFI_UNICAST,
bgp_show_type_prefix_list);
}
"Display routes matching the prefix-list\n"
"IPv6 prefix-list name\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_prefix_list (vty, argv[0], AFI_IP6, SAFI_MULTICAST,
bgp_show_type_prefix_list);
}
"Display routes conforming to the filter-list\n"
"Regular expression access list name\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_filter_list (vty, argv[0], AFI_IP6, SAFI_UNICAST,
bgp_show_type_filter_list);
}
"Display routes conforming to the filter-list\n"
"Regular expression access list name\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_filter_list (vty, argv[0], AFI_IP6, SAFI_MULTICAST,
bgp_show_type_filter_list);
}
BGP_STR
"Display routes matching the communities\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show (vty, NULL, AFI_IP6, SAFI_UNICAST,
bgp_show_type_community_all, NULL, 0);
}
MBGP_STR
"Display routes matching the communities\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show (vty, NULL, AFI_IP6, SAFI_MULTICAST,
bgp_show_type_community_all, NULL, 0);
}
"Do not advertise to any peer (well-known community)\n"
"Do not export to next AS (well-known community)\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_community (vty, NULL, argc, argv, 0, AFI_IP6, SAFI_UNICAST);
}
"Do not export to next AS (well-known community)\n"
"Exact match of the communities")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_community (vty, NULL, argc, argv, 1, AFI_IP6, SAFI_UNICAST);
}
"Do not advertise to any peer (well-known community)\n"
"Do not export to next AS (well-known community)\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_community (vty, NULL, argc, argv, 0, AFI_IP6, SAFI_MULTICAST);
}
"Do not export to next AS (well-known community)\n"
"Exact match of the communities")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_community (vty, NULL, argc, argv, 1, AFI_IP6, SAFI_MULTICAST);
}
"Display routes matching the community-list\n"
"community-list name\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_community_list (vty, argv[0], 0, AFI_IP6, SAFI_UNICAST);
}
"Display routes matching the community-list\n"
"community-list name\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_community_list (vty, argv[0], 0, AFI_IP6, SAFI_MULTICAST);
}
"community-list name\n"
"Exact match of the communities\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_community_list (vty, argv[0], 1, AFI_IP6, SAFI_UNICAST);
}
"community-list name\n"
"Exact match of the communities\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_community_list (vty, argv[0], 1, AFI_IP6, SAFI_MULTICAST);
}
#endif /* HAVE_IPV6 */
"IPv6 prefix <network>/<length>, e.g., 3ffe::/16\n"
"Display route and more specific routes\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_prefix_longer (vty, argv[0], AFI_IP6, SAFI_UNICAST,
bgp_show_type_prefix_longer);
}
"IPv6 prefix <network>/<length>, e.g., 3ffe::/16\n"
"Display route and more specific routes\n")
{
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_prefix_longer (vty, argv[0], AFI_IP6, SAFI_MULTICAST,
bgp_show_type_prefix_longer);
}
if (! peer)
return CMD_WARNING;
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return peer_adj_routes (vty, peer, AFI_IP6, SAFI_MULTICAST, 0, NULL, use_json);
}
#endif /* HAVE_IPV6 */
if (! peer)
return CMD_WARNING;
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return peer_adj_routes (vty, peer, AFI_IP6, SAFI_MULTICAST, 1, NULL,use_json);
}
if (! peer)
return CMD_WARNING;
+ bgp_show_ipv6_bgp_deprecate_warning(vty);
return bgp_show_neighbor_route (vty, peer, AFI_IP6, SAFI_MULTICAST,
bgp_show_type_neighbor, use_json);
}
install_element (BGP_IPV4_NODE, &bgp_damp_set3_cmd);
install_element (BGP_IPV4_NODE, &bgp_damp_unset_cmd);
install_element (BGP_IPV4_NODE, &bgp_damp_unset2_cmd);
-
- /* Deprecated AS-Pathlimit commands */
- install_element (BGP_NODE, &bgp_network_ttl_cmd);
- install_element (BGP_NODE, &bgp_network_mask_ttl_cmd);
- install_element (BGP_NODE, &bgp_network_mask_natural_ttl_cmd);
- install_element (BGP_NODE, &bgp_network_backdoor_ttl_cmd);
- install_element (BGP_NODE, &bgp_network_mask_backdoor_ttl_cmd);
- install_element (BGP_NODE, &bgp_network_mask_natural_backdoor_ttl_cmd);
-
- install_element (BGP_NODE, &no_bgp_network_ttl_cmd);
- install_element (BGP_NODE, &no_bgp_network_mask_ttl_cmd);
- install_element (BGP_NODE, &no_bgp_network_mask_natural_ttl_cmd);
- install_element (BGP_NODE, &no_bgp_network_backdoor_ttl_cmd);
- install_element (BGP_NODE, &no_bgp_network_mask_backdoor_ttl_cmd);
- install_element (BGP_NODE, &no_bgp_network_mask_natural_backdoor_ttl_cmd);
-
- install_element (BGP_IPV4_NODE, &bgp_network_ttl_cmd);
- install_element (BGP_IPV4_NODE, &bgp_network_mask_ttl_cmd);
- install_element (BGP_IPV4_NODE, &bgp_network_mask_natural_ttl_cmd);
- install_element (BGP_IPV4_NODE, &bgp_network_backdoor_ttl_cmd);
- install_element (BGP_IPV4_NODE, &bgp_network_mask_backdoor_ttl_cmd);
- install_element (BGP_IPV4_NODE, &bgp_network_mask_natural_backdoor_ttl_cmd);
-
- install_element (BGP_IPV4_NODE, &no_bgp_network_ttl_cmd);
- install_element (BGP_IPV4_NODE, &no_bgp_network_mask_ttl_cmd);
- install_element (BGP_IPV4_NODE, &no_bgp_network_mask_natural_ttl_cmd);
- install_element (BGP_IPV4_NODE, &no_bgp_network_backdoor_ttl_cmd);
- install_element (BGP_IPV4_NODE, &no_bgp_network_mask_backdoor_ttl_cmd);
- install_element (BGP_IPV4_NODE, &no_bgp_network_mask_natural_backdoor_ttl_cmd);
-
- install_element (BGP_IPV4M_NODE, &bgp_network_ttl_cmd);
- install_element (BGP_IPV4M_NODE, &bgp_network_mask_ttl_cmd);
- install_element (BGP_IPV4M_NODE, &bgp_network_mask_natural_ttl_cmd);
- install_element (BGP_IPV4M_NODE, &bgp_network_backdoor_ttl_cmd);
- install_element (BGP_IPV4M_NODE, &bgp_network_mask_backdoor_ttl_cmd);
- install_element (BGP_IPV4M_NODE, &bgp_network_mask_natural_backdoor_ttl_cmd);
-
- install_element (BGP_IPV4M_NODE, &no_bgp_network_ttl_cmd);
- install_element (BGP_IPV4M_NODE, &no_bgp_network_mask_ttl_cmd);
- install_element (BGP_IPV4M_NODE, &no_bgp_network_mask_natural_ttl_cmd);
- install_element (BGP_IPV4M_NODE, &no_bgp_network_backdoor_ttl_cmd);
- install_element (BGP_IPV4M_NODE, &no_bgp_network_mask_backdoor_ttl_cmd);
- install_element (BGP_IPV4M_NODE, &no_bgp_network_mask_natural_backdoor_ttl_cmd);
-
-#ifdef HAVE_IPV6
- install_element (BGP_IPV6_NODE, &ipv6_bgp_network_ttl_cmd);
- install_element (BGP_IPV6_NODE, &no_ipv6_bgp_network_ttl_cmd);
-#endif
}
void
return bgp_route_set_add (vty, vty->index, "ip next-hop", "unchanged");
}
-DEFUN_DEPRECATED (no_set_ip_nexthop_peer,
- no_set_ip_nexthop_peer_cmd,
- "no set ip next-hop peer-address",
- NO_STR
- SET_STR
- IP_STR
- "Next hop address\n"
- "Use peer address (for BGP only)\n")
-{
- return bgp_route_set_delete (vty, vty->index, "ip next-hop", NULL);
-}
-
-
DEFUN (no_set_ip_nexthop,
no_set_ip_nexthop_cmd,
"no set ip next-hop",
"Next hop address\n"
"IP address of next hop\n")
+ALIAS (no_set_ip_nexthop,
+ no_set_ip_nexthop_peer_cmd,
+ "no set ip next-hop peer-address",
+ NO_STR
+ SET_STR
+ IP_STR
+ "Next hop address\n"
+ "Use peer address (for BGP only)\n")
+
DEFUN (set_metric,
set_metric_cmd,
"set metric <0-4294967295>",
"BGP originator ID attribute\n"
"IP address of originator\n")
-DEFUN_DEPRECATED (set_pathlimit_ttl,
- set_pathlimit_ttl_cmd,
- "set pathlimit ttl <1-255>",
- SET_STR
- "BGP AS-Pathlimit attribute\n"
- "Set AS-Path Hop-count TTL\n")
-{
- return CMD_SUCCESS;
-}
-
-DEFUN_DEPRECATED (no_set_pathlimit_ttl,
- no_set_pathlimit_ttl_cmd,
- "no set pathlimit ttl",
- NO_STR
- SET_STR
- "BGP AS-Pathlimit attribute\n"
- "Set AS-Path Hop-count TTL\n")
-{
- return CMD_SUCCESS;
-}
-
-ALIAS (no_set_pathlimit_ttl,
- no_set_pathlimit_ttl_val_cmd,
- "no set pathlimit ttl <1-255>",
- NO_STR
- MATCH_STR
- "BGP AS-Pathlimit attribute\n"
- "Set AS-Path Hop-count TTL\n")
-
-DEFUN_DEPRECATED (match_pathlimit_as,
- match_pathlimit_as_cmd,
- "match pathlimit as <1-65535>",
- MATCH_STR
- "BGP AS-Pathlimit attribute\n"
- "Match Pathlimit AS number\n")
-{
- return CMD_SUCCESS;
-}
-
-DEFUN_DEPRECATED (no_match_pathlimit_as,
- no_match_pathlimit_as_cmd,
- "no match pathlimit as",
- NO_STR
- MATCH_STR
- "BGP AS-Pathlimit attribute\n"
- "Match Pathlimit AS number\n")
-{
- return CMD_SUCCESS;
-}
-
-ALIAS (no_match_pathlimit_as,
- no_match_pathlimit_as_val_cmd,
- "no match pathlimit as <1-65535>",
- NO_STR
- MATCH_STR
- "BGP AS-Pathlimit attribute\n"
- "Match Pathlimit ASN\n")
-
-
/* Initialization of route map. */
void
bgp_route_map_init (void)
install_element (RMAP_NODE, &set_ip_nexthop_unchanged_cmd);
install_element (RMAP_NODE, &no_set_ip_nexthop_cmd);
install_element (RMAP_NODE, &no_set_ip_nexthop_val_cmd);
+ install_element (RMAP_NODE, &no_set_ip_nexthop_peer_cmd);
install_element (RMAP_NODE, &set_local_pref_cmd);
install_element (RMAP_NODE, &no_set_local_pref_cmd);
install_element (RMAP_NODE, &no_set_local_pref_val_cmd);
install_element (RMAP_NODE, &set_ipv6_nexthop_peer_cmd);
install_element (RMAP_NODE, &no_set_ipv6_nexthop_peer_cmd);
#endif /* HAVE_IPV6 */
-
- /* AS-Pathlimit: functionality removed, commands kept for
- * compatibility.
- */
- install_element (RMAP_NODE, &set_pathlimit_ttl_cmd);
- install_element (RMAP_NODE, &no_set_pathlimit_ttl_cmd);
- install_element (RMAP_NODE, &no_set_pathlimit_ttl_val_cmd);
- install_element (RMAP_NODE, &match_pathlimit_as_cmd);
- install_element (RMAP_NODE, &no_match_pathlimit_as_cmd);
- install_element (RMAP_NODE, &no_match_pathlimit_as_val_cmd);
}
void
return CMD_SUCCESS;
}
-DEFUN_DEPRECATED (neighbor_version,
- neighbor_version_cmd,
- NEIGHBOR_CMD "version (4|4-)",
- NEIGHBOR_STR
- NEIGHBOR_ADDR_STR
- "Set the BGP version to match a neighbor\n"
- "Neighbor's BGP version\n")
-{
- return CMD_SUCCESS;
-}
-
/* "router bgp" commands. */
DEFUN (router_bgp,
router_bgp_cmd,
return peer_flag_unset_vty (vty, argv[0], PEER_FLAG_SHUTDOWN);
}
-/* Deprecated neighbor capability route-refresh. */
-DEFUN_DEPRECATED (neighbor_capability_route_refresh,
- neighbor_capability_route_refresh_cmd,
- NEIGHBOR_CMD2 "capability route-refresh",
- NEIGHBOR_STR
- NEIGHBOR_ADDR_STR2
- "Advertise capability to the peer\n"
- "Advertise route-refresh capability to this neighbor\n")
-{
- return CMD_SUCCESS;
-}
-
-DEFUN_DEPRECATED (no_neighbor_capability_route_refresh,
- no_neighbor_capability_route_refresh_cmd,
- NO_NEIGHBOR_CMD2 "capability route-refresh",
- NO_STR
- NEIGHBOR_STR
- NEIGHBOR_ADDR_STR2
- "Advertise capability to the peer\n"
- "Advertise route-refresh capability to this neighbor\n")
-{
- return CMD_SUCCESS;
-}
-
/* neighbor capability dynamic. */
DEFUN (neighbor_capability_dynamic,
neighbor_capability_dynamic_cmd,
"As-path attribute\n"
"Nexthop attribute\n")
-/* For old version Zebra compatibility. */
-DEFUN_DEPRECATED (neighbor_transparent_as,
- neighbor_transparent_as_cmd,
- NEIGHBOR_CMD "transparent-as",
- NEIGHBOR_STR
- NEIGHBOR_ADDR_STR
- "Do not append my AS number even peer is EBGP peer\n")
-{
- return peer_af_flag_set_vty (vty, argv[0], bgp_node_afi (vty),
- bgp_node_safi (vty),
- PEER_FLAG_AS_PATH_UNCHANGED);
-}
-
-DEFUN_DEPRECATED (neighbor_transparent_nexthop,
- neighbor_transparent_nexthop_cmd,
- NEIGHBOR_CMD "transparent-nexthop",
- NEIGHBOR_STR
- NEIGHBOR_ADDR_STR
- "Do not change nexthop even peer is EBGP peer\n")
-{
- return peer_af_flag_set_vty (vty, argv[0], bgp_node_afi (vty),
- bgp_node_safi (vty),
- PEER_FLAG_NEXTHOP_UNCHANGED);
-}
-
/* EBGP multihop configuration. */
static int
peer_ebgp_multihop_set_vty (struct vty *vty, const char *ip_str,
install_element (BGP_IPV6_NODE, &neighbor_nexthop_local_unchanged_cmd);
install_element (BGP_IPV6_NODE, &no_neighbor_nexthop_local_unchanged_cmd);
- /* "transparent-as" and "transparent-nexthop" for old version
- compatibility. */
- install_element (BGP_NODE, &neighbor_transparent_as_cmd);
- install_element (BGP_NODE, &neighbor_transparent_nexthop_cmd);
-
/* "neighbor next-hop-self" commands. */
install_element (BGP_NODE, &neighbor_nexthop_self_cmd);
install_element (BGP_NODE, &no_neighbor_nexthop_self_cmd);
install_element (BGP_NODE, &neighbor_shutdown_cmd);
install_element (BGP_NODE, &no_neighbor_shutdown_cmd);
- /* Deprecated "neighbor capability route-refresh" commands.*/
- install_element (BGP_NODE, &neighbor_capability_route_refresh_cmd);
- install_element (BGP_NODE, &no_neighbor_capability_route_refresh_cmd);
-
/* "neighbor capability extended-nexthop" commands.*/
install_element (BGP_NODE, &neighbor_capability_enhe_cmd);
install_element (BGP_NODE, &no_neighbor_capability_enhe_cmd);
install_element (BGP_NODE, &no_neighbor_advertise_interval_cmd);
install_element (BGP_NODE, &no_neighbor_advertise_interval_val_cmd);
- /* "neighbor version" commands. */
- install_element (BGP_NODE, &neighbor_version_cmd);
-
/* "neighbor interface" commands. */
install_element (BGP_NODE, &neighbor_interface_cmd);
install_element (BGP_NODE, &no_neighbor_interface_cmd);