Skip to content

Allow 'all' on security group rule protocol#294

Open
bddvlpr wants to merge 1 commit into
apache:mainfrom
bddvlpr:fix/allow-all-sg
Open

Allow 'all' on security group rule protocol#294
bddvlpr wants to merge 1 commit into
apache:mainfrom
bddvlpr:fix/allow-all-sg

Conversation

@bddvlpr

@bddvlpr bddvlpr commented Jun 5, 2026

Copy link
Copy Markdown

Allows setting "all" as the protocol for security group rules.

Closes #274.

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 support for using protocol = "all" in cloudstack_security_group_rule, aligning provider validation/behavior with the documented allowed values and closing #274.

Changes:

  • Create security group rules when protocol is set to "all".
  • Read back "all" protocol rules into state.
  • Extend acceptance test configs/assertions to include "all" protocol rules.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
cloudstack/resource_cloudstack_security_group_rule.go Adds create/read/validation handling for protocol = "all" on security group rules.
cloudstack/resource_cloudstack_security_group_rule_test.go Updates acceptance tests to exercise the new "all" protocol behavior.

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

Comment thread cloudstack/resource_cloudstack_security_group_rule.go
Comment thread cloudstack/resource_cloudstack_security_group_rule.go
Comment thread cloudstack/resource_cloudstack_security_group_rule_test.go Outdated
@bddvlpr bddvlpr force-pushed the fix/allow-all-sg branch from f8de2e5 to 01c7717 Compare July 10, 2026 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cloudstack_security_group_rule does not allowsetting protocol = "all"

3 participants