Replies: 2 comments
-
You would have to import the state of the resource first and then you can change it: resource "meraki_appliance_vlan" "vlan_1" {
network_id = meraki_network.test.id # Replace with your actual network ID
vlan_id = 1 # VLAN 1, already exists
appliance_ip = "192.168.1.1" # Existing or updated appliance IP
name = "Updated VLAN 1" # Update the VLAN name
subnet = "192.168.1.0/24" # Update subnet as needed
dhcp_handling = "Run a DHCP server" # Set the DHCP handling option
dhcp_lease_time = "12 hours" # Update DHCP lease time
ipv6_enabled = false # Enable or disable IPv6
mandatory_dhcp_enabled = false # Update this as needed
}
import {
to = meraki_appliance_vlan.vlan_1
id = "${meraki_network.terraform1.id},1"
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Did this answer your question? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Below is a part of the .tf file I am running to provision a meraki network. I am having trouble trying to modify VLAN1. This function attempts to create VLAN1 and gives me the error displayed at the bottom. I want to modify Default VLAN1
I want to modify the DHCP scope of VLAN1 and the IP address of VLAN 1 on the MX appliance. What is the best function or method to accomplish this?
Beta Was this translation helpful? Give feedback.
All reactions