<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Panorama Nat Policy group - nat_rule_group not working in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/panorama-nat-policy-group-nat-rule-group-not-working/m-p/556623#M3429</link>
    <description>&lt;P&gt;&lt;BR /&gt;Hi Team ,&lt;/P&gt;&lt;P&gt;We are testing the panos_nat_rule_group on panorama and somehow it is not working&lt;/P&gt;&lt;P&gt;1) Below is the official terraform documentation for Panorama Nat Policy group&lt;BR /&gt;&lt;A href="https://registry.terraform.io/providers/migara/pan-os/latest/docs/resources/nat_rule_group" target="_blank"&gt;https://registry.terraform.io/providers/migara/pan-os/latest/docs/resources/nat_rule_group&lt;/A&gt;&lt;BR /&gt;The example provided is not working. When we do ‘terraform plan’ – it is not showing any error but when we do terraform apply – it is throwing lots of errors.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Below is the verion we are using&lt;/P&gt;&lt;P&gt;terraform {&lt;BR /&gt;required_providers {&lt;BR /&gt;panos = {&lt;BR /&gt;source = "PaloAltoNetworks/panos"&lt;BR /&gt;version = "1.11.1"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you share the working code example of terraform for panos_nat_rule_group&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;===below is the code and the error ===============&lt;/P&gt;&lt;P&gt;============== code from the above website ===================&lt;BR /&gt;resource "panos_nat_rule_group" "bot" {&lt;BR /&gt;rule {&lt;BR /&gt;name = "second"&lt;BR /&gt;original_packet {&lt;BR /&gt;source_zones = [panos_zone.z2.name]&lt;BR /&gt;destination_zone = panos_zone.z3.name&lt;BR /&gt;destination_interface = panos_ethernet_interface.x.name&lt;BR /&gt;source_addresses = ["any"]&lt;BR /&gt;destination_addresses = ["any"]&lt;BR /&gt;}&lt;BR /&gt;translated_packet {&lt;BR /&gt;source {}&lt;BR /&gt;destination {&lt;BR /&gt;static_translation {&lt;BR /&gt;address = "10.2.3.1"&lt;BR /&gt;port = 5678&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;rule {&lt;BR /&gt;name = "third"&lt;BR /&gt;original_packet {&lt;BR /&gt;source_zones = [panos_zone.z3.name]&lt;BR /&gt;destination_zone = panos_zone.z2.name&lt;BR /&gt;destination_interface = panos_ethernet_interface.x.name&lt;BR /&gt;source_addresses = ["any"]&lt;BR /&gt;destination_addresses = ["any"]&lt;BR /&gt;}&lt;BR /&gt;translated_packet {&lt;BR /&gt;source {&lt;BR /&gt;static_ip {&lt;BR /&gt;translated_address = "192.168.1.5"&lt;BR /&gt;bi_directional = true&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;destination {}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;resource "panos_nat_rule_group" "top" {&lt;BR /&gt;position_keyword = "directly before"&lt;BR /&gt;position_reference = panos_nat_rule_group.bot.rule.0.name&lt;BR /&gt;rule {&lt;BR /&gt;name = "first"&lt;BR /&gt;original_packet {&lt;BR /&gt;source_zones = [panos_zone.z1.name]&lt;BR /&gt;destination_zone = panos_zone.z1.name&lt;BR /&gt;destination_interface = panos_ethernet_interface.x.name&lt;BR /&gt;source_addresses = ["any"]&lt;BR /&gt;destination_addresses = ["any"]&lt;BR /&gt;}&lt;BR /&gt;translated_packet {&lt;BR /&gt;source {&lt;BR /&gt;dynamic_ip_and_port {&lt;BR /&gt;interface_address {&lt;BR /&gt;interface = panos_ethernet_interface.x.name&lt;BR /&gt;ip_address = panos_ethernet_interface.x.static_ips.0&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;destination {&lt;BR /&gt;static_translation {&lt;BR /&gt;address = "10.1.1.1"&lt;BR /&gt;port = 1234&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;resource "panos_ethernet_interface" "x" {&lt;BR /&gt;name = "ethernet1/6"&lt;BR /&gt;mode = "layer3"&lt;BR /&gt;vsys = "vsys1"&lt;BR /&gt;static_ips = ["10.5.5.1/24"]&lt;BR /&gt;}&lt;BR /&gt;resource "panos_zone" "z1" {&lt;BR /&gt;name = "z1"&lt;BR /&gt;mode = "layer3"&lt;BR /&gt;}&lt;BR /&gt;resource "panos_zone" "z2" {&lt;BR /&gt;name = "z2"&lt;BR /&gt;mode = "layer3"&lt;BR /&gt;}&lt;BR /&gt;resource "panos_zone" "z3" {&lt;BR /&gt;name = "z3"&lt;BR /&gt;mode = "layer3"&lt;BR /&gt;}&lt;BR /&gt;=========================&lt;BR /&gt;[autouser@svrvm1 terraform]$ terraform plan&lt;BR /&gt;panos_address_object.objects1["snet-appgw"]: Refreshing state... [id=FW_POC_grp:snet-appgw]&lt;BR /&gt;panos_address_object.objects1["snet-greenpreprd"]: Refreshing state... [id=FW_POC_grp:snet-greenpreprd]&lt;BR /&gt;panos_panorama_static_route_ipv4.static_route["snet-greenprd"]: Refreshing state... [id=Templates_POC::VR-Trust:snet-greenprd]&lt;BR /&gt;panos_address_object.objects1["snet-ext-green"]: Refreshing state... [id=FW_POC_grp:snet-ext-green]&lt;BR /&gt;panos_address_object.objects1["nic-fw-amsaw-preprd-pa-001-untrust"]: Refreshing state... [id=FW_POC_grp:nic-fw-amsaw-preprd-pa-001-untrust]&lt;BR /&gt;panos_address_object.objects1["green-lb-preprd-frontend"]: Refreshing state... [id=FW_POC_grp:green-lb-preprd-frontend]&lt;BR /&gt;panos_panorama_static_route_ipv4.static_route["snet-greenpreprd"]: Refreshing state... [id=Templates_POC::VR-Trust:snet-greenpreprd]&lt;BR /&gt;panos_panorama_service_object.service_object["TCP-44308"]: Refreshing state... [id=shared:TCP-44308]&lt;BR /&gt;panos_security_policy.tfpostrule1: Refreshing state... [id=FW_POC_grp:post-rulebase:vsys1]&lt;BR /&gt;Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with&lt;BR /&gt;the following symbols:&lt;BR /&gt;+ create&lt;BR /&gt;Terraform will perform the following actions:&lt;BR /&gt;# panos_ethernet_interface.x will be created&lt;BR /&gt;+ resource "panos_ethernet_interface" "x" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "ethernet1/6"&lt;BR /&gt;+ static_ips = [&lt;BR /&gt;+ "10.5.5.1/24",&lt;BR /&gt;]&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;# panos_nat_rule_group.bot will be created&lt;BR /&gt;+ resource "panos_nat_rule_group" "bot" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;+ rule {&lt;BR /&gt;+ name = "second"&lt;BR /&gt;+ type = "ipv4"&lt;BR /&gt;+ uuid = (known after apply)&lt;BR /&gt;+ original_packet {&lt;BR /&gt;+ destination_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ destination_interface = "ethernet1/6"&lt;BR /&gt;+ destination_zone = "z3"&lt;BR /&gt;+ service = "any"&lt;BR /&gt;+ source_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ source_zones = [&lt;BR /&gt;+ "z2",&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;+ translated_packet {&lt;BR /&gt;+ destination {&lt;BR /&gt;+ static_translation {&lt;BR /&gt;+ address = "10.2.3.1"&lt;BR /&gt;+ port = 5678&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;+ source {&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;+ rule {&lt;BR /&gt;+ name = "third"&lt;BR /&gt;+ type = "ipv4"&lt;BR /&gt;+ uuid = (known after apply)&lt;BR /&gt;+ original_packet {&lt;BR /&gt;+ destination_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ destination_interface = "ethernet1/6"&lt;BR /&gt;+ destination_zone = "z2"&lt;BR /&gt;+ service = "any"&lt;BR /&gt;+ source_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ source_zones = [&lt;BR /&gt;+ "z3",&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;+ translated_packet {&lt;BR /&gt;+ destination {&lt;BR /&gt;}&lt;BR /&gt;+ source {&lt;BR /&gt;+ static_ip {&lt;BR /&gt;+ bi_directional = true&lt;BR /&gt;+ translated_address = "192.168.1.5"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;# panos_nat_rule_group.top will be created&lt;BR /&gt;+ resource "panos_nat_rule_group" "top" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ position_keyword = "directly before"&lt;BR /&gt;+ position_reference = "second"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;+ rule {&lt;BR /&gt;+ name = "first"&lt;BR /&gt;+ type = "ipv4"&lt;BR /&gt;+ uuid = (known after apply)&lt;BR /&gt;+ original_packet {&lt;BR /&gt;+ destination_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ destination_interface = "ethernet1/6"&lt;BR /&gt;+ destination_zone = "z1"&lt;BR /&gt;+ service = "any"&lt;BR /&gt;+ source_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ source_zones = [&lt;BR /&gt;+ "z1",&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;+ translated_packet {&lt;BR /&gt;+ destination {&lt;BR /&gt;+ static_translation {&lt;BR /&gt;+ address = "10.1.1.1"&lt;BR /&gt;+ port = 1234&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;+ source {&lt;BR /&gt;+ dynamic_ip_and_port {&lt;BR /&gt;+ interface_address {&lt;BR /&gt;+ interface = "ethernet1/6"&lt;BR /&gt;+ ip_address = "10.5.5.1/24"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;# panos_zone.z1 will be created&lt;BR /&gt;+ resource "panos_zone" "z1" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ interfaces = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "z1"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;# panos_zone.z2 will be created&lt;BR /&gt;+ resource "panos_zone" "z2" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ interfaces = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "z2"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;# panos_zone.z3 will be created&lt;BR /&gt;+ resource "panos_zone" "z3" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ interfaces = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "z3"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;Plan: 6 to add, 0 to change, 0 to destroy.&lt;BR /&gt;──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────&lt;BR /&gt;Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if&lt;BR /&gt;you run "terraform apply" now.&lt;BR /&gt;[autouser@svrvm1 terraform]$&lt;BR /&gt;Here is the terraform apply and it’s errors&lt;BR /&gt;[autouser@svrvm1 terraform]$ terraform apply --auto-approve&lt;BR /&gt;panos_panorama_service_object.service_object["TCP-44308"]: Refreshing state... [id=shared:TCP-44308]&lt;BR /&gt;panos_address_object.objects1["snet-ext-green"]: Refreshing state... [id=FW_POC_grp:snet-ext-green]&lt;BR /&gt;panos_address_object.objects1["snet-greenpreprd"]: Refreshing state... [id=FW_POC_grp:snet-greenpreprd]&lt;BR /&gt;panos_address_object.objects1["snet-appgw"]: Refreshing state... [id=FW_POC_grp:snet-appgw]&lt;BR /&gt;panos_address_object.objects1["nic-fw-amsaw-preprd-pa-001-untrust"]: Refreshing state... [id=FW_POC_grp:nic-fw-amsaw-preprd-pa-001-untrust]&lt;BR /&gt;panos_address_object.objects1["green-lb-preprd-frontend"]: Refreshing state... [id=FW_POC_grp:green-lb-preprd-frontend]&lt;BR /&gt;panos_panorama_static_route_ipv4.static_route["snet-greenprd"]: Refreshing state... [id=Templates_POC::VR-Trust:snet-greenprd]&lt;BR /&gt;panos_panorama_static_route_ipv4.static_route["snet-greenpreprd"]: Refreshing state... [id=Templates_POC::VR-Trust:snet-greenpreprd]&lt;BR /&gt;panos_security_policy.tfpostrule1: Refreshing state... [id=FW_POC_grp:post-rulebase:vsys1]&lt;BR /&gt;Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with&lt;BR /&gt;the following symbols:&lt;BR /&gt;+ create&lt;BR /&gt;Terraform will perform the following actions:&lt;BR /&gt;# panos_ethernet_interface.x will be created&lt;BR /&gt;+ resource "panos_ethernet_interface" "x" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "ethernet1/6"&lt;BR /&gt;+ static_ips = [&lt;BR /&gt;+ "10.5.5.1/24",&lt;BR /&gt;]&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;# panos_nat_rule_group.bot will be created&lt;BR /&gt;+ resource "panos_nat_rule_group" "bot" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;+ rule {&lt;BR /&gt;+ name = "second"&lt;BR /&gt;+ type = "ipv4"&lt;BR /&gt;+ uuid = (known after apply)&lt;BR /&gt;+ original_packet {&lt;BR /&gt;+ destination_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ destination_interface = "ethernet1/6"&lt;BR /&gt;+ destination_zone = "z3"&lt;BR /&gt;+ service = "any"&lt;BR /&gt;+ source_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ source_zones = [&lt;BR /&gt;+ "z2",&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;+ translated_packet {&lt;BR /&gt;+ destination {&lt;BR /&gt;+ static_translation {&lt;BR /&gt;+ address = "10.2.3.1"&lt;BR /&gt;+ port = 5678&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;+ source {&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;+ rule {&lt;BR /&gt;+ name = "third"&lt;BR /&gt;+ type = "ipv4"&lt;BR /&gt;+ uuid = (known after apply)&lt;BR /&gt;+ original_packet {&lt;BR /&gt;+ destination_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ destination_interface = "ethernet1/6"&lt;BR /&gt;+ destination_zone = "z2"&lt;BR /&gt;+ service = "any"&lt;BR /&gt;+ source_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ source_zones = [&lt;BR /&gt;+ "z3",&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;+ translated_packet {&lt;BR /&gt;+ destination {&lt;BR /&gt;}&lt;BR /&gt;+ source {&lt;BR /&gt;+ static_ip {&lt;BR /&gt;+ bi_directional = true&lt;BR /&gt;+ translated_address = "192.168.1.5"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;# panos_nat_rule_group.top will be created&lt;BR /&gt;+ resource "panos_nat_rule_group" "top" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ position_keyword = "directly before"&lt;BR /&gt;+ position_reference = "second"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;+ rule {&lt;BR /&gt;+ name = "first"&lt;BR /&gt;+ type = "ipv4"&lt;BR /&gt;+ uuid = (known after apply)&lt;BR /&gt;+ original_packet {&lt;BR /&gt;+ destination_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ destination_interface = "ethernet1/6"&lt;BR /&gt;+ destination_zone = "z1"&lt;BR /&gt;+ service = "any"&lt;BR /&gt;+ source_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ source_zones = [&lt;BR /&gt;+ "z1",&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;+ translated_packet {&lt;BR /&gt;+ destination {&lt;BR /&gt;+ static_translation {&lt;BR /&gt;+ address = "10.1.1.1"&lt;BR /&gt;+ port = 1234&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;+ source {&lt;BR /&gt;+ dynamic_ip_and_port {&lt;BR /&gt;+ interface_address {&lt;BR /&gt;+ interface = "ethernet1/6"&lt;BR /&gt;+ ip_address = "10.5.5.1/24"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;# panos_zone.z1 will be created&lt;BR /&gt;+ resource "panos_zone" "z1" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ interfaces = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "z1"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;# panos_zone.z2 will be created&lt;BR /&gt;+ resource "panos_zone" "z2" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ interfaces = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "z2"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;# panos_zone.z3 will be created&lt;BR /&gt;+ resource "panos_zone" "z3" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ interfaces = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "z3"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;Plan: 6 to add, 0 to change, 0 to destroy.&lt;BR /&gt;panos_zone.z2: Creating...&lt;BR /&gt;panos_zone.z1: Creating...&lt;BR /&gt;panos_zone.z3: Creating...&lt;BR /&gt;panos_ethernet_interface.x: Creating...&lt;BR /&gt;╷&lt;BR /&gt;│ Error: Request cancelled&lt;BR /&gt;│&lt;BR /&gt;│ with panos_ethernet_interface.x,&lt;BR /&gt;│ on main.tf line 160, in resource "panos_ethernet_interface" "x":&lt;BR /&gt;│ 160: resource "panos_ethernet_interface" "x" {&lt;BR /&gt;│&lt;BR /&gt;│ The plugin.(*GRPCProvider).ApplyResourceChange request was cancelled.&lt;BR /&gt;╵&lt;BR /&gt;╷&lt;BR /&gt;│ Error: tmpl or ts must be specified&lt;BR /&gt;│&lt;BR /&gt;│ with panos_zone.z1,&lt;BR /&gt;│ on main.tf line 167, in resource "panos_zone" "z1":&lt;BR /&gt;│ 167: resource "panos_zone" "z1" {&lt;BR /&gt;│&lt;BR /&gt;╵&lt;BR /&gt;╷&lt;BR /&gt;│ Error: tmpl or ts must be specified&lt;BR /&gt;│&lt;BR /&gt;│ with panos_zone.z2,&lt;BR /&gt;│ on main.tf line 172, in resource "panos_zone" "z2":&lt;BR /&gt;│ 172: resource "panos_zone" "z2" {&lt;BR /&gt;│&lt;BR /&gt;╵&lt;BR /&gt;╷&lt;BR /&gt;│ Error: tmpl or ts must be specified&lt;BR /&gt;│&lt;BR /&gt;│ with panos_zone.z3,&lt;BR /&gt;│ on main.tf line 177, in resource "panos_zone" "z3":&lt;BR /&gt;│ 177: resource "panos_zone" "z3" {&lt;BR /&gt;│&lt;BR /&gt;╵&lt;BR /&gt;Stack trace from the terraform-provider-panos_v1.11.1 plugin:&lt;BR /&gt;panic: interface conversion: interface {} is *pango.Panorama, not *pango.Firewall&lt;BR /&gt;goroutine 31 [running]:&lt;BR /&gt;github.com/terraform-providers/terraform-provider-panos/panos.createEthernetInterface(0x11a59a0, {0x131bda0, 0xc00000a1e0})&lt;BR /&gt;github.com/terraform-providers/terraform-provider-panos/panos/resource_ethernet_interface.go:204 +0x2b7&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc00060d540, 0xc000ab0410, 0xc000b96500, {0x131bda0, 0xc00000a1e0})&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk@v1.17.2/helper/schema/resource.go:320 +0x438&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc00004cb80, 0xc000ee3a68, 0x132fd4b, 0xf)&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk@v1.17.2/helper/schema/provider.go:294 +0x70&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ApplyResourceChange(0xc00011ad20, {0xc000b5e2a0, 0x4b5646}, 0xc000b5e2a0)&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk@v1.17.2/internal/helper/plugin/grpc_provider.go:895 +0x7c5&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x12e14c0, 0xc00011ad20}, {0x1572b90, 0xc000ed4e70}, 0xc000e8c360, 0x0)&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk@v1.17.2/internal/tfplugin5/tfplugin5.pb.go:3305 +0x170&lt;BR /&gt;google.golang.org/grpc.(*Server).processUnaryRPC(0xc000357880, {0x1583bc0, 0xc000418600}, 0xc000d5a100, 0xc000ab24b0, 0x1d5c340, 0x0)&lt;BR /&gt;google.golang.org/grpc@v1.32.0/server.go:1194 +0xc8f&lt;BR /&gt;google.golang.org/grpc.(*Server).handleStream(0xc000357880, {0x1583bc0, 0xc000418600}, 0xc000d5a100, 0x0)&lt;BR /&gt;google.golang.org/grpc@v1.32.0/server.go:1517 +0xa2a&lt;BR /&gt;google.golang.org/grpc.(*Server).serveStreams.func1.2()&lt;BR /&gt;google.golang.org/grpc@v1.32.0/server.go:859 +0x98&lt;BR /&gt;created by google.golang.org/grpc.(*Server).serveStreams.func1&lt;BR /&gt;google.golang.org/grpc@v1.32.0/server.go:857 +0x294&lt;BR /&gt;Error: The terraform-provider-panos_v1.11.1 plugin crashed!&lt;BR /&gt;This is always indicative of a bug within the plugin. It would be immensely&lt;BR /&gt;helpful if you could report the crash with the plugin's maintainers so that it&lt;BR /&gt;can be fixed. The output above should help diagnose the issue.&lt;BR /&gt;[autouser@svrvm1 terraform]$&lt;/P&gt;&lt;P&gt;======================================================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2023 02:02:23 GMT</pubDate>
    <dc:creator>ManojManoj</dc:creator>
    <dc:date>2023-09-06T02:02:23Z</dc:date>
    <item>
      <title>Panorama Nat Policy group - nat_rule_group not working</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/panorama-nat-policy-group-nat-rule-group-not-working/m-p/556623#M3429</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi Team ,&lt;/P&gt;&lt;P&gt;We are testing the panos_nat_rule_group on panorama and somehow it is not working&lt;/P&gt;&lt;P&gt;1) Below is the official terraform documentation for Panorama Nat Policy group&lt;BR /&gt;&lt;A href="https://registry.terraform.io/providers/migara/pan-os/latest/docs/resources/nat_rule_group" target="_blank"&gt;https://registry.terraform.io/providers/migara/pan-os/latest/docs/resources/nat_rule_group&lt;/A&gt;&lt;BR /&gt;The example provided is not working. When we do ‘terraform plan’ – it is not showing any error but when we do terraform apply – it is throwing lots of errors.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Below is the verion we are using&lt;/P&gt;&lt;P&gt;terraform {&lt;BR /&gt;required_providers {&lt;BR /&gt;panos = {&lt;BR /&gt;source = "PaloAltoNetworks/panos"&lt;BR /&gt;version = "1.11.1"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you share the working code example of terraform for panos_nat_rule_group&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;===below is the code and the error ===============&lt;/P&gt;&lt;P&gt;============== code from the above website ===================&lt;BR /&gt;resource "panos_nat_rule_group" "bot" {&lt;BR /&gt;rule {&lt;BR /&gt;name = "second"&lt;BR /&gt;original_packet {&lt;BR /&gt;source_zones = [panos_zone.z2.name]&lt;BR /&gt;destination_zone = panos_zone.z3.name&lt;BR /&gt;destination_interface = panos_ethernet_interface.x.name&lt;BR /&gt;source_addresses = ["any"]&lt;BR /&gt;destination_addresses = ["any"]&lt;BR /&gt;}&lt;BR /&gt;translated_packet {&lt;BR /&gt;source {}&lt;BR /&gt;destination {&lt;BR /&gt;static_translation {&lt;BR /&gt;address = "10.2.3.1"&lt;BR /&gt;port = 5678&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;rule {&lt;BR /&gt;name = "third"&lt;BR /&gt;original_packet {&lt;BR /&gt;source_zones = [panos_zone.z3.name]&lt;BR /&gt;destination_zone = panos_zone.z2.name&lt;BR /&gt;destination_interface = panos_ethernet_interface.x.name&lt;BR /&gt;source_addresses = ["any"]&lt;BR /&gt;destination_addresses = ["any"]&lt;BR /&gt;}&lt;BR /&gt;translated_packet {&lt;BR /&gt;source {&lt;BR /&gt;static_ip {&lt;BR /&gt;translated_address = "192.168.1.5"&lt;BR /&gt;bi_directional = true&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;destination {}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;resource "panos_nat_rule_group" "top" {&lt;BR /&gt;position_keyword = "directly before"&lt;BR /&gt;position_reference = panos_nat_rule_group.bot.rule.0.name&lt;BR /&gt;rule {&lt;BR /&gt;name = "first"&lt;BR /&gt;original_packet {&lt;BR /&gt;source_zones = [panos_zone.z1.name]&lt;BR /&gt;destination_zone = panos_zone.z1.name&lt;BR /&gt;destination_interface = panos_ethernet_interface.x.name&lt;BR /&gt;source_addresses = ["any"]&lt;BR /&gt;destination_addresses = ["any"]&lt;BR /&gt;}&lt;BR /&gt;translated_packet {&lt;BR /&gt;source {&lt;BR /&gt;dynamic_ip_and_port {&lt;BR /&gt;interface_address {&lt;BR /&gt;interface = panos_ethernet_interface.x.name&lt;BR /&gt;ip_address = panos_ethernet_interface.x.static_ips.0&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;destination {&lt;BR /&gt;static_translation {&lt;BR /&gt;address = "10.1.1.1"&lt;BR /&gt;port = 1234&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;resource "panos_ethernet_interface" "x" {&lt;BR /&gt;name = "ethernet1/6"&lt;BR /&gt;mode = "layer3"&lt;BR /&gt;vsys = "vsys1"&lt;BR /&gt;static_ips = ["10.5.5.1/24"]&lt;BR /&gt;}&lt;BR /&gt;resource "panos_zone" "z1" {&lt;BR /&gt;name = "z1"&lt;BR /&gt;mode = "layer3"&lt;BR /&gt;}&lt;BR /&gt;resource "panos_zone" "z2" {&lt;BR /&gt;name = "z2"&lt;BR /&gt;mode = "layer3"&lt;BR /&gt;}&lt;BR /&gt;resource "panos_zone" "z3" {&lt;BR /&gt;name = "z3"&lt;BR /&gt;mode = "layer3"&lt;BR /&gt;}&lt;BR /&gt;=========================&lt;BR /&gt;[autouser@svrvm1 terraform]$ terraform plan&lt;BR /&gt;panos_address_object.objects1["snet-appgw"]: Refreshing state... [id=FW_POC_grp:snet-appgw]&lt;BR /&gt;panos_address_object.objects1["snet-greenpreprd"]: Refreshing state... [id=FW_POC_grp:snet-greenpreprd]&lt;BR /&gt;panos_panorama_static_route_ipv4.static_route["snet-greenprd"]: Refreshing state... [id=Templates_POC::VR-Trust:snet-greenprd]&lt;BR /&gt;panos_address_object.objects1["snet-ext-green"]: Refreshing state... [id=FW_POC_grp:snet-ext-green]&lt;BR /&gt;panos_address_object.objects1["nic-fw-amsaw-preprd-pa-001-untrust"]: Refreshing state... [id=FW_POC_grp:nic-fw-amsaw-preprd-pa-001-untrust]&lt;BR /&gt;panos_address_object.objects1["green-lb-preprd-frontend"]: Refreshing state... [id=FW_POC_grp:green-lb-preprd-frontend]&lt;BR /&gt;panos_panorama_static_route_ipv4.static_route["snet-greenpreprd"]: Refreshing state... [id=Templates_POC::VR-Trust:snet-greenpreprd]&lt;BR /&gt;panos_panorama_service_object.service_object["TCP-44308"]: Refreshing state... [id=shared:TCP-44308]&lt;BR /&gt;panos_security_policy.tfpostrule1: Refreshing state... [id=FW_POC_grp:post-rulebase:vsys1]&lt;BR /&gt;Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with&lt;BR /&gt;the following symbols:&lt;BR /&gt;+ create&lt;BR /&gt;Terraform will perform the following actions:&lt;BR /&gt;# panos_ethernet_interface.x will be created&lt;BR /&gt;+ resource "panos_ethernet_interface" "x" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "ethernet1/6"&lt;BR /&gt;+ static_ips = [&lt;BR /&gt;+ "10.5.5.1/24",&lt;BR /&gt;]&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;# panos_nat_rule_group.bot will be created&lt;BR /&gt;+ resource "panos_nat_rule_group" "bot" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;+ rule {&lt;BR /&gt;+ name = "second"&lt;BR /&gt;+ type = "ipv4"&lt;BR /&gt;+ uuid = (known after apply)&lt;BR /&gt;+ original_packet {&lt;BR /&gt;+ destination_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ destination_interface = "ethernet1/6"&lt;BR /&gt;+ destination_zone = "z3"&lt;BR /&gt;+ service = "any"&lt;BR /&gt;+ source_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ source_zones = [&lt;BR /&gt;+ "z2",&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;+ translated_packet {&lt;BR /&gt;+ destination {&lt;BR /&gt;+ static_translation {&lt;BR /&gt;+ address = "10.2.3.1"&lt;BR /&gt;+ port = 5678&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;+ source {&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;+ rule {&lt;BR /&gt;+ name = "third"&lt;BR /&gt;+ type = "ipv4"&lt;BR /&gt;+ uuid = (known after apply)&lt;BR /&gt;+ original_packet {&lt;BR /&gt;+ destination_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ destination_interface = "ethernet1/6"&lt;BR /&gt;+ destination_zone = "z2"&lt;BR /&gt;+ service = "any"&lt;BR /&gt;+ source_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ source_zones = [&lt;BR /&gt;+ "z3",&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;+ translated_packet {&lt;BR /&gt;+ destination {&lt;BR /&gt;}&lt;BR /&gt;+ source {&lt;BR /&gt;+ static_ip {&lt;BR /&gt;+ bi_directional = true&lt;BR /&gt;+ translated_address = "192.168.1.5"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;# panos_nat_rule_group.top will be created&lt;BR /&gt;+ resource "panos_nat_rule_group" "top" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ position_keyword = "directly before"&lt;BR /&gt;+ position_reference = "second"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;+ rule {&lt;BR /&gt;+ name = "first"&lt;BR /&gt;+ type = "ipv4"&lt;BR /&gt;+ uuid = (known after apply)&lt;BR /&gt;+ original_packet {&lt;BR /&gt;+ destination_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ destination_interface = "ethernet1/6"&lt;BR /&gt;+ destination_zone = "z1"&lt;BR /&gt;+ service = "any"&lt;BR /&gt;+ source_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ source_zones = [&lt;BR /&gt;+ "z1",&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;+ translated_packet {&lt;BR /&gt;+ destination {&lt;BR /&gt;+ static_translation {&lt;BR /&gt;+ address = "10.1.1.1"&lt;BR /&gt;+ port = 1234&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;+ source {&lt;BR /&gt;+ dynamic_ip_and_port {&lt;BR /&gt;+ interface_address {&lt;BR /&gt;+ interface = "ethernet1/6"&lt;BR /&gt;+ ip_address = "10.5.5.1/24"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;# panos_zone.z1 will be created&lt;BR /&gt;+ resource "panos_zone" "z1" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ interfaces = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "z1"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;# panos_zone.z2 will be created&lt;BR /&gt;+ resource "panos_zone" "z2" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ interfaces = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "z2"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;# panos_zone.z3 will be created&lt;BR /&gt;+ resource "panos_zone" "z3" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ interfaces = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "z3"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;Plan: 6 to add, 0 to change, 0 to destroy.&lt;BR /&gt;──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────&lt;BR /&gt;Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if&lt;BR /&gt;you run "terraform apply" now.&lt;BR /&gt;[autouser@svrvm1 terraform]$&lt;BR /&gt;Here is the terraform apply and it’s errors&lt;BR /&gt;[autouser@svrvm1 terraform]$ terraform apply --auto-approve&lt;BR /&gt;panos_panorama_service_object.service_object["TCP-44308"]: Refreshing state... [id=shared:TCP-44308]&lt;BR /&gt;panos_address_object.objects1["snet-ext-green"]: Refreshing state... [id=FW_POC_grp:snet-ext-green]&lt;BR /&gt;panos_address_object.objects1["snet-greenpreprd"]: Refreshing state... [id=FW_POC_grp:snet-greenpreprd]&lt;BR /&gt;panos_address_object.objects1["snet-appgw"]: Refreshing state... [id=FW_POC_grp:snet-appgw]&lt;BR /&gt;panos_address_object.objects1["nic-fw-amsaw-preprd-pa-001-untrust"]: Refreshing state... [id=FW_POC_grp:nic-fw-amsaw-preprd-pa-001-untrust]&lt;BR /&gt;panos_address_object.objects1["green-lb-preprd-frontend"]: Refreshing state... [id=FW_POC_grp:green-lb-preprd-frontend]&lt;BR /&gt;panos_panorama_static_route_ipv4.static_route["snet-greenprd"]: Refreshing state... [id=Templates_POC::VR-Trust:snet-greenprd]&lt;BR /&gt;panos_panorama_static_route_ipv4.static_route["snet-greenpreprd"]: Refreshing state... [id=Templates_POC::VR-Trust:snet-greenpreprd]&lt;BR /&gt;panos_security_policy.tfpostrule1: Refreshing state... [id=FW_POC_grp:post-rulebase:vsys1]&lt;BR /&gt;Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with&lt;BR /&gt;the following symbols:&lt;BR /&gt;+ create&lt;BR /&gt;Terraform will perform the following actions:&lt;BR /&gt;# panos_ethernet_interface.x will be created&lt;BR /&gt;+ resource "panos_ethernet_interface" "x" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "ethernet1/6"&lt;BR /&gt;+ static_ips = [&lt;BR /&gt;+ "10.5.5.1/24",&lt;BR /&gt;]&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;# panos_nat_rule_group.bot will be created&lt;BR /&gt;+ resource "panos_nat_rule_group" "bot" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;+ rule {&lt;BR /&gt;+ name = "second"&lt;BR /&gt;+ type = "ipv4"&lt;BR /&gt;+ uuid = (known after apply)&lt;BR /&gt;+ original_packet {&lt;BR /&gt;+ destination_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ destination_interface = "ethernet1/6"&lt;BR /&gt;+ destination_zone = "z3"&lt;BR /&gt;+ service = "any"&lt;BR /&gt;+ source_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ source_zones = [&lt;BR /&gt;+ "z2",&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;+ translated_packet {&lt;BR /&gt;+ destination {&lt;BR /&gt;+ static_translation {&lt;BR /&gt;+ address = "10.2.3.1"&lt;BR /&gt;+ port = 5678&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;+ source {&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;+ rule {&lt;BR /&gt;+ name = "third"&lt;BR /&gt;+ type = "ipv4"&lt;BR /&gt;+ uuid = (known after apply)&lt;BR /&gt;+ original_packet {&lt;BR /&gt;+ destination_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ destination_interface = "ethernet1/6"&lt;BR /&gt;+ destination_zone = "z2"&lt;BR /&gt;+ service = "any"&lt;BR /&gt;+ source_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ source_zones = [&lt;BR /&gt;+ "z3",&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;+ translated_packet {&lt;BR /&gt;+ destination {&lt;BR /&gt;}&lt;BR /&gt;+ source {&lt;BR /&gt;+ static_ip {&lt;BR /&gt;+ bi_directional = true&lt;BR /&gt;+ translated_address = "192.168.1.5"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;# panos_nat_rule_group.top will be created&lt;BR /&gt;+ resource "panos_nat_rule_group" "top" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ position_keyword = "directly before"&lt;BR /&gt;+ position_reference = "second"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;+ rule {&lt;BR /&gt;+ name = "first"&lt;BR /&gt;+ type = "ipv4"&lt;BR /&gt;+ uuid = (known after apply)&lt;BR /&gt;+ original_packet {&lt;BR /&gt;+ destination_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ destination_interface = "ethernet1/6"&lt;BR /&gt;+ destination_zone = "z1"&lt;BR /&gt;+ service = "any"&lt;BR /&gt;+ source_addresses = [&lt;BR /&gt;+ "any",&lt;BR /&gt;]&lt;BR /&gt;+ source_zones = [&lt;BR /&gt;+ "z1",&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;+ translated_packet {&lt;BR /&gt;+ destination {&lt;BR /&gt;+ static_translation {&lt;BR /&gt;+ address = "10.1.1.1"&lt;BR /&gt;+ port = 1234&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;+ source {&lt;BR /&gt;+ dynamic_ip_and_port {&lt;BR /&gt;+ interface_address {&lt;BR /&gt;+ interface = "ethernet1/6"&lt;BR /&gt;+ ip_address = "10.5.5.1/24"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;# panos_zone.z1 will be created&lt;BR /&gt;+ resource "panos_zone" "z1" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ interfaces = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "z1"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;# panos_zone.z2 will be created&lt;BR /&gt;+ resource "panos_zone" "z2" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ interfaces = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "z2"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;# panos_zone.z3 will be created&lt;BR /&gt;+ resource "panos_zone" "z3" {&lt;BR /&gt;+ id = (known after apply)&lt;BR /&gt;+ interfaces = (known after apply)&lt;BR /&gt;+ mode = "layer3"&lt;BR /&gt;+ name = "z3"&lt;BR /&gt;+ vsys = "vsys1"&lt;BR /&gt;}&lt;BR /&gt;Plan: 6 to add, 0 to change, 0 to destroy.&lt;BR /&gt;panos_zone.z2: Creating...&lt;BR /&gt;panos_zone.z1: Creating...&lt;BR /&gt;panos_zone.z3: Creating...&lt;BR /&gt;panos_ethernet_interface.x: Creating...&lt;BR /&gt;╷&lt;BR /&gt;│ Error: Request cancelled&lt;BR /&gt;│&lt;BR /&gt;│ with panos_ethernet_interface.x,&lt;BR /&gt;│ on main.tf line 160, in resource "panos_ethernet_interface" "x":&lt;BR /&gt;│ 160: resource "panos_ethernet_interface" "x" {&lt;BR /&gt;│&lt;BR /&gt;│ The plugin.(*GRPCProvider).ApplyResourceChange request was cancelled.&lt;BR /&gt;╵&lt;BR /&gt;╷&lt;BR /&gt;│ Error: tmpl or ts must be specified&lt;BR /&gt;│&lt;BR /&gt;│ with panos_zone.z1,&lt;BR /&gt;│ on main.tf line 167, in resource "panos_zone" "z1":&lt;BR /&gt;│ 167: resource "panos_zone" "z1" {&lt;BR /&gt;│&lt;BR /&gt;╵&lt;BR /&gt;╷&lt;BR /&gt;│ Error: tmpl or ts must be specified&lt;BR /&gt;│&lt;BR /&gt;│ with panos_zone.z2,&lt;BR /&gt;│ on main.tf line 172, in resource "panos_zone" "z2":&lt;BR /&gt;│ 172: resource "panos_zone" "z2" {&lt;BR /&gt;│&lt;BR /&gt;╵&lt;BR /&gt;╷&lt;BR /&gt;│ Error: tmpl or ts must be specified&lt;BR /&gt;│&lt;BR /&gt;│ with panos_zone.z3,&lt;BR /&gt;│ on main.tf line 177, in resource "panos_zone" "z3":&lt;BR /&gt;│ 177: resource "panos_zone" "z3" {&lt;BR /&gt;│&lt;BR /&gt;╵&lt;BR /&gt;Stack trace from the terraform-provider-panos_v1.11.1 plugin:&lt;BR /&gt;panic: interface conversion: interface {} is *pango.Panorama, not *pango.Firewall&lt;BR /&gt;goroutine 31 [running]:&lt;BR /&gt;github.com/terraform-providers/terraform-provider-panos/panos.createEthernetInterface(0x11a59a0, {0x131bda0, 0xc00000a1e0})&lt;BR /&gt;github.com/terraform-providers/terraform-provider-panos/panos/resource_ethernet_interface.go:204 +0x2b7&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).Apply(0xc00060d540, 0xc000ab0410, 0xc000b96500, {0x131bda0, 0xc00000a1e0})&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk@v1.17.2/helper/schema/resource.go:320 +0x438&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Provider).Apply(0xc00004cb80, 0xc000ee3a68, 0x132fd4b, 0xf)&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk@v1.17.2/helper/schema/provider.go:294 +0x70&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk/internal/helper/plugin.(*GRPCProviderServer).ApplyResourceChange(0xc00011ad20, {0xc000b5e2a0, 0x4b5646}, 0xc000b5e2a0)&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk@v1.17.2/internal/helper/plugin/grpc_provider.go:895 +0x7c5&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x12e14c0, 0xc00011ad20}, {0x1572b90, 0xc000ed4e70}, 0xc000e8c360, 0x0)&lt;BR /&gt;github.com/hashicorp/terraform-plugin-sdk@v1.17.2/internal/tfplugin5/tfplugin5.pb.go:3305 +0x170&lt;BR /&gt;google.golang.org/grpc.(*Server).processUnaryRPC(0xc000357880, {0x1583bc0, 0xc000418600}, 0xc000d5a100, 0xc000ab24b0, 0x1d5c340, 0x0)&lt;BR /&gt;google.golang.org/grpc@v1.32.0/server.go:1194 +0xc8f&lt;BR /&gt;google.golang.org/grpc.(*Server).handleStream(0xc000357880, {0x1583bc0, 0xc000418600}, 0xc000d5a100, 0x0)&lt;BR /&gt;google.golang.org/grpc@v1.32.0/server.go:1517 +0xa2a&lt;BR /&gt;google.golang.org/grpc.(*Server).serveStreams.func1.2()&lt;BR /&gt;google.golang.org/grpc@v1.32.0/server.go:859 +0x98&lt;BR /&gt;created by google.golang.org/grpc.(*Server).serveStreams.func1&lt;BR /&gt;google.golang.org/grpc@v1.32.0/server.go:857 +0x294&lt;BR /&gt;Error: The terraform-provider-panos_v1.11.1 plugin crashed!&lt;BR /&gt;This is always indicative of a bug within the plugin. It would be immensely&lt;BR /&gt;helpful if you could report the crash with the plugin's maintainers so that it&lt;BR /&gt;can be fixed. The output above should help diagnose the issue.&lt;BR /&gt;[autouser@svrvm1 terraform]$&lt;/P&gt;&lt;P&gt;======================================================================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 02:02:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/panorama-nat-policy-group-nat-rule-group-not-working/m-p/556623#M3429</guid>
      <dc:creator>ManojManoj</dc:creator>
      <dc:date>2023-09-06T02:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Panorama Nat Policy group - nat_rule_group not working</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/panorama-nat-policy-group-nat-rule-group-not-working/m-p/559540#M3438</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/313840"&gt;@ManojManoj&lt;/a&gt;, the best place to report this is on GitHub:&amp;nbsp;&lt;A href="https://github.com/PaloAltoNetworks/terraform-provider-panos/issues" target="_blank"&gt;https://github.com/PaloAltoNetworks/terraform-provider-panos/issues&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please check in the existing Issues if this has already been reported, and if it has not been reported, please create a new Issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 15:57:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/panorama-nat-policy-group-nat-rule-group-not-working/m-p/559540#M3438</guid>
      <dc:creator>JimmyHolland</dc:creator>
      <dc:date>2023-09-26T15:57:15Z</dc:date>
    </item>
  </channel>
</rss>

