summaryrefslogtreecommitdiff
path: root/lib/command.c
diff options
context:
space:
mode:
authorG. Paul Ziemba <paulz@labn.net>2018-03-16 11:11:37 -0700
committerG. Paul Ziemba <paulz@labn.net>2018-03-19 22:13:43 -0700
commitb9c7bc5ab0ee57f4052b625c0e76663f50c1249f (patch)
tree72a2ec7ecf75be31dc6bf7db63ae29446e9d760e /lib/command.c
parent46fe6fd55742c0fb6b2261afac8674a5f7d1979e (diff)
bgpd: new vpn-policy CLI
PR #1739 added code to leak routes between (default VRF) VPN safi and unicast RIBs in any VRF. That set of changes included temporary CLI including vpn-policy blocks to specify RD/RT/label/&c. After considerable discussion, we arrived at a consensus CLI shown below. The code of this PR implements the vpn-specific parts of this syntax: router bgp <as> [vrf <FOO>] address-family <afi> unicast rd (vpn|evpn) export (AS:NN | IP:nn) label (vpn|evpn) export (0..1048575) rt (vpn|evpn) (import|export|both) RTLIST... nexthop vpn (import|export) (A.B.C.D | X:X::X:X) route-map (vpn|evpn|vrf NAME) (import|export) MAP [no] import|export [vpn|evpn|evpn8] [no] import|export vrf NAME User documentation of the vpn-specific parts of the above syntax is in PR #1937 Signed-off-by: G. Paul Ziemba <paulz@labn.net>
Diffstat (limited to 'lib/command.c')
-rw-r--r--lib/command.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/command.c b/lib/command.c
index b289cdd7a3..5697c1d812 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -87,8 +87,6 @@ const char *node_names[] = {
"bgp vnc l2", // BGP_VNC_L2_GROUP_NODE,
"rfp defaults", // RFP_DEFAULTS_NODE,
"bgp evpn", // BGP_EVPN_NODE,
- "bgp vpn policy ipv4", // BGP_VPNPOLICY_IPV4_NODE
- "bgp vpn policy ipv6", // BGP_VPNPOLICY_IPV6_NODE
"ospf", // OSPF_NODE,
"ospf6", // OSPF6_NODE,
"ldp", // LDP_NODE,
@@ -951,8 +949,6 @@ enum node_type node_parent(enum node_type node)
case BGP_VPNV4_NODE:
case BGP_VPNV6_NODE:
case BGP_VRF_POLICY_NODE:
- case BGP_VPNPOLICY_IPV4_NODE:
- case BGP_VPNPOLICY_IPV6_NODE:
case BGP_VNC_DEFAULTS_NODE:
case BGP_VNC_NVE_GROUP_NODE:
case BGP_VNC_L2_GROUP_NODE:
@@ -1323,8 +1319,6 @@ void cmd_exit(struct vty *vty)
case BGP_VPNV4_NODE:
case BGP_VPNV6_NODE:
case BGP_VRF_POLICY_NODE:
- case BGP_VPNPOLICY_IPV4_NODE:
- case BGP_VPNPOLICY_IPV6_NODE:
case BGP_VNC_DEFAULTS_NODE:
case BGP_VNC_NVE_GROUP_NODE:
case BGP_VNC_L2_GROUP_NODE:
@@ -1395,8 +1389,6 @@ DEFUN (config_end,
case BABEL_NODE:
case BGP_NODE:
case BGP_VRF_POLICY_NODE:
- case BGP_VPNPOLICY_IPV4_NODE:
- case BGP_VPNPOLICY_IPV6_NODE:
case BGP_VNC_DEFAULTS_NODE:
case BGP_VNC_NVE_GROUP_NODE:
case BGP_VNC_L2_GROUP_NODE: