forked from Mirror/pve-network
sdn: simple: Improve dhcp property description and validation
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
This commit is contained in:
parent
53ab149562
commit
543e2b75cd
|
@ -3,6 +3,7 @@ package PVE::Network::SDN::Zones::SimplePlugin;
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use PVE::Network::SDN::Zones::Plugin;
|
use PVE::Network::SDN::Zones::Plugin;
|
||||||
|
use PVE::Network::SDN::Dhcp::Plugin;
|
||||||
use PVE::Exception qw(raise raise_param_exc);
|
use PVE::Exception qw(raise raise_param_exc);
|
||||||
use PVE::Cluster;
|
use PVE::Cluster;
|
||||||
use PVE::Tools;
|
use PVE::Tools;
|
||||||
|
@ -28,8 +29,9 @@ sub properties {
|
||||||
description => "dns domain zone ex: mydomain.com",
|
description => "dns domain zone ex: mydomain.com",
|
||||||
},
|
},
|
||||||
dhcp => {
|
dhcp => {
|
||||||
type => 'pve-configid',
|
description => 'Type of the DHCP backend for this zone',
|
||||||
description => 'ID of the DHCP server responsible for managing this range',
|
type => 'string',
|
||||||
|
enum => PVE::Network::SDN::Dhcp::Plugin->lookup_types(),
|
||||||
requires => 'ipam',
|
requires => 'ipam',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue