From f2723097d1398053925f724f24d32b28c0222508 Mon Sep 17 00:00:00 2001 From: bwJuniper <98770420+bwJuniper@users.noreply.github.com> Date: Wed, 29 May 2024 11:12:22 -0700 Subject: [PATCH 1/2] support for 4.2.2 --- apstra/compatibility.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/apstra/compatibility.go b/apstra/compatibility.go index b1fd181b..da879ba7 100644 --- a/apstra/compatibility.go +++ b/apstra/compatibility.go @@ -13,13 +13,14 @@ const ( apstra420 = "4.2.0" apstra421 = "4.2.1" apstra4211 = "4.2.1.1" + apstra422 = "4.2.2" - apstraSupportedApiVersions = "4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1" + apstraSupportedApiVersions = "4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 4.2.1.1, 4.2.2" apstraSupportedVersionSep = "," - podBasedTemplateFabricAddressingPolicyForbiddenVersions = "4.1.1, 4.1.2, 4.2.0, 4.2.1, 4.2.1.1" + podBasedTemplateFabricAddressingPolicyForbiddenVersions = "4.1.1, 4.1.2, 4.2.0, 4.2.1, 4.2.1.1, 4.2.2" - rackBasedTemplateFabricAddressingPolicyForbiddenVersions = "4.1.1, 4.1.2, 4.2.0, 4.2.1, 4.2.1.1" + rackBasedTemplateFabricAddressingPolicyForbiddenVersions = "4.1.1, 4.1.2, 4.2.0, 4.2.1, 4.2.1.1, 4.2.2" fabricL3MtuForbiddenError = "fabric_l3_mtu permitted only with Apstra 4.2.0 and later" @@ -28,7 +29,7 @@ const ( policyRuleTcpStateQualifierForbidenVersions = "4.1.0, 4.1.1" policyRuleTcpStateQualifierForbidenError = "tcp_state_qualifier permitted only with Apstra 4.1.2 and later" - securityZoneJunosEvpnIrbModeRequiredVersions = "4.2.0" + securityZoneJunosEvpnIrbModeRequiredVersions = "4.2.0, 4.2.1, 4.2.1.1, 4.2.2" securityZoneJunosEvpnIrbModeRequiredError = "junos_evpn_irb_mode is required by Apstra 4.2 and later" vnL3MtuForbiddenVersions = "4.1.0, 4.1.1, 4.1.2" @@ -54,6 +55,8 @@ func SupportedApiVersions() []string { apstra412, apstra420, apstra421, + apstra4211, + apstra422, } } From e37f6c51caedbca28dd3f0059e4a391d0044f479 Mon Sep 17 00:00:00 2001 From: bwJuniper <98770420+bwJuniper@users.noreply.github.com> Date: Thu, 30 May 2024 09:51:25 -0700 Subject: [PATCH 2/2] depricate 4.1.x versions --- apstra/compatibility.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apstra/compatibility.go b/apstra/compatibility.go index da879ba7..c9eb101f 100644 --- a/apstra/compatibility.go +++ b/apstra/compatibility.go @@ -15,7 +15,7 @@ const ( apstra4211 = "4.2.1.1" apstra422 = "4.2.2" - apstraSupportedApiVersions = "4.1.0, 4.1.1, 4.1.2, 4.2.0, 4.2.1, 4.2.1.1, 4.2.2" + apstraSupportedApiVersions = "4.2.0, 4.2.1, 4.2.1.1, 4.2.2" apstraSupportedVersionSep = "," podBasedTemplateFabricAddressingPolicyForbiddenVersions = "4.1.1, 4.1.2, 4.2.0, 4.2.1, 4.2.1.1, 4.2.2"