firewall_rule: Add enabled attribute (#63)

* firewall_rule: Add enabled attribute

Resolves #62

* Add tests

* Update docs

---------

Co-authored-by: Joshua Spence <josh@spence.com.au>
This commit is contained in:
Chris Hasenpflug
2023-03-02 03:06:04 -06:00
committed by GitHub
parent 17ed6d8258
commit 8bfcf5b503
3 changed files with 97 additions and 49 deletions

View File

@@ -48,6 +48,7 @@ resource "unifi_firewall_rule" "drop_all" {
- `dst_network_id` (String) The destination network ID of the firewall rule.
- `dst_network_type` (String) The destination network type of the firewall rule. Can be one of `ADDRv4` or `NETv4`. Defaults to `NETv4`.
- `dst_port` (String) The destination port of the firewall rule.
- `enabled` (Boolean) Specifies whether the rule should be enabled. Defaults to `true`.
- `icmp_typename` (String) ICMP type name.
- `icmp_v6_typename` (String) ICMPv6 type name.
- `ip_sec` (String) Specify whether the rule matches on IPsec packets. Can be one of `match-ipset` or `match-none`.