[pve-devel] [PATCH v2 1/1] MacPrefix: prevent multicast MacPrefixes

Stoiko Ivanov s.ivanov at proxmox.com
Mon Mar 11 22:50:16 CET 2019


provide direct visual feedback for the related commit in pve-cluster.

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 Toolkit.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Toolkit.js b/Toolkit.js
index 4f1b623..e31ebad 100644
--- a/Toolkit.js
+++ b/Toolkit.js
@@ -54,7 +54,7 @@ Ext.apply(Ext.form.field.VTypes, {
     MacAddressText: gettext('Example') + ': 01:23:45:67:89:ab',
 
     MacPrefix:  function(v) {
-	return (/^[a-f0-9]{2}(?::[a-f0-9]{2}){0,2}:?$/i).test(v);
+	return (/^[a-f0-9][02468ace](?::[a-f0-9]{2}){0,2}:?$/i).test(v);
     },
     MacPrefixMask: /[a-fA-F0-9:]/,
     MacPrefixText: gettext('Example') + ': 02:8f',
-- 
2.11.0





More information about the pve-devel mailing list