diff options
author | Artur Makutunowicz <arma@linkedin.com> | 2019-01-17 10:28:23 -0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2019-01-26 12:40:45 +0900 |
commit | 192480fc7127ce0f266407cecceb00703807bbca (patch) | |
tree | 7f45576e8a12259db5d3a257180db38849abc932 /internal/pkg/config/bgp_configs.go | |
parent | 526bd67f5de4cf361aaab2d10456e5113899ca54 (diff) |
Add experimental BGP-LS feature
Diffstat (limited to 'internal/pkg/config/bgp_configs.go')
-rw-r--r-- | internal/pkg/config/bgp_configs.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/pkg/config/bgp_configs.go b/internal/pkg/config/bgp_configs.go index 0833e240..7a533b56 100644 --- a/internal/pkg/config/bgp_configs.go +++ b/internal/pkg/config/bgp_configs.go @@ -261,6 +261,7 @@ const ( AFI_SAFI_TYPE_L3VPN_IPV6_FLOWSPEC AfiSafiType = "l3vpn-ipv6-flowspec" AFI_SAFI_TYPE_L2VPN_FLOWSPEC AfiSafiType = "l2vpn-flowspec" AFI_SAFI_TYPE_OPAQUE AfiSafiType = "opaque" + AFI_SAFI_TYPE_LS AfiSafiType = "ls" ) var AfiSafiTypeToIntMap = map[AfiSafiType]int{ @@ -285,6 +286,7 @@ var AfiSafiTypeToIntMap = map[AfiSafiType]int{ AFI_SAFI_TYPE_L3VPN_IPV6_FLOWSPEC: 18, AFI_SAFI_TYPE_L2VPN_FLOWSPEC: 19, AFI_SAFI_TYPE_OPAQUE: 20, + AFI_SAFI_TYPE_LS: 21, } var IntToAfiSafiTypeMap = map[int]AfiSafiType{ @@ -309,6 +311,7 @@ var IntToAfiSafiTypeMap = map[int]AfiSafiType{ 18: AFI_SAFI_TYPE_L3VPN_IPV6_FLOWSPEC, 19: AFI_SAFI_TYPE_L2VPN_FLOWSPEC, 20: AFI_SAFI_TYPE_OPAQUE, + 21: AFI_SAFI_TYPE_LS, } func (v AfiSafiType) Validate() error { |