From: Dietmar Maurer Date: Fri, 18 Sep 2015 09:07:03 +0000 (+0200) Subject: specify data format for hostname, searchdomain and nameserver X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;ds=sidebyside;h=159aad3ead4d5892cacf8a72b13469760beef757;p=pve-container.git specify data format for hostname, searchdomain and nameserver --- diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm index ae8342b..3e1e5aa 100644 --- a/src/PVE/LXC.pm +++ b/src/PVE/LXC.pm @@ -140,7 +140,7 @@ my $confdesc = { hostname => { optional => 1, description => "Set a host name for the container.", - type => 'string', + type => 'string', format => 'dns-name', maxLength => 255, }, description => { @@ -150,12 +150,12 @@ my $confdesc = { }, searchdomain => { optional => 1, - type => 'string', + type => 'string', format => 'dns-name-list', description => "Sets DNS search domains for a container. Create will automatically use the setting from the host if you neither set searchdomain or nameserver.", }, nameserver => { optional => 1, - type => 'string', + type => 'string', format => 'address-list', description => "Sets DNS server IP address for a container. Create will automatically use the setting from the host if you neither set searchdomain or nameserver.", }, rootfs => get_standard_option('pve-ct-rootfs'),