summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-06 15:12:41 +0200
committerChristian Breunig <christian@breunig.cc>2023-05-06 15:12:41 +0200
commitaaa98de536cb1b9d6ab5a18341a56543b5b57ce1 (patch)
tree15231a74008180a2d45d8cdcf48c903c7a228b5c /python
parentd4352bed66857a2e4f1b124abcf6cf1910621506 (diff)
downloadvyos-1x-aaa98de536cb1b9d6ab5a18341a56543b5b57ce1.tar.gz
vyos-1x-aaa98de536cb1b9d6ab5a18341a56543b5b57ce1.zip
ethernet: T3891: fix always true expression on auto-negotiation
Commit f2ecc9710d49 ("ethernet: T3891: honor auto-negotiation support per NIC") added an if statement that always evaluated to True.
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 9d016e5cc..1b1e54dfb 100644
--- a/python/vyos/ethtool.py
+++ b/python/vyos/ethtool.py
@@ -81,7 +81,7 @@ class Ethtool:
self._speed_duplex.update({ speed : {}})
if duplex not in self._speed_duplex[speed]:
self._speed_duplex[speed].update({ duplex : ''})
- if 'Supports auto-negotiation:':
+ if 'Supports auto-negotiation:' in line:
# Split the following string: Auto-negotiation: off
# we are only interested in off or on
tmp = line.split()[-1]