diff --git a/data/PVE/Network.pm b/data/PVE/Network.pm index 00639f6..df6ad76 100644 --- a/data/PVE/Network.pm +++ b/data/PVE/Network.pm @@ -217,7 +217,7 @@ my $cleanup_firewall_bridge = sub { }; sub tap_plug { - my ($iface, $bridge, $tag, $firewall) = @_; + my ($iface, $bridge, $tag, $firewall, $rate) = @_; #cleanup old port config from any openvswitch bridge eval {run_command("/usr/bin/ovs-vsctl del-port $iface", outfunc => sub {}, errfunc => sub {}) }; @@ -240,6 +240,8 @@ sub tap_plug { &$ovs_bridge_add_port($bridge, $iface, $tag); } } + + tap_rate_limit($iface, $rate); } sub tap_unplug {