Merge pull request #1614 from richard-olson/richard/nfw-policy-factory-fix

Fix net-firewall-policy factory name and action
This commit is contained in:
Julio Castillo 2023-08-23 16:05:59 +02:00 committed by GitHub
commit d051d41697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -26,9 +26,10 @@ locals {
)
factory_egress_rules = {
for k, v in local._factory_egress_rules : "egress/${k}" => {
action = "deny"
direction = "EGRESS"
name = k
priority = v.priority
action = lookup(v, "action", "deny")
description = lookup(v, "description", null)
disabled = lookup(v, "disabled", false)
enable_logging = lookup(v, "enable_logging", null)
@ -69,9 +70,10 @@ locals {
}
factory_ingress_rules = {
for k, v in local._factory_ingress_rules : "ingress/${k}" => {
action = "allow"
direction = "INGRESS"
name = k
priority = v.priority
action = lookup(v, "action", "allow")
description = lookup(v, "description", null)
disabled = lookup(v, "disabled", false)
enable_logging = lookup(v, "enable_logging", null)