]> git.proxmox.com Git - qemu-server.git/commitdiff
fix bug #617: change command arrangement
authorWolfgang Link <w.link@proxmox.com>
Tue, 7 Apr 2015 12:01:13 +0000 (14:01 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 10 Apr 2015 04:58:59 +0000 (06:58 +0200)
the ovs-vsctl del-port flush the tc settings.
So we have to change the arrangement of setting up the network.

Signed-off-by: Wolfgang Link <w.link@proxmox.com>
pve-bridge

index 1b9801d00e843205549eca9d41eb63aacaa24685..b4550f1cf324e3ba1448ff4764c300ea7795ed4e 100755 (executable)
@@ -32,8 +32,10 @@ die "unable to parse network config '$netid'\n" if !$net;
 
 PVE::Network::tap_create($iface, $net->{bridge});
 
-PVE::Network::tap_rate_limit($iface, $net->{rate}) if $net->{rate};
-
+# if ovs is under this bridge all traffic control settings will be flushed.
+# so we need to call tap_rate_limit after tap_plug
 PVE::Network::tap_plug($iface, $net->{bridge}, $net->{tag}, $net->{firewall});
 
+PVE::Network::tap_rate_limit($iface, $net->{rate}) if $net->{rate};
+
 exit 0;