From 76d1c11778338f455f313f2f8e3efc6dfe1f9ffb Mon Sep 17 00:00:00 2001 From: Alex Harpin Date: Sun, 8 Nov 2015 11:09:29 +0000 Subject: 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 --- scripts/vyatta-interfaces.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') 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]; } -- cgit v1.2.3