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>
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index c3c0dba..d9c32ce 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -5286,10 +5286,14 @@
}
else if (afi == AFI_IP6)
{
- vty_out (vty, "ipv6");
-
- if (safi == SAFI_MULTICAST)
- vty_out (vty, " multicast");
+ if (safi == SAFI_MPLS_VPN)
+ vty_out (vty, "vpnv6");
+ else
+ {
+ vty_out (vty, "ipv6");
+ if (safi == SAFI_MULTICAST)
+ vty_out (vty, " multicast");
+ }
}
vty_out (vty, "%s", VTY_NEWLINE);
@@ -5531,6 +5535,9 @@
/* IPv6 multicast configuration. */
write += bgp_config_write_family (vty, bgp, AFI_IP6, SAFI_MULTICAST);
+ /* IPv6 VPN configuration. */
+ write += bgp_config_write_family (vty, bgp, AFI_IP6, SAFI_MPLS_VPN);
+
write++;
}
return write;