mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-02 13:14:11 +00:00
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:
parent
6e11f14318
commit
a279a03df3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user