Skip to content

TPT-4481: Implemented support for Configurable VPC IPv4 Prefixes#986

Open
ezilber-akamai wants to merge 6 commits into
linode:proj/configurable-vpc-ipv4-prefixesfrom
ezilber-akamai:TPT-4481-config-vpc-ipv4-prefixes
Open

TPT-4481: Implemented support for Configurable VPC IPv4 Prefixes#986
ezilber-akamai wants to merge 6 commits into
linode:proj/configurable-vpc-ipv4-prefixesfrom
ezilber-akamai:TPT-4481-config-vpc-ipv4-prefixes

Conversation

@ezilber-akamai

@ezilber-akamai ezilber-akamai commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

📝 Description

Added support for the new GET /v4/vpcs/default-ranges endpoint and updated the following endpoints to support IPv4:

  • GET /v4/vpcs/<id>
  • GET /v4/vpcs
  • POST /v4/vpcs
  • PUT /v4/vpcs/<id>

Also fixed some region capability integration tests that had meaningless assertions such that they actually check what they are meant to be checking for.

✔️ How to Test

Note that you will need appropriate customer tags for the tests to pass.

make test-int TEST_ARGS="-run TestVPC_IPv4Ranges"
make test-int TEST_ARGS="-run TestVPC_DefaultRanges"
make test-int TEST_ARGS="-run TestRegions_customVPCIPv4Ranges"
make test-int TEST_ARGS="-run TestRegions_pgLimits"
make test-int TEST_ARGS="-run TestRegions_blockStorageEncryption"
make test-int TEST_ARGS="-run TestRegions_kubernetesEnterprise"

Copilot AI review requested due to automatic review settings June 5, 2026 15:51
@ezilber-akamai ezilber-akamai added the new-feature for new features in the changelog. label Jun 5, 2026
@ezilber-akamai ezilber-akamai requested review from a team as code owners June 5, 2026 15:51
@ezilber-akamai ezilber-akamai requested review from psnoch-akamai and zliang-akamai and removed request for a team June 5, 2026 15:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds client- and test-support for configurable VPC IPv4 prefixes by modeling IPv4 ranges on VPCs, adding a client call for the new VPC default-ranges endpoint, and extending integration tests/fixtures to validate the new behavior and region capabilities.

Changes:

  • Added IPv4 range structs/fields to VPC create/update models and a GetVPCDefaultRanges client method.
  • Added integration coverage for custom VPC IPv4 ranges capability and VPC default ranges.
  • Updated region capability integration tests and refreshed recorded fixtures.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
vpc.go Adds IPv4 range models, default-ranges response model, and GetVPCDefaultRanges; updates create/update option structs.
regions.go Adds CapabilityVPCCustomIPv4Ranges capability constant.
test/integration/vpc_test.go Adds integration test covering VPC IPv4 range create/get/list/update plus default-ranges call.
test/integration/regions_test.go Fixes region-capability assertions and adds test for “Custom VPC IPv4 Ranges” capability.
test/integration/fixtures/TestVPC_IPv4DefaultRanges.yaml New fixture covering VPC IPv4 range workflow + /vpcs/default-ranges.
test/integration/fixtures/TestRegions_pgLimits.yaml Updated regions fixture data for placement group limits test.
test/integration/fixtures/TestRegions_kubernetesEnterprise.yaml Updated regions fixture data for Kubernetes Enterprise capability test.
test/integration/fixtures/TestRegions_customVPCIPv4Ranges.yaml New fixture for Custom VPC IPv4 Ranges capability test.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread vpc.go
Comment thread vpc.go
Comment thread vpc.go
Comment thread test/integration/vpc_test.go Outdated
Comment thread test/integration/fixtures/TestRegions_pgLimits.yaml
Comment thread test/integration/fixtures/TestRegions_kubernetesEnterprise.yaml
Comment thread test/integration/fixtures/TestRegions_customVPCIPv4Ranges.yaml
Comment thread test/integration/fixtures/TestVPC_IPv4Ranges.yaml
@ezilber-akamai ezilber-akamai marked this pull request as draft June 5, 2026 16:17
@ezilber-akamai ezilber-akamai marked this pull request as ready for review June 5, 2026 16:56
@ezilber-akamai ezilber-akamai marked this pull request as draft June 9, 2026 13:24
@mawilk90 mawilk90 self-requested a review June 10, 2026 10:59
Comment thread test/integration/vpc_test.go Outdated
@ezilber-akamai ezilber-akamai marked this pull request as ready for review June 18, 2026 19:22
@mawilk90

Copy link
Copy Markdown
Contributor

Rerun tests locally, all passed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-feature for new features in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants