summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLou Berger <lberger@labn.net>2016-01-12 13:41:56 -0500
committerPaul Jakma <paul.jakma@hpe.com>2016-02-26 14:11:43 +0000
commit13c378d96a57017f5995b2e0df46cfc31123f0e8 (patch)
tree6b4669bf22264a816ef451f3058cd8f59872eab5 /lib
parent9da04bca0e994ec92b9242159bf27d89c6743354 (diff)
downloadquagga-13c378d96a57017f5995b2e0df46cfc31123f0e8.tar.bz2
quagga-13c378d96a57017f5995b2e0df46cfc31123f0e8.tar.xz
bgpd, lib, vtysh: hook up bgp VPNv6 CLI node
Signed-off-by: Lou Berger <lberger@labn.net> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/command.c5
-rw-r--r--lib/command.h1
-rw-r--r--lib/vty.c1
3 files changed, 6 insertions, 1 deletions
diff --git a/lib/command.c b/lib/command.c
index aee7d06a..dbcef5ee 100644
--- a/lib/command.c
+++ b/lib/command.c
@@ -2590,6 +2590,7 @@ node_parent ( enum node_type node )
switch (node)
{
case BGP_VPNV4_NODE:
+ case BGP_VPNV6_NODE:
case BGP_IPV4_NODE:
case BGP_IPV4M_NODE:
case BGP_IPV6_NODE:
@@ -2957,9 +2958,10 @@ DEFUN (config_exit,
case VTY_NODE:
vty->node = CONFIG_NODE;
break;
- case BGP_VPNV4_NODE:
case BGP_IPV4_NODE:
case BGP_IPV4M_NODE:
+ case BGP_VPNV4_NODE:
+ case BGP_VPNV6_NODE:
case BGP_IPV6_NODE:
case BGP_IPV6M_NODE:
vty->node = BGP_NODE;
@@ -3000,6 +3002,7 @@ DEFUN (config_end,
case BABEL_NODE:
case BGP_NODE:
case BGP_VPNV4_NODE:
+ case BGP_VPNV6_NODE:
case BGP_IPV4_NODE:
case BGP_IPV4M_NODE:
case BGP_IPV6_NODE:
diff --git a/lib/command.h b/lib/command.h
index afc2e3f2..b5c73abe 100644
--- a/lib/command.h
+++ b/lib/command.h
@@ -82,6 +82,7 @@ enum node_type
BABEL_NODE, /* Babel protocol mode node. */
BGP_NODE, /* BGP protocol mode which includes BGP4+ */
BGP_VPNV4_NODE, /* BGP MPLS-VPN PE exchange. */
+ BGP_VPNV6_NODE, /* BGP MPLS-VPN PE exchange. */
BGP_IPV4_NODE, /* BGP IPv4 unicast address family. */
BGP_IPV4M_NODE, /* BGP IPv4 multicast address family. */
BGP_IPV6_NODE, /* BGP IPv6 address family */
diff --git a/lib/vty.c b/lib/vty.c
index 9f4d8faf..f695b722 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -737,6 +737,7 @@ vty_end_config (struct vty *vty)
case BABEL_NODE:
case BGP_NODE:
case BGP_VPNV4_NODE:
+ case BGP_VPNV6_NODE:
case BGP_IPV4_NODE:
case BGP_IPV4M_NODE:
case BGP_IPV6_NODE: