[pve-devel] [PATCH V2 pve-common 2/4] INotify: allow vlan tagged bridge interface on non-vlanaware bridge

Alexandre Derumier aderumier at odiso.com
Thu Jan 9 14:11:01 CET 2020


Seem that it's working too with non-vlanaware bridge

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

diff --git a/src/PVE/INotify.pm b/src/PVE/INotify.pm
index b38d887..1a528fa 100644
--- a/src/PVE/INotify.pm
+++ b/src/PVE/INotify.pm
@@ -1474,9 +1474,7 @@ sub __write_etc_network_interfaces {
 	    die "vlan '$iface' - unable to find parent '$p'\n"
 		if !$n;
 
-	    if ($n->{type} eq 'bridge' && !$n->{bridge_vlan_aware}) {
-		die "vlan '$iface' - bridge vlan aware is not enabled on parent '$p'\n";
-	    } elsif ($n->{type} ne 'eth' && $n->{type} ne 'bridge' && $n->{type} ne 'bond' && $n->{type} ne 'vlan') {
+	    if ($n->{type} ne 'eth' && $n->{type} ne 'bridge' && $n->{type} ne 'bond' && $n->{type} ne 'vlan') {
 		die "vlan '$iface' - wrong interface type on parent '$p' " .
 		    "('$n->{type}' != 'eth|bond|bridge|vlan' )\n";
 	    }
-- 
2.20.1




More information about the pve-devel mailing list