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 <[email protected]>
---
 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..4da9458 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


_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to