PaloAltoNetworks / terraform-provider-panos

Terraform Panos provider
https://www.terraform.io/docs/providers/panos/
Mozilla Public License 2.0
87 stars 71 forks source link

specifying a target in a NAT rule crashes the provider #242

Closed AndyCMRC closed 2 years ago

AndyCMRC commented 3 years ago

Describe the bug

setting target in a panos_panorama_nat_rule_group crashes the provider

Expected behavior

the target should apply the NAT rule to (a) specific firewall(s) defined by it's serial number

Current behavior

the provider crashes

Possible solution

Steps to reproduce

resource "panos_panorama_nat_rule_group" "pre_nat_xxx" { device_group = "xxx-dg" position_keyword = "top"

rule { name = "XXX-NAT-1"

needs work, setting a target crashes the provider

target {
  serial         local.vm3_serial

} target { serial local.vm4_serial } original_packet { source_zones = ["dmz"] destination_zone = "untrusted" destination_interface = "ethernet1/1"

Screenshots

Context

we use panorama to manage different firewalls across different azure environment, sometimes we need to apply NAT rules to a specific firewall.

Your Environment