feat(vm_provision_mixin): expose fixed_vlan_tag for SDN vnets

vnet's SDN tag (VLAN ID) is now surfaced in get_network_targets() output
instead of being silently discarded. Bridges never set this field.
This commit is contained in:
Christian Manivong
2026-07-07 10:22:56 +02:00
parent 76d74753da
commit ddd4e6fc03
2 changed files with 49 additions and 1 deletions
+10 -1
View File
@@ -415,6 +415,15 @@ class ProxmoxVMProvisionMixin:
if not name:
continue
# A vnet's VLAN is already fixed by its zone/tag — no separate vlan_tag applies.
targets.append({"name": name, "kind": "vnet", "vlan_aware": False})
tag = vnet.get("tag")
fixed_vlan_tag = int(tag) if tag is not None else None
targets.append(
{
"name": name,
"kind": "vnet",
"vlan_aware": False,
"fixed_vlan_tag": fixed_vlan_tag,
}
)
return targets