From 051621bf3aecbe0fd6292a3b4ee41ab42169eea1 Mon Sep 17 00:00:00 2001 From: ISHIDA Wataru Date: Wed, 30 Mar 2016 17:57:56 +0900 Subject: *: support draft-ietf-idr-flowspec-l2vpn-03 $ gobgp g ri add -a l2vpn-flowspec match destination-mac 01:01:01:01:01:01 ether-type ipv4 vid 10 cos 20 $ gobgp g ri add -a l2vpn-flowspec match source-mac 01:01:01:01:01:01 ether-type arp inner-vid 20 inner-cos 20 Signed-off-by: ISHIDA Wataru --- config/bgp_configs.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'config/bgp_configs.go') diff --git a/config/bgp_configs.go b/config/bgp_configs.go index b5e18c5b..4fa29bd4 100644 --- a/config/bgp_configs.go +++ b/config/bgp_configs.go @@ -234,6 +234,7 @@ const ( AFI_SAFI_TYPE_L3VPN_IPV4_FLOWSPEC AfiSafiType = "l3vpn-ipv4-flowspec" AFI_SAFI_TYPE_IPV6_FLOWSPEC AfiSafiType = "ipv6-flowspec" AFI_SAFI_TYPE_L3VPN_IPV6_FLOWSPEC AfiSafiType = "l3vpn-ipv6-flowspec" + AFI_SAFI_TYPE_L2VPN_FLOWSPEC AfiSafiType = "l2vpn-flowspec" AFI_SAFI_TYPE_OPAQUE AfiSafiType = "opaque" ) @@ -256,7 +257,8 @@ var AfiSafiTypeToIntMap = map[AfiSafiType]int{ AFI_SAFI_TYPE_L3VPN_IPV4_FLOWSPEC: 15, AFI_SAFI_TYPE_IPV6_FLOWSPEC: 16, AFI_SAFI_TYPE_L3VPN_IPV6_FLOWSPEC: 17, - AFI_SAFI_TYPE_OPAQUE: 18, + AFI_SAFI_TYPE_L2VPN_FLOWSPEC: 18, + AFI_SAFI_TYPE_OPAQUE: 19, } func (v AfiSafiType) ToInt() int { @@ -286,7 +288,8 @@ var IntToAfiSafiTypeMap = map[int]AfiSafiType{ 15: AFI_SAFI_TYPE_L3VPN_IPV4_FLOWSPEC, 16: AFI_SAFI_TYPE_IPV6_FLOWSPEC, 17: AFI_SAFI_TYPE_L3VPN_IPV6_FLOWSPEC, - 18: AFI_SAFI_TYPE_OPAQUE, + 18: AFI_SAFI_TYPE_L2VPN_FLOWSPEC, + 19: AFI_SAFI_TYPE_OPAQUE, } func (v AfiSafiType) Validate() error { -- cgit v1.2.3