From 41e64e80978bce094ef37f59771943e9e977ae87 Mon Sep 17 00:00:00 2001 From: _mrplow Date: Fri, 25 Sep 2026 14:25:45 +0200 Subject: ethtool: T9353: fix BASEX mode(s) support in check_speed_duplex() Bugfix which allows for BaseX link modes reported by ethtool to be correctly validated, so config can be commited. --- python/vyos/ethtool.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/vyos/ethtool.py b/python/vyos/ethtool.py index 66dc6bb89..f476c6835 100644 --- a/python/vyos/ethtool.py +++ b/python/vyos/ethtool.py @@ -79,7 +79,7 @@ class Ethtool: if driver: self._driver_name = driver.group(1) - # Build a dictionary of supported link-speed and dupley settings. + # Build a dictionary of supported link-speed and duplex settings. # [ { # "ifname": "eth0", # "supported-ports": [ "TP" ], @@ -216,9 +216,9 @@ class Ethtool: if self.get_driver_name() in _drivers_without_speed_duplex_flow: return False - # ['10baset/half', '10baset/full', '100baset/half', '100baset/full', '1000baset/full'] + # ['10baset/half', '10baset/full', '100baset/half', '100baset/full', '1000baset/full', '2500basex/full', '10000basekx4/full', '10000basesr/full'] tmp = [x.lower() for x in self._base_settings['supported-link-modes']] - if f'{speed}baset/{duplex}' in tmp: + if any(f'{speed}base' in item and f'/{duplex}' in item for item in tmp): return True return False -- cgit v1.2.3