]> git.proxmox.com Git - pve-cluster.git/commitdiff
add mac_prefix option to datacenter.cfg
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 14 Jul 2016 06:44:29 +0000 (08:44 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 14 Jul 2016 07:00:05 +0000 (09:00 +0200)
We allow up to 3 fixed prefix bytes.

data/PVE/Cluster.pm

index fa4a08fcac2e45d12160157ff00cee392871eb3a..fe741cfc037b22f752fc7d5c317e06aadcecb622 100644 (file)
@@ -1347,6 +1347,12 @@ my $datacenter_schema = {
              " With both all two modes are used." .
              "\n\nWARNING: 'hardware' and 'both' are EXPERIMENTAL & WIP",
        },
+       mac_prefix => {
+           optional => 1,
+           type => 'string',
+           pattern => qr/[a-f0-9]{2}(?::[a-f0-9]{2}){0,2}:?/i,
+           description => 'Prefix for autogenerated MAC addresses.',
+       },
     },
 };