[pve-devel] [PATCH 3/4] pve-bridge : move tap_plug code in PVE::Network::tap_plug

Alexandre Derumier aderumier at odiso.com
Tue Mar 5 10:22:17 CET 2013


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 pve-bridge |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/pve-bridge b/pve-bridge
index 0b0cdc5..f4ea56e 100755
--- a/pve-bridge
+++ b/pve-bridge
@@ -29,10 +29,6 @@ PVE::Network::tap_create($iface, $net->{bridge});
 
 PVE::Network::tap_rate_limit($iface, $net->{rate}) if $net->{rate};
 
-my $newbridge = PVE::Network::activate_bridge_vlan($bridge, $net->{tag});
-PVE::Network::copy_bridge_config($bridge, $newbridge) if $bridge ne $newbridge;
-
-system ("/usr/sbin/brctl addif $newbridge $iface") == 0 ||
-    die "can't add interface to bridge\n";
+PVE::Network::tap_plug($iface, $net->{bridge}, $net->{tag});
 
 exit 0;
-- 
1.7.10.4




More information about the pve-devel mailing list