Skip to content

Commit

Permalink
dhcp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Parafiniuk committed Jan 14, 2025
1 parent fa6de4e commit c776b5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meraki_switches.tf
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ locals {
switch_stack_id = meraki_switch_stack.net_switch_stacks["${organization.name}/${network.name}/switch_stacks/${switch_stack.name}"].id
interface_id = meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_first["${organization.name}/${network.name}/switch_stacks/${switch_stack.name}/routing_interfaces/${routing_interface.name}"].id
data = try(routing_interface.dhcp, null)
} if try(routing_interface.default_gateway, null) != null
} if try(routing_interface.default_gateway, null) != null && try(routing_interface.dhcp, null) != null
] if try(network.switch_stacks, null) != null
] if try(organization.networks, null) != null
] if try(domain.organizations, null) != null
Expand Down Expand Up @@ -610,7 +610,7 @@ locals {
switch_stack_id = meraki_switch_stack.net_switch_stacks["${organization.name}/${network.name}/switch_stacks/${switch_stack.name}"].id
interface_id = meraki_switch_stack_routing_interface.net_switch_stack_routing_interface_not_first["${organization.name}/${network.name}/switch_stacks/${switch_stack.name}/routing_interfaces/${routing_interface.name}"].id
data = try(routing_interface.dhcp, null)
} if try(routing_interface.default_gateway, null) == null
} if try(routing_interface.default_gateway, null) == null && try(routing_interface.dhcp, null) != null
] if try(network.switch_stacks, null) != null
] if try(organization.networks, null) != null
] if try(domain.organizations, null) != null
Expand Down

0 comments on commit c776b5a

Please sign in to comment.