mirror of
https://git.proxmox.com/git/pve-common
synced 2025-11-01 12:45:48 +00:00
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:
parent
70d89745ca
commit
eee4b32a65
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user