[pve-devel] [PATCH pve-manager] sdn: add vlan aware option to vnet

Alexandre Derumier aderumier at odiso.com
Tue May 26 18:16:46 CEST 2020


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 www/manager6/sdn/VnetEdit.js | 5 ++---
 www/manager6/sdn/VnetView.js | 5 +++++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/www/manager6/sdn/VnetEdit.js b/www/manager6/sdn/VnetEdit.js
index e2ace128..c5e3859d 100644
--- a/www/manager6/sdn/VnetEdit.js
+++ b/www/manager6/sdn/VnetEdit.js
@@ -59,9 +59,8 @@ Ext.define('PVE.sdn.VnetInputPanel', {
 	    xtype: 'proxmoxcheckbox',
 	    name: 'vlanaware',
 	    uncheckedValue: 0,
-	    defaultValue: 0,
-	    checked: 1,
-	    fieldLabel: gettext('Vlan Aware')
+	    checked: false,
+	    fieldLabel: gettext('VLAN aware')
 	},
 	{
 	    xtype: 'textfield',
diff --git a/www/manager6/sdn/VnetView.js b/www/manager6/sdn/VnetView.js
index c8b0576a..c670ad70 100644
--- a/www/manager6/sdn/VnetView.js
+++ b/www/manager6/sdn/VnetView.js
@@ -92,6 +92,11 @@ Ext.define('PVE.sdn.VnetView', {
 		    flex: 1,
 		    dataIndex: 'tag',
 		},
+		{
+		    header: gettext('VLAN aware'),
+		    flex: 1,
+		    dataIndex: 'vlanaware',
+		},
 		{
 		    header: 'IPv4/CIDR',
 		    flex: 1,
-- 
2.20.1




More information about the pve-devel mailing list