Skip to content

Support IPv6 OTT gateway for Apstra 6.1.0+#1249

Open
chrismarget-j wants to merge 3 commits into
mainfrom
1248-add-support-for-ipv6-remote-gateways-in-the-apstra_datacenter_external_gateway-resource
Open

Support IPv6 OTT gateway for Apstra 6.1.0+#1249
chrismarget-j wants to merge 3 commits into
mainfrom
1248-add-support-for-ipv6-remote-gateways-in-the-apstra_datacenter_external_gateway-resource

Conversation

@chrismarget-j
Copy link
Copy Markdown
Member

@chrismarget-j chrismarget-j commented May 1, 2026

Apstra versions prior to 6.1.0 only supported IPv4 addresses for the apstra_datacenter_external_gateway resource ip_address attribute. Current versions permit IPv4 or IPv6 values.

This PR changes the underlying type of that attribute from iptypes.IPv4Address to iptypes.IPAddress which permits both IPv4 and IPv6 addresses.

The change is expected to be seamless for upgrades: TF state stores the values as text, and strings representing addresses from either version can be parsed from text into the new type.

The resource now implements the resource.ResourceWithValidateConfig interface and has a version-aware validator which complains if an IPv6 address is specified when talking to Apstra < 6.1.0.

New test object function BlueprintJ() creates a 6.1.0+ blueprint with IPv6-only VTEP addressing required to test this configuration.

The integration test is a little ugly:

  • Like others it creates a blueprint client bp before running test cases
  • This one also creates a blueprint bp6 using the BlueprintJ() function if the API supports it.
  • Test cases carry the desired blueprint (either bp or bp6) as part of the test case configuration.

It's not elegant, but the behavior gets tested, so I think it's okay.

Closes #1248

@chrismarget-j chrismarget-j requested a review from rajagopalans May 1, 2026 13:51
@chrismarget-j chrismarget-j changed the base branch from main to avoid-gopkg-in May 1, 2026 18:11
@chrismarget-j chrismarget-j force-pushed the 1248-add-support-for-ipv6-remote-gateways-in-the-apstra_datacenter_external_gateway-resource branch from 63c8149 to 845f4e3 Compare May 1, 2026 18:17
Base automatically changed from avoid-gopkg-in to main May 4, 2026 21:23
@chrismarget-j chrismarget-j force-pushed the 1248-add-support-for-ipv6-remote-gateways-in-the-apstra_datacenter_external_gateway-resource branch from 845f4e3 to 157952c Compare May 28, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for IPv6 remote gateways in the apstra_datacenter_external_gateway resource

1 participant