[pve-devel] [PATCH] add bridge vlan aware checkbox

Alexandre Derumier aderumier at odiso.com
Tue Sep 15 11:13:27 CEST 2015


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/API2/Network.pm             | 5 +++++
 www/manager/node/NetworkEdit.js | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/PVE/API2/Network.pm b/PVE/API2/Network.pm
index bc80d93..02172f6 100644
--- a/PVE/API2/Network.pm
+++ b/PVE/API2/Network.pm
@@ -55,6 +55,11 @@ my $confdesc = {
 	type => 'boolean',
 	optional => 1,
     },
+    bridge_vlan_aware => {
+	description => "Enable bridge vlan support.",
+	type => 'boolean',
+	optional => 1,
+    },
     bridge_ports => {
 	description => "Specify the iterfaces you want to add to your bridge.",
 	optional => 1,
diff --git a/www/manager/node/NetworkEdit.js b/www/manager/node/NetworkEdit.js
index 75670ae..23ef08b 100644
--- a/www/manager/node/NetworkEdit.js
+++ b/www/manager/node/NetworkEdit.js
@@ -54,6 +54,12 @@ Ext.define('PVE.node.NetworkEdit', {
 
 	if (me.iftype === 'bridge') {
 	    column2.push({
+		xtype: 'pvecheckbox',
+		fieldLabel: gettext('Vlan Aware'),
+		name: 'bridge_vlan_aware',
+		deleteEmpty: !me.create,
+	    });
+	    column2.push({
 		xtype: 'textfield',
 		fieldLabel: gettext('Bridge ports'),
 		name: 'bridge_ports'
-- 
2.1.4




More information about the pve-devel mailing list