From 7727848dc1c3ad02e55b57bb8a0caa5fc03d479a Mon Sep 17 00:00:00 2001 From: bwJuniper <98770420+bwJuniper@users.noreply.github.com> Date: Thu, 30 May 2024 09:58:06 -0700 Subject: [PATCH] updated supported versions --- apstra/api_versions/versions.go | 12 +++++++----- apstra/compatibility/api_versions.go | 5 ++--- apstra/compatibility/api_versions_test.go | 2 +- docs/index.md | 2 +- go.mod | 2 +- go.sum | 4 ++-- 6 files changed, 14 insertions(+), 13 deletions(-) diff --git a/apstra/api_versions/versions.go b/apstra/api_versions/versions.go index 8b482dd8..13266ead 100644 --- a/apstra/api_versions/versions.go +++ b/apstra/api_versions/versions.go @@ -4,11 +4,13 @@ package apiversions // track back to this file. When support for an old release is dropped, these // constants should help track down code relevant to those versions. const ( - Apstra410 = "4.1.0" - Apstra411 = "4.1.1" - Apstra412 = "4.1.2" - Apstra420 = "4.2.0" - Apstra421 = "4.2.1" + Apstra410 = "4.1.0" + Apstra411 = "4.1.1" + Apstra412 = "4.1.2" + Apstra420 = "4.2.0" + Apstra421 = "4.2.1" + Apstra4211 = "4.2.1.1" + Apstra422 = "4.2.2" Le420 = "<=" + Apstra420 ) diff --git a/apstra/compatibility/api_versions.go b/apstra/compatibility/api_versions.go index b45d3116..b46ec23b 100644 --- a/apstra/compatibility/api_versions.go +++ b/apstra/compatibility/api_versions.go @@ -11,11 +11,10 @@ import ( func SupportedApiVersions() []string { providerVersions := []string{ - apiversions.Apstra410, - apiversions.Apstra411, - apiversions.Apstra412, apiversions.Apstra420, apiversions.Apstra421, + apiversions.Apstra4211, + apiversions.Apstra422, } sdkVersions := apstra.SupportedApiVersions() diff --git a/apstra/compatibility/api_versions_test.go b/apstra/compatibility/api_versions_test.go index d5942689..4d8d3ae5 100644 --- a/apstra/compatibility/api_versions_test.go +++ b/apstra/compatibility/api_versions_test.go @@ -22,7 +22,7 @@ func TestSupportedApiVersions(t *testing.T) { } func TestSupportedApiVersionsPretty(t *testing.T) { - expected := apiversions.Apstra410 + ", " + apiversions.Apstra411 + ", " + apiversions.Apstra412 + ", " + apiversions.Apstra420 + ", and " + apiversions.Apstra421 + expected := apiversions.Apstra410 + ", " + apiversions.Apstra411 + ", " + apiversions.Apstra412 + ", " + apiversions.Apstra420 + ", " + apiversions.Apstra421 + ", " + apiversions.Apstra4211 + ", and " + apiversions.Apstra422 result := SupportedApiVersionsPretty() if expected != result { t.Fatalf("expected %q; got %q", expected, result) diff --git a/docs/index.md b/docs/index.md index 078665d2..f59bd97e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -12,7 +12,7 @@ It covers day 0 and day 1 operations (design and deployment), and a growing list Use the navigation tree to the left to read about the available resources and data sources. -This release has been tested with Apstra versions 4.1.0, 4.1.1, 4.1.2, 4.2.0, and 4.2.1. +This release has been tested with Apstra versions 4.2.0, 4.2.1, 4.2.1.1, and 4.2.2. ## Configuration diff --git a/go.mod b/go.mod index 466084b7..902dfe71 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ toolchain go1.21.1 require ( github.com/IBM/netaddr v1.5.0 - github.com/Juniper/apstra-go-sdk v0.0.0-20240430192907-3b8e9f7648cf + github.com/Juniper/apstra-go-sdk v0.0.0-20240530165334-45d18a1a66a2 github.com/apparentlymart/go-cidr v1.1.0 github.com/chrismarget-j/go-licenses v0.0.0-20240224210557-f22f3e06d3d4 github.com/google/go-cmp v0.6.0 diff --git a/go.sum b/go.sum index 1c4b6bdf..7dc42495 100644 --- a/go.sum +++ b/go.sum @@ -108,8 +108,8 @@ github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ= github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo= github.com/IBM/netaddr v1.5.0 h1:IJlFZe1+nFs09TeMB/HOP4+xBnX2iM/xgiDOgZgTJq0= github.com/IBM/netaddr v1.5.0/go.mod h1:DDBPeYgbFzoXHjSz9Jwk7K8wmWV4+a/Kv0LqRnb8we4= -github.com/Juniper/apstra-go-sdk v0.0.0-20240430192907-3b8e9f7648cf h1:4PVRSN7ChmQDy1oTjpGcVXqL3hohO+1N9NBCuMxDN5M= -github.com/Juniper/apstra-go-sdk v0.0.0-20240430192907-3b8e9f7648cf/go.mod h1:Xwj3X8v/jRZWv28o6vQAqD4lz2JmzaSYLZ2ch1SS89w= +github.com/Juniper/apstra-go-sdk v0.0.0-20240530165334-45d18a1a66a2 h1:ksLJMxH1ZudCY2UOa0aUEsCloqKkeG8P8umgk80mrW4= +github.com/Juniper/apstra-go-sdk v0.0.0-20240530165334-45d18a1a66a2/go.mod h1:Xwj3X8v/jRZWv28o6vQAqD4lz2JmzaSYLZ2ch1SS89w= github.com/Kunde21/markdownfmt/v3 v3.1.0 h1:KiZu9LKs+wFFBQKhrZJrFZwtLnCCWJahL+S+E/3VnM0= github.com/Kunde21/markdownfmt/v3 v3.1.0/go.mod h1:tPXN1RTyOzJwhfHoon9wUr4HGYmWgVxSQN6VBJDkrVc= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=