Declarative storage network IP range#299
Open
bddvlpr wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Terraform resource to declaratively manage CloudStack storage network IP ranges at the pod level, aligning with existing IP-range-style resources and including docs/nav updates.
Changes:
- Introduces
cloudstack_storage_network_ip_rangeresource with CRUD + import support. - Adds acceptance tests covering create and update flows, plus a “VLAN omitted” creation case.
- Adds resource documentation and registers it in the website sidebar.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
cloudstack/resource_cloudstack_storage_network_ip_range.go |
Implements the new resource schema and CRUD operations against CloudStack’s storage network IP range APIs. |
cloudstack/resource_cloudstack_storage_network_ip_range_test.go |
Adds acceptance tests for create/update and creation without VLAN set. |
cloudstack/provider.go |
Registers the new resource in the provider’s resource map. |
website/docs/r/storage_network_ip_range.html.markdown |
Adds user-facing documentation for the new resource, including example and import instructions. |
website/cloudstack.erb |
Adds the resource to the docs sidebar navigation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new
cloudstack_storage_network_ip_rangeresource for managing a pod's storage network through Terraform. Follows the ip_range resource closely.Acceptance tests cover creation, update and omitted VLAN cases. Resource documentation and sidebar entry are included.