[pve-devel] [RFC PATCH cluster] add mac_prefix option to datacenter.cfg

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Jul 13 16:25:42 CEST 2016


---
 data/PVE/Cluster.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/data/PVE/Cluster.pm b/data/PVE/Cluster.pm
index fa4a08f..26670eb 100644
--- a/data/PVE/Cluster.pm
+++ b/data/PVE/Cluster.pm
@@ -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,4}:?/i,
+	    description => 'Prefix for autogenerated MAC addresses.',
+	},
     },
 };
 
-- 
2.1.4





More information about the pve-devel mailing list