-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Private vlan configuration needs to be its own resource that depends on the initial vlan configuration. If you attempt to configure private vlan association on your initial terraform apply, it will cause errors unless the vlan already exists.
For example if I have not pre-configured vlan 30, this will cause it to fail.
iosxe:
devices:
- name: Device1
configuration:
system:
vlan:
vlans:
- id: 30
private_vlan_association: 31
shutdown: false
- id: 31
shutdown: False
But, if I configure vlan 30 by CLI and then apply the above, it will succeed. Or if I apply with private_vlan _association commented out, and then I uncomment it and apply once more it works.
There is a dependency blocking the configuration if that vlan is not already created on the device, and I believe the best work around is to create a new private vlan resource that you can have dependent on the vlan.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request