-
Notifications
You must be signed in to change notification settings - Fork 9
Description
When a network is created, it always has a default VLAN 1 which the Terraform provider is not able to properly manage.
The import workaround given in #86 is not applicable if I require VLAN 1 to be absent. It is not possible to import and then destroy in one apply which is a blocker for me because I need to create a full network with a single apply
Ideally the API should be changed so that it becomes possible to enable VLANs on a network without creating any VLANs.
Possible workarounds I came up with:
- Have the
meraki_appliance_vlansbulk resource eliminate all VLAN configuration which is not defined in the resource- To ensure backwards compatibility this could be a flag in the resource
- Other bulk resources could also benefit from this "all or nothing" behavior
- Create a new resource which deletes VLAN 1
- I currently do this with terracurl which is super clunky
- This still doesn't help if you want to keep but modify VLAN 1, then you need the import approach but you can't use the bulk resource
On destroy of these resources, VLAN 1 has to be recreated because at least one VLAN has to exist.
Furthermore the API requires that the network of the VLAN does not conflict with networks defined on any VPN Hub. This is equally problematic because on network creation this check does not exist.