[pve-devel] [pve-network 4/4] api2: ipam status: display ipam zones without dhcp flag

Alexandre Derumier aderumier at odiso.com
Thu Jan 4 17:27:33 CET 2024


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 src/PVE/API2/Network/SDN/Ipams.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/API2/Network/SDN/Ipams.pm b/src/PVE/API2/Network/SDN/Ipams.pm
index 27ead02..a70a2f3 100644
--- a/src/PVE/API2/Network/SDN/Ipams.pm
+++ b/src/PVE/API2/Network/SDN/Ipams.pm
@@ -293,7 +293,7 @@ __PACKAGE__->register_method ({
 
 	for my $zone_id (keys %{$ipam_db->{zones}}) {
 	    my $zone_config = PVE::Network::SDN::Zones::get_zone($zone_id, 1);
-            next if !$zone_config || $zone_config->{ipam} ne 'pve' || !$zone_config->{dhcp};
+            next if !$zone_config || $zone_config->{ipam} ne 'pve';
 
 	    my $zone = $ipam_db->{zones}->{$zone_id};
 
-- 
2.39.2




More information about the pve-devel mailing list