mirror of
https://git.proxmox.com/git/pve-common
synced 2025-05-02 21:34:58 +00:00
network : add tap_unplug
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
f0c190eebe
commit
a84b65c0da
@ -74,6 +74,15 @@ sub tap_plug {
|
||||
die "can't add interface to bridge\n";
|
||||
}
|
||||
|
||||
sub tap_unplug {
|
||||
my ($iface, $bridge, $tag) = @_;
|
||||
|
||||
$bridge .= "v$tag" if $tag;
|
||||
|
||||
system ("/usr/sbin/brctl delif $bridge $iface") == 0 ||
|
||||
die "can't del interface from bridge\n";
|
||||
}
|
||||
|
||||
sub copy_bridge_config {
|
||||
my ($br0, $br1) = @_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user