Add bypass_vlan_overlap_check parameter to cloudstack_private_gateway #283
Add bypass_vlan_overlap_check parameter to cloudstack_private_gateway #283bhouse-nexthop wants to merge 3 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds support for an optional bypassvlanoverlapcheck flag on cloudstack_private_gateway, enabling callers to bypass CloudStack’s VLAN overlap validation at creation time.
Changes:
- Documented the new
bypassvlanoverlapcheckargument and added an HCL example. - Extended the private gateway resource schema and create logic to pass the flag to the CloudStack API.
- Added/updated acceptance tests to cover explicit
true, defaultfalse, and import behavior.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
cloudstack/resource_cloudstack_private_gateway.go |
Adds schema field and wires it into the Create API call. |
cloudstack/resource_cloudstack_private_gateway_test.go |
Adds acceptance tests and updates import verification to ignore the new field. |
website/docs/r/private_gateway.html.markdown |
Documents the new argument and provides an example configuration. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@vishesh92 code review comments addressed, please re-request from copilot |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…source - Add bypassvlanoverlapcheck optional parameter (defaults to false) - Parameter allows bypassing VLAN overlap checks during gateway creation - Update resource creation logic to pass parameter to CloudStack API - Add comprehensive test coverage: - Test with bypass enabled - Test default value (false) - Update import test to ignore field (not returned by API) - Update documentation with examples and parameter description - All acceptance tests passing (4/4)
… consistency The parameter name has been changed from camelCase (bypassvlanoverlapcheck) to snake_case (bypass_vlan_overlap_check) to maintain consistency with other resource arguments like ip_address, physical_network_id, and acl_id. This change affects: - Resource schema definition - Resource creation logic - Test cases and assertions - Documentation examples The parameter is now also marked as ForceNew since it can only be set during gateway creation and cannot be modified afterwards.
a5a909c to
2ae48f0
Compare
|
@bhouse-nexthop I found a bug.
|
|
Hi @bhouse-nexthop Can you check the outstanding comments here. Thanks. |
Uh oh!
There was an error while loading. Please reload this page.