Skip to content

Commit

Permalink
More device schema fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Nov 11, 2024
1 parent 8c8f01d commit ba2d4df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fmc_devices.tf
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ resource "fmc_device_physical_interfaces" "physical_interface" {
locals {
res_sub_interface = flatten([
for domain in local.domains : [
for device in try(domain.devices, []) : [
for device in try(domain.devices.devices, []) : [
for physicalinterface in try(device.physical_interfaces, []) : [
for subinterface in try(physicalinterface.subinterfaces, []) : {
key = "${device.name}/${physicalinterface.interface}/${subinterface.id}"
Expand Down Expand Up @@ -194,7 +194,7 @@ locals {

res_vtep_interfaces = flatten([
for domain in local.domains : [
for device in try(domain.devices, []) : [
for device in try(domain.devices.devices, []) : [
for physicalinterface in try(device.physical_interfaces, []) : [
for vtep in try(physicalinterface.vteps, []) : {
key = "${device.name}/${physicalinterface.interface}/${vtep.encapsulation_port}"
Expand Down

0 comments on commit ba2d4df

Please sign in to comment.