From 57a335c4c013fda3216185d463c1fe4d62d8a2e5 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 28 Apr 2021 13:45:25 +0200 Subject: [PATCH] zones: IPAM config is optional for a zone Signed-off-by: Thomas Lamprecht --- PVE/Network/SDN/Zones/EvpnPlugin.pm | 2 +- PVE/Network/SDN/Zones/FaucetPlugin.pm | 2 +- PVE/Network/SDN/Zones/Plugin.pm | 1 + PVE/Network/SDN/Zones/QinQPlugin.pm | 2 +- PVE/Network/SDN/Zones/SimplePlugin.pm | 2 +- PVE/Network/SDN/Zones/VlanPlugin.pm | 2 +- PVE/Network/SDN/Zones/VxlanPlugin.pm | 2 +- 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/PVE/Network/SDN/Zones/EvpnPlugin.pm b/PVE/Network/SDN/Zones/EvpnPlugin.pm index a4ea8b5..4e1dc48 100644 --- a/PVE/Network/SDN/Zones/EvpnPlugin.pm +++ b/PVE/Network/SDN/Zones/EvpnPlugin.pm @@ -49,7 +49,7 @@ sub options { dns => { optional => 1 }, reversedns => { optional => 1 }, dnszone => { optional => 1 }, - ipam => { optional => 0 }, + ipam => { optional => 1 }, }; } diff --git a/PVE/Network/SDN/Zones/FaucetPlugin.pm b/PVE/Network/SDN/Zones/FaucetPlugin.pm index a811ada..a237d17 100644 --- a/PVE/Network/SDN/Zones/FaucetPlugin.pm +++ b/PVE/Network/SDN/Zones/FaucetPlugin.pm @@ -29,7 +29,7 @@ sub options { dns => { optional => 1 }, reversedns => { optional => 1 }, dnszone => { optional => 1 }, - ipam => { optional => 0 }, + ipam => { optional => 1 }, }; } diff --git a/PVE/Network/SDN/Zones/Plugin.pm b/PVE/Network/SDN/Zones/Plugin.pm index 169869d..ed14a50 100644 --- a/PVE/Network/SDN/Zones/Plugin.pm +++ b/PVE/Network/SDN/Zones/Plugin.pm @@ -49,6 +49,7 @@ my $defaultData = { ipam => { type => 'string', description => "use a specific ipam", + optional => 1, }, }, }; diff --git a/PVE/Network/SDN/Zones/QinQPlugin.pm b/PVE/Network/SDN/Zones/QinQPlugin.pm index 9064adb..0a5abf8 100644 --- a/PVE/Network/SDN/Zones/QinQPlugin.pm +++ b/PVE/Network/SDN/Zones/QinQPlugin.pm @@ -43,7 +43,7 @@ sub options { dns => { optional => 1 }, reversedns => { optional => 1 }, dnszone => { optional => 1 }, - ipam => { optional => 0 }, + ipam => { optional => 1 }, }; } diff --git a/PVE/Network/SDN/Zones/SimplePlugin.pm b/PVE/Network/SDN/Zones/SimplePlugin.pm index caea5a8..103585c 100644 --- a/PVE/Network/SDN/Zones/SimplePlugin.pm +++ b/PVE/Network/SDN/Zones/SimplePlugin.pm @@ -37,7 +37,7 @@ sub options { dns => { optional => 1 }, reversedns => { optional => 1 }, dnszone => { optional => 1 }, - ipam => { optional => 0 }, + ipam => { optional => 1 }, }; } diff --git a/PVE/Network/SDN/Zones/VlanPlugin.pm b/PVE/Network/SDN/Zones/VlanPlugin.pm index 93a60a0..fbfbdcc 100644 --- a/PVE/Network/SDN/Zones/VlanPlugin.pm +++ b/PVE/Network/SDN/Zones/VlanPlugin.pm @@ -37,7 +37,7 @@ sub options { dns => { optional => 1 }, reversedns => { optional => 1 }, dnszone => { optional => 1 }, - ipam => { optional => 0 }, + ipam => { optional => 1 }, }; } diff --git a/PVE/Network/SDN/Zones/VxlanPlugin.pm b/PVE/Network/SDN/Zones/VxlanPlugin.pm index 792e02d..c523cf7 100644 --- a/PVE/Network/SDN/Zones/VxlanPlugin.pm +++ b/PVE/Network/SDN/Zones/VxlanPlugin.pm @@ -40,7 +40,7 @@ sub options { dns => { optional => 1 }, reversedns => { optional => 1 }, dnszone => { optional => 1 }, - ipam => { optional => 0 }, + ipam => { optional => 1 }, }; } -- 2.39.5