fix bug #617: change command arrangement

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>
This commit is contained in:
Wolfgang Link 2015-04-07 14:01:13 +02:00 committed by Dietmar Maurer
parent 6e11f14318
commit a279a03df3

View File

@ -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;