]> git.proxmox.com Git - pve-container.git/commitdiff
specify data format for hostname, searchdomain and nameserver
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 18 Sep 2015 09:07:03 +0000 (11:07 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 18 Sep 2015 09:08:31 +0000 (11:08 +0200)
src/PVE/LXC.pm

index ae8342b0acb5ba0e5f085e3c5f6dbcd8a956f172..3e1e5aa8c543abcda3331b418bc748e57c9cf7c3 100644 (file)
@@ -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'),