Skip to content

SDN Add auto_apply to SDN-related resources #2212

@maciej-lech

Description

@maciej-lech

Is your feature request related to a problem? Please describe.
Currently, if I use a single resource (VNET) I have to use two proxmox_virtual_environment_sdn_applier resources (applier and finalizer).

Describe the solution you'd like
As applying takes long time, I would prefer skip using those and just "auto-apply" during the creation and destruction.

Describe alternatives you've considered
Using proxmox_virtual_environment_sdn_applier which is costly.

Additional context

resource "proxmox_virtual_environment_sdn_vnet" "vnet" {
  id            = format("vnet%s", terraform_data.vlan.output)
  zone          = local.zone

  isolate_ports = false
  tag           = tonumber(terraform_data.vlan.output)
  vlan_aware    = true

  depends_on = [
    proxmox_virtual_environment_sdn_applier.vnet_finalizer,
  ]
}

resource "proxmox_virtual_environment_sdn_applier" "vnet_finalizer" {
}

resource "proxmox_virtual_environment_sdn_applier" "vnet_applier" {
  depends_on = [
    proxmox_virtual_environment_sdn_vnet.vnet,
  ]

  lifecycle {
    replace_triggered_by = [
      proxmox_virtual_environment_sdn_vnet.vnet,
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions