case BGP_IPV6_NODE:
case BGP_IPV6M_NODE:
case BGP_VPNV6_NODE:
- case BGP_ENCAPV6_NODE:
afi = AFI_IP6;
break;
case BGP_EVPN_NODE:
safi_t safi;
switch (vty->node)
{
- case BGP_ENCAP_NODE:
- case BGP_ENCAPV6_NODE:
- safi = SAFI_ENCAP;
- break;
case BGP_VPNV4_NODE:
case BGP_VPNV6_NODE:
safi = SAFI_MPLS_VPN;
DEFUN_NOSH (address_family_ipv4_safi,
address_family_ipv4_safi_cmd,
- "address-family ipv4 [<unicast|multicast|vpn|encap>]",
+ "address-family ipv4 [<unicast|multicast|vpn>]",
"Enter Address Family command mode\n"
"Address Family\n"
BGP_SAFI_HELP_STR)
case SAFI_MULTICAST:
vty->node = BGP_IPV4M_NODE;
break;
- case SAFI_ENCAP:
- vty->node = BGP_ENCAP_NODE;
- break;
case SAFI_MPLS_VPN:
vty->node = BGP_VPNV4_NODE;
break;
DEFUN_NOSH (address_family_ipv6_safi,
address_family_ipv6_safi_cmd,
- "address-family ipv6 [<unicast|multicast|vpn|encap>]",
+ "address-family ipv6 [<unicast|multicast|vpn>]",
"Enter Address Family command mode\n"
"Address Family\n"
BGP_SAFI_HELP_STR)
case SAFI_MULTICAST:
vty->node = BGP_IPV6M_NODE;
break;
- case SAFI_ENCAP:
- vty->node = BGP_ENCAPV6_NODE;
- break;
case SAFI_MPLS_VPN:
vty->node = BGP_VPNV6_NODE;
break;
}
#endif
-DEFUN_NOSH (address_family_encap,
- address_family_encap_cmd,
- "address-family <encap|encapv4>",
- "Enter Address Family command mode\n"
- "Address Family\n"
- "Address Family\n")
-{
- vty->node = BGP_ENCAP_NODE;
- return CMD_SUCCESS;
-}
-
-
-DEFUN_NOSH (address_family_encapv6,
- address_family_encapv6_cmd,
- "address-family encapv6",
- "Enter Address Family command mode\n"
- "Address Family\n")
-{
- vty->node = BGP_ENCAPV6_NODE;
- return CMD_SUCCESS;
-}
-
DEFUN_NOSH (address_family_evpn,
address_family_evpn_cmd,
"address-family <l2vpn evpn>",
|| vty->node == BGP_IPV6_NODE
|| vty->node == BGP_IPV6M_NODE
|| vty->node == BGP_VPNV6_NODE
- || vty->node == BGP_ENCAP_NODE
- || vty->node == BGP_ENCAPV6_NODE
|| vty->node == BGP_EVPN_NODE)
vty->node = BGP_NODE;
return CMD_SUCCESS;
1
};
-static struct cmd_node bgp_encap_node =
-{
- BGP_ENCAP_NODE,
- "%s(config-router-af-encap)# ",
- 1
-};
-
-static struct cmd_node bgp_encapv6_node =
-{
- BGP_ENCAPV6_NODE,
- "%s(config-router-af-encapv6)# ",
- 1
-};
-
static struct cmd_node bgp_evpn_node =
{
BGP_EVPN_NODE,
install_node (&bgp_ipv6_multicast_node, NULL);
install_node (&bgp_vpnv4_node, NULL);
install_node (&bgp_vpnv6_node, NULL);
- install_node (&bgp_encap_node, NULL);
- install_node (&bgp_encapv6_node, NULL);
install_node (&bgp_evpn_node, NULL);
/* Install default VTY commands to new nodes. */
install_default (BGP_IPV6M_NODE);
install_default (BGP_VPNV4_NODE);
install_default (BGP_VPNV6_NODE);
- install_default (BGP_ENCAP_NODE);
- install_default (BGP_ENCAPV6_NODE);
install_default (BGP_EVPN_NODE);
/* "bgp multiple-instance" commands. */
install_element (BGP_IPV6M_NODE, &neighbor_activate_cmd);
install_element (BGP_VPNV4_NODE, &neighbor_activate_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_activate_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_activate_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_activate_cmd);
install_element (BGP_EVPN_NODE, &neighbor_activate_cmd);
/* "no neighbor activate" commands. */
install_element (BGP_IPV6M_NODE, &no_neighbor_activate_cmd);
install_element (BGP_VPNV4_NODE, &no_neighbor_activate_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_activate_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_activate_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_activate_cmd);
install_element (BGP_EVPN_NODE, &no_neighbor_activate_cmd);
/* "neighbor peer-group" set commands.
install_element (BGP_IPV6M_NODE, &neighbor_set_peer_group_cmd);
install_element (BGP_VPNV4_NODE, &neighbor_set_peer_group_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_set_peer_group_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_set_peer_group_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_set_peer_group_cmd);
/* "no neighbor peer-group unset" commands. */
install_element (BGP_NODE, &no_neighbor_set_peer_group_cmd);
install_element (BGP_IPV6M_NODE, &no_neighbor_set_peer_group_cmd);
install_element (BGP_VPNV4_NODE, &no_neighbor_set_peer_group_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_set_peer_group_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_set_peer_group_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_set_peer_group_cmd);
/* "neighbor softreconfiguration inbound" commands.*/
install_element (BGP_NODE, &neighbor_soft_reconfiguration_cmd);
install_element (BGP_VPNV4_NODE, &no_neighbor_soft_reconfiguration_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_soft_reconfiguration_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_soft_reconfiguration_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_soft_reconfiguration_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_soft_reconfiguration_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_soft_reconfiguration_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_soft_reconfiguration_cmd);
/* "neighbor attribute-unchanged" commands. */
install_element (BGP_NODE, &neighbor_attr_unchanged_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_attr_unchanged_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_attr_unchanged_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_attr_unchanged_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_attr_unchanged_cmd);
-
- install_element (BGP_ENCAPV6_NODE, &neighbor_attr_unchanged_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_attr_unchanged_cmd);
-
install_element (BGP_EVPN_NODE, &neighbor_attr_unchanged_cmd);
install_element (BGP_EVPN_NODE, &no_neighbor_attr_unchanged_cmd);
install_element (BGP_VPNV4_NODE, &no_neighbor_nexthop_self_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_nexthop_self_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_nexthop_self_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_nexthop_self_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_nexthop_self_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_nexthop_self_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_nexthop_self_cmd);
/* "neighbor next-hop-self force" commands. */
install_element (BGP_NODE, &neighbor_nexthop_self_force_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_remove_private_as_replace_as_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_remove_private_as_all_replace_as_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_remove_private_as_all_replace_as_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_remove_private_as_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_remove_private_as_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_remove_private_as_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_remove_private_as_cmd);
/* "neighbor send-community" commands.*/
install_element (BGP_NODE, &neighbor_send_community_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_send_community_type_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_send_community_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_send_community_type_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_send_community_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_send_community_type_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_send_community_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_send_community_type_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_send_community_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_send_community_type_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_send_community_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_send_community_type_cmd);
/* "neighbor route-reflector" commands.*/
install_element (BGP_NODE, &neighbor_route_reflector_client_cmd);
install_element (BGP_VPNV4_NODE, &no_neighbor_route_reflector_client_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_route_reflector_client_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_route_reflector_client_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_route_reflector_client_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_route_reflector_client_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_route_reflector_client_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_route_reflector_client_cmd);
/* "neighbor route-server" commands.*/
install_element (BGP_NODE, &neighbor_route_server_client_cmd);
install_element (BGP_VPNV4_NODE, &no_neighbor_route_server_client_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_route_server_client_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_route_server_client_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_route_server_client_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_route_server_client_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_route_server_client_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_route_server_client_cmd);
/* "neighbor addpath-tx-all-paths" commands.*/
install_element (BGP_NODE, &neighbor_addpath_tx_all_paths_cmd);
install_element (BGP_VPNV4_NODE, &no_neighbor_weight_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_weight_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_weight_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_weight_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_weight_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_weight_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_weight_cmd);
/* "neighbor override-capability" commands. */
install_element (BGP_NODE, &neighbor_override_capability_cmd);
install_element (BGP_VPNV4_NODE, &no_neighbor_distribute_list_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_distribute_list_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_distribute_list_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_distribute_list_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_distribute_list_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_distribute_list_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_distribute_list_cmd);
/* "neighbor prefix-list" commands. */
install_element (BGP_NODE, &neighbor_prefix_list_cmd);
install_element (BGP_VPNV4_NODE, &no_neighbor_prefix_list_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_prefix_list_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_prefix_list_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_prefix_list_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_prefix_list_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_prefix_list_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_prefix_list_cmd);
/* "neighbor filter-list" commands. */
install_element (BGP_NODE, &neighbor_filter_list_cmd);
install_element (BGP_VPNV4_NODE, &no_neighbor_filter_list_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_filter_list_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_filter_list_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_filter_list_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_filter_list_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_filter_list_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_filter_list_cmd);
/* "neighbor route-map" commands. */
install_element (BGP_NODE, &neighbor_route_map_cmd);
install_element (BGP_VPNV4_NODE, &no_neighbor_route_map_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_route_map_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_route_map_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_route_map_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_route_map_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_route_map_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_route_map_cmd);
/* "neighbor unsuppress-map" commands. */
install_element (BGP_NODE, &neighbor_unsuppress_map_cmd);
install_element (BGP_VPNV4_NODE, &no_neighbor_unsuppress_map_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_unsuppress_map_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_unsuppress_map_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_unsuppress_map_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_unsuppress_map_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_unsuppress_map_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_unsuppress_map_cmd);
/* "neighbor maximum-prefix" commands. */
install_element (BGP_NODE, &neighbor_maximum_prefix_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_maximum_prefix_threshold_restart_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_maximum_prefix_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_maximum_prefix_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_maximum_prefix_threshold_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_maximum_prefix_warning_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_maximum_prefix_threshold_warning_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_maximum_prefix_restart_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_maximum_prefix_threshold_restart_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_maximum_prefix_cmd);
-
- install_element (BGP_ENCAPV6_NODE, &neighbor_maximum_prefix_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_maximum_prefix_threshold_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_maximum_prefix_warning_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_maximum_prefix_threshold_warning_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_maximum_prefix_restart_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_maximum_prefix_threshold_restart_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_maximum_prefix_cmd);
-
/* "neighbor allowas-in" */
install_element (BGP_NODE, &neighbor_allowas_in_cmd);
install_element (BGP_NODE, &no_neighbor_allowas_in_cmd);
install_element (BGP_VPNV4_NODE, &no_neighbor_allowas_in_cmd);
install_element (BGP_VPNV6_NODE, &neighbor_allowas_in_cmd);
install_element (BGP_VPNV6_NODE, &no_neighbor_allowas_in_cmd);
- install_element (BGP_ENCAP_NODE, &neighbor_allowas_in_cmd);
- install_element (BGP_ENCAP_NODE, &no_neighbor_allowas_in_cmd);
- install_element (BGP_ENCAPV6_NODE, &neighbor_allowas_in_cmd);
- install_element (BGP_ENCAPV6_NODE, &no_neighbor_allowas_in_cmd);
/* address-family commands. */
install_element (BGP_NODE, &address_family_ipv4_safi_cmd);
install_element (BGP_NODE, &address_family_vpnv6_cmd);
#endif /* KEEP_OLD_VPN_COMMANDS */
- install_element (BGP_NODE, &address_family_encap_cmd);
- install_element (BGP_NODE, &address_family_encapv6_cmd);
-
install_element (BGP_NODE, &address_family_evpn_cmd);
/* "exit-address-family" command. */
install_element (BGP_IPV6M_NODE, &exit_address_family_cmd);
install_element (BGP_VPNV4_NODE, &exit_address_family_cmd);
install_element (BGP_VPNV6_NODE, &exit_address_family_cmd);
- install_element (BGP_ENCAP_NODE, &exit_address_family_cmd);
- install_element (BGP_ENCAPV6_NODE, &exit_address_family_cmd);
install_element (BGP_EVPN_NODE, &exit_address_family_cmd);
/* "clear ip bgp commands" */