diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-10-24 21:27:28 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-10-24 21:28:55 +0200 |
commit | 8c8fe9b6f91d0a0b6c56b9e7a31b8f71dca75272 (patch) | |
tree | 0f4195fe1281c30c385a498864dd6956a0474c4d /python/vyos | |
parent | dc9b2b93eaa4287f4f7a76a14cda40af4ae531a6 (diff) | |
download | vyos-1x-8c8fe9b6f91d0a0b6c56b9e7a31b8f71dca75272.tar.gz vyos-1x-8c8fe9b6f91d0a0b6c56b9e7a31b8f71dca75272.zip |
vyos.ethtool: T3935: relax __init__() when driver name is not detected
In addition to commit 0b414bcd ("vyos.ethtool: T3874: do not throw exception
if adapter has issues with autoneg") we should also not care too strict when
locating the driver name.
This might cause false positives.
(cherry picked from commit 8cf5a4f023c5459cad4c84e93f73a9ddd69be81a)
Diffstat (limited to 'python/vyos')
-rw-r--r-- | python/vyos/ethtool.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/python/vyos/ethtool.py b/python/vyos/ethtool.py index eb5b0a456..e45b0f041 100644 --- a/python/vyos/ethtool.py +++ b/python/vyos/ethtool.py @@ -56,9 +56,6 @@ class Ethtool: link = os.readlink(sysfs_file) self._driver_name = os.path.basename(link) - if not self._driver_name: - raise ValueError(f'Could not determine driver for interface {ifname}!') - # Build a dictinary of supported link-speed and dupley settings. out, err = popen(f'ethtool {ifname}') reading = False |