summaryrefslogtreecommitdiffhomepage
path: root/config/bgp_configs.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r--config/bgp_configs.go33
1 files changed, 18 insertions, 15 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index 63389547..47d070b4 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -229,7 +229,8 @@ const (
AFI_SAFI_TYPE_IPV4_MULTICAST AfiSafiType = "ipv4-multicast"
AFI_SAFI_TYPE_IPV6_MULTICAST AfiSafiType = "ipv6-multicast"
AFI_SAFI_TYPE_RTC AfiSafiType = "rtc"
- AFI_SAFI_TYPE_ENCAP AfiSafiType = "encap"
+ AFI_SAFI_TYPE_IPV4_ENCAP AfiSafiType = "ipv4-encap"
+ AFI_SAFI_TYPE_IPV6_ENCAP AfiSafiType = "ipv6-encap"
AFI_SAFI_TYPE_IPV4_FLOWSPEC AfiSafiType = "ipv4-flowspec"
AFI_SAFI_TYPE_L3VPN_IPV4_FLOWSPEC AfiSafiType = "l3vpn-ipv4-flowspec"
AFI_SAFI_TYPE_IPV6_FLOWSPEC AfiSafiType = "ipv6-flowspec"
@@ -252,13 +253,14 @@ var AfiSafiTypeToIntMap = map[AfiSafiType]int{
AFI_SAFI_TYPE_IPV4_MULTICAST: 10,
AFI_SAFI_TYPE_IPV6_MULTICAST: 11,
AFI_SAFI_TYPE_RTC: 12,
- AFI_SAFI_TYPE_ENCAP: 13,
- AFI_SAFI_TYPE_IPV4_FLOWSPEC: 14,
- AFI_SAFI_TYPE_L3VPN_IPV4_FLOWSPEC: 15,
- AFI_SAFI_TYPE_IPV6_FLOWSPEC: 16,
- AFI_SAFI_TYPE_L3VPN_IPV6_FLOWSPEC: 17,
- AFI_SAFI_TYPE_L2VPN_FLOWSPEC: 18,
- AFI_SAFI_TYPE_OPAQUE: 19,
+ AFI_SAFI_TYPE_IPV4_ENCAP: 13,
+ AFI_SAFI_TYPE_IPV6_ENCAP: 14,
+ AFI_SAFI_TYPE_IPV4_FLOWSPEC: 15,
+ AFI_SAFI_TYPE_L3VPN_IPV4_FLOWSPEC: 16,
+ AFI_SAFI_TYPE_IPV6_FLOWSPEC: 17,
+ AFI_SAFI_TYPE_L3VPN_IPV6_FLOWSPEC: 18,
+ AFI_SAFI_TYPE_L2VPN_FLOWSPEC: 19,
+ AFI_SAFI_TYPE_OPAQUE: 20,
}
func (v AfiSafiType) ToInt() int {
@@ -283,13 +285,14 @@ var IntToAfiSafiTypeMap = map[int]AfiSafiType{
10: AFI_SAFI_TYPE_IPV4_MULTICAST,
11: AFI_SAFI_TYPE_IPV6_MULTICAST,
12: AFI_SAFI_TYPE_RTC,
- 13: AFI_SAFI_TYPE_ENCAP,
- 14: AFI_SAFI_TYPE_IPV4_FLOWSPEC,
- 15: AFI_SAFI_TYPE_L3VPN_IPV4_FLOWSPEC,
- 16: AFI_SAFI_TYPE_IPV6_FLOWSPEC,
- 17: AFI_SAFI_TYPE_L3VPN_IPV6_FLOWSPEC,
- 18: AFI_SAFI_TYPE_L2VPN_FLOWSPEC,
- 19: AFI_SAFI_TYPE_OPAQUE,
+ 13: AFI_SAFI_TYPE_IPV4_ENCAP,
+ 14: AFI_SAFI_TYPE_IPV6_ENCAP,
+ 15: AFI_SAFI_TYPE_IPV4_FLOWSPEC,
+ 16: AFI_SAFI_TYPE_L3VPN_IPV4_FLOWSPEC,
+ 17: AFI_SAFI_TYPE_IPV6_FLOWSPEC,
+ 18: AFI_SAFI_TYPE_L3VPN_IPV6_FLOWSPEC,
+ 19: AFI_SAFI_TYPE_L2VPN_FLOWSPEC,
+ 20: AFI_SAFI_TYPE_OPAQUE,
}
func (v AfiSafiType) Validate() error {