fix tap_plug with vlan for non aware vlan bridges

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2015-08-03 15:07:37 +02:00 committed by Dietmar Maurer
parent 555eefa07b
commit ff0420567b

View File

@ -312,6 +312,7 @@ sub tap_plug {
if (!$vlan_aware) { if (!$vlan_aware) {
my $newbridge = activate_bridge_vlan($bridge, $tag); my $newbridge = activate_bridge_vlan($bridge, $tag);
copy_bridge_config($bridge, $newbridge) if $bridge ne $newbridge; copy_bridge_config($bridge, $newbridge) if $bridge ne $newbridge;
$bridge = $newbridge;
$tag = undef; $tag = undef;
} }