Skip to content

Commit 6290cce

Browse files
hsnprsdbpg
andauthored
fix(firewall): appending a rule without re-creating the whole ruleset (#2310)
* remove ForceNew: true from firewall rules resource Signed-off-by: Ehsan Poursaeed <hsnprsd@gmail.com> * add tests Signed-off-by: Ehsan Poursaeed <hsnprsd@gmail.com> * any -> interface{} Signed-off-by: Ehsan Poursaeed <hsnprsd@gmail.com> * add note on firewall rules doc Signed-off-by: Ehsan Poursaeed <hsnprsd@gmail.com> * fix: update ports in test to not interfere with API Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> --------- Signed-off-by: Ehsan Poursaeed <hsnprsd@gmail.com> Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com> Co-authored-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
1 parent ee1c525 commit 6290cce

File tree

5 files changed

+610
-98
lines changed

5 files changed

+610
-98
lines changed

docs/resources/virtual_environment_firewall_rules.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ subcategory: Virtual Environment
99

1010
Manages cluster-level, node-level or VM/container-level firewall rules.
1111

12+
> **Note:** Before creating a new `proxmox_virtual_environment_firewall_rules` resource, verify that no rules already exist for the target (cluster, node, VM, or container).
13+
> If rules are already configured, import them first using the appropriate import command.
14+
1215
## Example Usage
1316

1417
```hcl

0 commit comments

Comments
 (0)