diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-29 23:18:06 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-29 23:18:06 +0200 |
commit | 147f655a69cd9526cd23f51ab18027cb5abc95b2 (patch) | |
tree | 02b73f30eb39b36882df8bbdb73ff3943cb8d515 /scripts/transclude-template | |
parent | 324aa9598c7d90efc917a00447380f985553b657 (diff) | |
download | vyos-1x-147f655a69cd9526cd23f51ab18027cb5abc95b2.tar.gz vyos-1x-147f655a69cd9526cd23f51ab18027cb5abc95b2.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
Diffstat (limited to 'scripts/transclude-template')
0 files changed, 0 insertions, 0 deletions