diff options
author | Alex Harpin <development@landsofshadow.co.uk> | 2015-11-08 11:09:29 +0000 |
---|---|---|
committer | Alex Harpin <development@landsofshadow.co.uk> | 2015-11-08 11:54:54 +0000 |
commit | 76d1c11778338f455f313f2f8e3efc6dfe1f9ffb (patch) | |
tree | aa5d24204839aee8aa31cf94a67a0416b30061b8 /scripts | |
parent | f39ba64f56099def98a1ed4fe2f8cb510629958a (diff) | |
download | vyatta-cfg-system-76d1c11778338f455f313f2f8e3efc6dfe1f9ffb.tar.gz vyatta-cfg-system-76d1c11778338f455f313f2f8e3efc6dfe1f9ffb.zip |
vyatta-cfg-system: update get_offload_option function due to rename
Update the get_offload_option function to take account of the offload
node renaming.
Bug #612 http://bugzilla.vyos.net/show_bug.cgi?id=612
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-interfaces.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl index e57e384b..367105c3 100755 --- a/scripts/vyatta-interfaces.pl +++ b/scripts/vyatta-interfaces.pl @@ -580,10 +580,11 @@ sub allowed_speed { sub get_offload_option { my ($dev, $option) = @_; my ($val); + my $ethtool_option = "$option-offload"; open(my $ethtool, '-|', "$ETHTOOL -k $dev 2>&1") or die "ethtool failed: $!\n"; while (<$ethtool>) { - next if ($_ !~ m/$option:/); + next if ($_ !~ m/$ethtool_option:/); chomp; $val = (split(/: /, $_))[1]; } |