Open neil-wwt opened 3 years ago
I'm not sure what the expected behavior is in regards to other rules in the default policy. I can see an argument for both leaving alone and removing manually created rules. The issue here is that the behavior is inconsistent across back-to-back runs of terraform apply
I also realize that this resource (nsxt_policy_predefined_security_policy
) is in beta but thought it would be important to call out this bug so it could be addressed
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
Terraform CLI and Terraform Provider Version
Affected Resource(s)
nsxt_policy_predefined_security_policy
Terraform Configuration Files
Expected Behavior
apply
the first time. Change default rule toDROP
(or whatever is specified) and do something (or don't) with other existing rules in that policy. (Not sure what the expected behavior is in regards to other rules)apply
again and nothing else changesActual Behavior
On the first apply, the default rule is modified. TF reports "1 to add"
On the second apply, the other rules in the default policy are removed. TF reports "1 changed"
On the second apply, the default rule is created. TF reports "1 to add"
Steps to Reproduce
Test
terraform apply
Check NSX-T console. You will see the
Test
rule is still in place.terraform apply
Test
rule has been removed.