diff options
author | Christian Breunig <christian@breunig.cc> | 2023-05-06 15:12:41 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2023-05-06 15:12:41 +0200 |
commit | aaa98de536cb1b9d6ab5a18341a56543b5b57ce1 (patch) | |
tree | 15231a74008180a2d45d8cdcf48c903c7a228b5c | |
parent | d4352bed66857a2e4f1b124abcf6cf1910621506 (diff) | |
download | vyos-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.
-rw-r--r-- | python/vyos/ethtool.py | 2 |
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] |