[pve-devel] [PATCH v10 pve-manager 19/19] vnets: readd missing mac address advanced field

Alexandre Derumier aderumier at odiso.com
Tue Jan 5 10:07:09 CET 2021


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 www/manager6/sdn/VnetEdit.js | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/www/manager6/sdn/VnetEdit.js b/www/manager6/sdn/VnetEdit.js
index af5d6cde..b145a95c 100644
--- a/www/manager6/sdn/VnetEdit.js
+++ b/www/manager6/sdn/VnetEdit.js
@@ -13,6 +13,10 @@ Ext.define('PVE.sdn.VnetInputPanel', {
 	    delete values.vlanaware;
 	}
 
+	if (!values.mac) {
+	    delete values.mac;
+	}
+
 	return values;
     },
 
@@ -56,7 +60,17 @@ Ext.define('PVE.sdn.VnetInputPanel', {
 	    checked: false,
 	    fieldLabel: gettext('VLAN Aware')
 	}
-    ]
+    ],
+    advancedItems: [
+	{
+	    xtype: 'textfield',
+	    name: 'mac',
+	    fieldLabel: gettext('MAC address'),
+	    vtype: 'MacAddress',
+	    allowBlank: true,
+	    emptyText: 'auto'
+	},
+    ],
 });
 
 Ext.define('PVE.sdn.VnetEdit', {
-- 
2.20.1





More information about the pve-devel mailing list