Resource: proxmox_virtual_environment_network_linux_bridge¶
Warning
Deprecated: Use proxmox_network_linux_bridge instead. This resource will be removed in v1.0.
Manages a Linux Bridge network interface in a Proxmox VE node.
Warning
Proxmox VE hides bridges from the interface list (GET /nodes/{node}/network) when the API user lacks SDN.Audit or SDN.Use on /sdn/zones/localnetwork/<iface> (a grant on / propagates). The provider reads this resource from that list, so a token without these privileges fails with "interface not found" after create or on import. Privilege-separated tokens (privsep=1, the pveum default) need the grant on the token itself, not only on the user.
Example Usage¶
resource "proxmox_virtual_environment_network_linux_bridge" "vmbr99" {
depends_on = [
proxmox_virtual_environment_network_linux_vlan.vlan99
]
node_name = "pve"
name = "vmbr99"
address = "99.99.99.99/16"
comment = "vmbr99 comment"
ports = [
# Network (or VLAN) interfaces to attach to the bridge, specified by their interface name
# (e.g. "ens18.99" for VLAN 99 on interface ens18).
# For VLAN interfaces with custom names, use the interface name without the VLAN tag, e.g. "vlan_lab"
"ens18.99"
]
# VLAN-aware bridge: permit any tagged VLAN through. Segmentation typically
# lives upstream (switch / firewall), not on the hypervisor bridge.
vlan_aware = true
vids = "2-4094"
}
resource "proxmox_virtual_environment_network_linux_vlan" "vlan99" {
node_name = "pve"
name = "ens18.99"
## or alternatively, use custom name:
# name = "vlan_lab"
# interface = "eno0"
# vlan = 98
}
Schema¶
Required¶
name(String) The interface name. Commonly vmbr[N], where 0 ≤ N ≤ 4094 (vmbr0 - vmbr4094), but can be any string containing only letters, numbers, and underscores (_), starting with a letter and at most 10 characters long.node_name(String) The name of the node.
Optional¶
address(String) The interface IPv4/CIDR address.address6(String) The interface IPv6/CIDR address.autostart(Boolean) Automatically start interface on boot (defaults totrue).comment(String) Comment for the interface.gateway(String) Default gateway address.gateway6(String) Default IPv6 gateway address.mtu(Number) The interface MTU.ports(List of String) The interface bridge ports.reload(Boolean) Whether to reload the node network configuration after this interface is created, updated or deleted (defaults totrue). Whenfalse, the change is only staged on the node and takes effect on the next reload. Any reload on the node, including one triggered by another resource, applies all staged changes.timeout_reload(Number) Timeout for network reload operations in seconds (defaults to100).vids(String) VLAN IDs allowed on the bridge (Linux Bridgebridge-vids). Space-separated list of VLAN IDs and/or hyphenated ranges (e.g."2-4094","1 20 130", or"1 10-20 30"). Requiresvlan_aware = true. PVE/ifupdown2 fills in2-4094as the implicit default for VLAN-aware bridges when this attribute is omitted; the provider surfaces that default in state.vlan_aware(Boolean) Whether the interface bridge is VLAN aware (defaults tofalse).
Read-Only¶
id(String) A unique identifier with format<node name>:<iface>
Import¶
Import is supported using the following syntax: