Skip to content

Private Vlan Association Configuration Fails in a Single Apply #254

@mike-krau

Description

@mike-krau

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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions