PaloAltoNetworks / terraform-provider-panos

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

panos_panorama_ethernet_interface tries to set vsys on aggregate-group mode interfaces #430

Open iholck opened 4 months ago

iholck commented 4 months ago

Describe the bug

When running terraform plan on template containing an interface configured as an aggregate-group member, the provider plans to update vsys on the interface

Expected behavior

vsys is not valid on an interface configured as an aggregate-group member, so no change should be planned

Current behavior

The provider plans to update vsys on the interface

Steps to reproduce

  1. Plan and apply script configuring an ethernet interface as member of an aggregate-group:

    
    name = "ethernet1/1"
    template = "template1"
    mode     = "aggregate-group"
    aggregate_group = "ae1"
    
    lifecycle {
    create_before_destroy = true
    }
    }
  2. Run Plan again.

Screenshots

 # module.interfaces.panos_panorama_ethernet_interface.aggregate-member-interfaces["template1/ethernet1/1"] will be updated in-place
  ~ resource "panos_panorama_ethernet_interface" "aggregate-member-interfaces" {
        id                              = "template1::vsys1:ethernet1/1"
        name                            = "ethernet1/1"
      ~ vsys                            = "not vsys1" -> "vsys1"
        # (20 unchanged attributes hidden)
    }

Your Environment