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