diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-29 23:18:06 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-30 21:38:44 +0200 |
commit | ebf69a83bd1a2dba27e1c0bc6ecc4e1ea74683a1 (patch) | |
tree | 3fa57e66ee7b0e301559acff86a93110c0cfb6a6 /python/vyos/configtree.py | |
parent | f4c6697582ddc4b6546107c9d4040bcdadf55b44 (diff) | |
download | vyos-1x-ebf69a83bd1a2dba27e1c0bc6ecc4e1ea74683a1.tar.gz vyos-1x-ebf69a83bd1a2dba27e1c0bc6ecc4e1ea74683a1.zip |
vyos.ethtool: T3163: add check_speed_duplex() method
Add a new method which supports checking if the desired speed and duplex
setting is actually supported by the underlaying network interface card.
>>> from vyos.ethtool import Ethtool
>>> tmp = Ethtool('eth0')
>>> tmp.check_speed_duplex('100', 'full')
False
>>> tmp.check_speed_duplex('1000', 'full')
True
(cherry picked from commit 147f655a69cd9526cd23f51ab18027cb5abc95b2)
Diffstat (limited to 'python/vyos/configtree.py')
0 files changed, 0 insertions, 0 deletions