Handle cases where the vlan bridge has already been setup previouslly.

Signed-off-by: Pablo Ruiz Garcia <pablo.ruiz@gmail.com>
This commit is contained in:
Pablo Ruiz Garcia 2014-02-12 08:55:29 +01:00 committed by Dietmar Maurer
parent 70d89745ca
commit eee4b32a65

View File

@ -141,6 +141,9 @@ sub activate_bridge_vlan_slave {
my $tbridge = basename(readlink($path));
if ($tbridge ne $bridgevlan) {
die "interface $ifacevlan already exist in bridge $tbridge\n";
} else {
# Port already attached to bridge: do nothing.
return;
}
}