summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-29 16:45:37 +0100
committerGitHub <noreply@github.com>2024-02-29 16:45:37 +0100
commit11f8efe7ab411a2ef5467b1471e9d5c0d83bd0d2 (patch)
treee99be195ff9ec6c9745b535df6bae3ddc0fd071c
parentbb70f9964fd845bca0a5396dde7ca50e3daa2db3 (diff)
parente6af88c79cfb178765ede8910b690cc349d8e5f6 (diff)
downloadvyos-1x-11f8efe7ab411a2ef5467b1471e9d5c0d83bd0d2.tar.gz
vyos-1x-11f8efe7ab411a2ef5467b1471e9d5c0d83bd0d2.zip
Merge pull request #3065 from vyos/mergify/bp/sagitta/pr-3052
vyos.ethtool: T6070: fix EEE reading the incorrect status line (backport #3052)
-rw-r--r--python/vyos/ethtool.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/ethtool.py b/python/vyos/ethtool.py
index ba638b280..f20fa452e 100644
--- a/python/vyos/ethtool.py
+++ b/python/vyos/ethtool.py
@@ -150,7 +150,7 @@ class Ethtool:
self._eee = True
# read current EEE setting, this returns:
# EEE status: disabled || EEE status: enabled - inactive || EEE status: enabled - active
- self._eee_enabled = bool('enabled' in out.splitlines()[2])
+ self._eee_enabled = bool('enabled' in out.splitlines()[1])
def check_auto_negotiation_supported(self):
""" Check if the NIC supports changing auto-negotiation """