[pve-devel] [PATCH] add bridge_vlan_aware

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


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 src/PVE/INotify.pm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm
index 136dd90..22f01d1 100644
--- a/src/PVE/INotify.pm
+++ b/src/PVE/INotify.pm
@@ -874,6 +874,8 @@ sub __read_etc_network_interfaces {
 			}
 		    } elsif ($id eq 'bridge_fd') {
 			$d->{$id} = $value;
+		    } elsif ($id eq 'bridge_vlan_aware') {
+			$d->{$id} = 1;
 		    } elsif ($id eq 'bond_miimon') {
 			$d->{$id} = $value;
 		    } elsif ($id eq 'bond_xmit_hash_policy') {
@@ -1059,6 +1061,11 @@ sub __interface_to_string {
 	$v = defined($d->{bridge_fd}) ? $d->{bridge_fd} : 0;
 	$raw .= "\tbridge_fd $v\n";
 	$done->{bridge_fd} = 1;
+
+	if( defined($d->{bridge_vlan_aware})) {
+	    $raw .= "\tbridge_vlan_aware yes\n";
+	}
+	$done->{bridge_vlan_aware} = 1;
     
     } elsif ($d->{type} eq 'bond') {
 
-- 
2.1.4




More information about the pve-devel mailing list