summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-29 11:49:13 +0100
committerGitHub <noreply@github.com>2024-02-29 11:49:13 +0100
commit5609a0a8f71ac064dc4b6643e6d55573f5b14623 (patch)
treeb79879a747b417207cf30e531bb01de04dc96ccc /python
parent9ffb0d6aa84c8dad2ab053e04379b7874564698c (diff)
parent775348a4cda34e6be16454d43c77b525e57c4e47 (diff)
downloadvyos-1x-5609a0a8f71ac064dc4b6643e6d55573f5b14623.tar.gz
vyos-1x-5609a0a8f71ac064dc4b6643e6d55573f5b14623.zip
Merge pull request #3052 from up-n-atom/fix-ethtool-out-of-bounds-access
vyos.ethtool: T6070: fix EEE reading the incorrect status line
Diffstat (limited to 'python')
-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 """