network : add tap_unplug

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2013-03-05 10:23:47 +01:00 committed by Dietmar Maurer
parent f0c190eebe
commit a84b65c0da

View File

@ -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) = @_;