[pve-devel] [PATCH pve-network 3/9] sdn: status: add zone type to sdn resource

Stefan Hanreich s.hanreich at proxmox.com
Thu Oct 30 16:48:28 CET 2025


This will mainly be used by the UI determine whether to show panels
that are specific to a certain zone type (e.g. IP-VRF panel for EVPN
zones).

Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
---
 src/PVE/Network/SDN/Zones.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/PVE/Network/SDN/Zones.pm b/src/PVE/Network/SDN/Zones.pm
index 5f30df3..050b88c 100644
--- a/src/PVE/Network/SDN/Zones.pm
+++ b/src/PVE/Network/SDN/Zones.pm
@@ -254,7 +254,9 @@ sub status {
         next
             if defined($zone_cfg->{ids}->{$id}->{nodes})
             && !$zone_cfg->{ids}->{$id}->{nodes}->{$nodename};
+
         $zone_status->{$id}->{status} = $err_config ? 'pending' : 'available';
+        $zone_status->{$id}->{zone_type} = $zone_cfg->{ids}->{$id}->{type};
     }
 
     foreach my $id (sort keys %{ $vnet_cfg->{ids} }) {
-- 
2.47.3




More information about the pve-devel mailing list