diff options
-rw-r--r-- | scripts/VyattaQosUtil.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/VyattaQosUtil.pm b/scripts/VyattaQosUtil.pm index a4fd3f2..f847116 100644 --- a/scripts/VyattaQosUtil.pm +++ b/scripts/VyattaQosUtil.pm @@ -239,6 +239,9 @@ sub ethtoolRate { my $dev = shift; my $rate = undef; + # Get rate of real device (ignore vlan) + $dev =~ s/\.[0-9]+$//; + open(my $ethtool, "/usr/sbin/ethtool $dev 2>/dev/null |") or die "ethtool failed: $!\n"; |