]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: add new BGP VPN policy command node
authorG. Paul Ziemba <paulz@labn.net>
Fri, 9 Mar 2018 15:45:50 +0000 (10:45 -0500)
committerLou Berger <lberger@labn.net>
Fri, 9 Mar 2018 21:40:37 +0000 (16:40 -0500)
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
lib/command.c
lib/command.h

index 5697c1d812b01d6baff6b181c8cafab7c9d4489a..b289cdd7a3cba562760fb138728833ec00153f0b 100644 (file)
@@ -87,6 +87,8 @@ 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,
@@ -949,6 +951,8 @@ 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:
@@ -1319,6 +1323,8 @@ 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:
@@ -1389,6 +1395,8 @@ 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:
index 0febf903a3007ec946f34a5969766a0438f6075b..b0d0482c4e28f718e370610dd3e45d0842c54065 100644 (file)
@@ -110,6 +110,8 @@ enum node_type {
        BGP_VNC_L2_GROUP_NODE,  /* BGP VNC L2 group */
        RFP_DEFAULTS_NODE,      /* RFP defaults node */
        BGP_EVPN_NODE,          /* BGP EVPN node. */
+        BGP_VPNPOLICY_IPV4_NODE,/* BGP VPN IPv6 policy */
+        BGP_VPNPOLICY_IPV6_NODE,/* BGP VPN IPv6 policy */
        OSPF_NODE,              /* OSPF protocol mode */
        OSPF6_NODE,             /* OSPF protocol for IPv6 mode */
        LDP_NODE,               /* LDP protocol mode */