system("/sbin/tc qdisc del dev $iface ingress >/dev/null 2>&1");
system("/sbin/tc qdisc del dev $iface root >/dev/null 2>&1");
- return if (!$rate || ($rate && $rate == 0));
+ return if !$rate;
run_command("/sbin/tc qdisc add dev $iface handle ffff: ingress");
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) = @_;