Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aggregate ethernet return unexpected vsys #440

Open
StevenHolm opened this issue May 24, 2024 · 0 comments
Open

Aggregate ethernet return unexpected vsys #440

StevenHolm opened this issue May 24, 2024 · 0 comments
Labels

Comments

@StevenHolm
Copy link

Describe the bug

When creating resource "panos_ethernet_interface" with parameter "aggregate_group" it fails to return correct vsys into statefile

Expected behavior

Attach interface to portchannel- which it does correctly in appliance
panos_ethernet_interface.interface["ethernet1/1"]: Modifications complete after 0s [id=vsys1:ethernet1/1] panos_ethernet_interface.interface["ethernet1/2"]: Modifications complete after 1s [id=vsys1:ethernet1/2]

Current behavior

In terraform state the "vsys" parameter replaces the input with "(not )
lets say input vsys is "vsys1" - in terraform state it is returned as "(not vsys1)".
even if input is "(not vsys1)", in terraform state it is returned as (not (not vsys1))"

this bug is only present when using parameter "aggregation_group"

code to reproduce

resource "panos_aggregate_interface" "port_channel" {
for_each = local.device["port_channels"]
vsys = "vsys1" #hardcode on purpose
name = each.key
mode = each.value.mode
lacp_enable = each.value.lacp_enable ? true : false
lacp_mode = each.value.lacp_mode
lldp_enable = each.value.lldp

}

resource "panos_ethernet_interface" "interface" {
for_each = local.device["ethernet_ports"]
vsys = "vsys1" #hardcode on purpose
name = each.key
mode = "aggregate-group"
aggregate_group = panos_aggregate_interface.port_channel[each.value.port_channel].name
}

Your Environment

Hardware: Pa-1410
terraform: v1.6.3
provider: panos v1.11.1

@StevenHolm StevenHolm added the bug label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant