Skip to content

Resource: proxmox_sdn_controller_evpn

The EVPN zone requires an external controller to manage the control plane. The EVPN controller plugin configures the Free Range Routing (frr) router.

Example Usage

# SDN Controller (EVPN) - Example configuration for SDN Controller with fabric
resource "proxmox_sdn_fabric_openfabric" "example_fabric" {
  id        = "main"
  ip_prefix = "10.0.0.0/16"
  depends_on = [
    proxmox_sdn_applier.finalizer
  ]
}

resource "proxmox_sdn_controller_evpn" "example_controller_evpn" {
  id     = "evpn1"
  asn    = 65000
  fabric = proxmox_sdn_fabric_openfabric.example_fabric.id
  depends_on = [
    proxmox_sdn_applier.finalizer
  ]
}

resource "proxmox_sdn_applier" "controller_applier" {
  depends_on = [
    proxmox_sdn_controller_evpn.example_controller_evpn
  ]
}

resource "proxmox_sdn_applier" "finalizer" {
}

Schema

Required

  • asn (Number) Autonomous System Number for the EVPN controller.
  • id (String) The SDN controller object identifier.

Optional

  • fabric (String) ID of the fabric this EVPN controller belongs to.
  • peers (Set of String) Set of BGP peer IP addresses for the EVPN controller.

Read-Only

  • digest (String) Digest of the controller section.

Import

Import is supported using the following syntax:

#!/usr/bin/env sh
# SDN controller can be imported using its unique identifier (controller ID)
terraform import proxmox_sdn_controller_evpn.example_controller_evpn evpn1