diff options
| author | Stefan Hanreich <s.hanreich@proxmox.com> | 2023-11-21 14:31:04 +0100 |
|---|---|---|
| committer | Wolfgang Bumiller <w.bumiller@proxmox.com> | 2023-11-21 14:35:06 +0100 |
| commit | 543e2b75cd80b35db30e33f15e7e2092a3558464 (patch) | |
| tree | 08a1749a671fbb5914a3af9196d264dc1d06087f /src/PVE/Network/SDN/Zones/SimplePlugin.pm | |
| parent | 53ab1495621f46c8af4dc560905f7e501bee75a7 (diff) | |
sdn: simple: Improve dhcp property description and validation
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Diffstat (limited to 'src/PVE/Network/SDN/Zones/SimplePlugin.pm')
| -rw-r--r-- | src/PVE/Network/SDN/Zones/SimplePlugin.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/PVE/Network/SDN/Zones/SimplePlugin.pm b/src/PVE/Network/SDN/Zones/SimplePlugin.pm index f4525d5..7cb65c2 100644 --- a/src/PVE/Network/SDN/Zones/SimplePlugin.pm +++ b/src/PVE/Network/SDN/Zones/SimplePlugin.pm @@ -3,6 +3,7 @@ package PVE::Network::SDN::Zones::SimplePlugin; use strict; use warnings; use PVE::Network::SDN::Zones::Plugin; +use PVE::Network::SDN::Dhcp::Plugin; use PVE::Exception qw(raise raise_param_exc); use PVE::Cluster; use PVE::Tools; @@ -28,8 +29,9 @@ sub properties { description => "dns domain zone ex: mydomain.com", }, dhcp => { - type => 'pve-configid', - description => 'ID of the DHCP server responsible for managing this range', + description => 'Type of the DHCP backend for this zone', + type => 'string', + enum => PVE::Network::SDN::Dhcp::Plugin->lookup_types(), requires => 'ipam', }, }; |
