Skip to content

Commit

Permalink
Merge pull request #677 from Juniper/676-test-and-support-apstra-v422
Browse files Browse the repository at this point in the history
Update supported Apstra versions add 4.2.2 and 4.2.1.1 and remove all 4.1.x versions.
  • Loading branch information
bwJuniper authored May 30, 2024
2 parents 69f652d + 7727848 commit eedd961
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 13 deletions.
12 changes: 7 additions & 5 deletions apstra/api_versions/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
5 changes: 2 additions & 3 deletions apstra/compatibility/api_versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion apstra/compatibility/api_versions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit eedd961

Please sign in to comment.