diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-09-15 14:46:30 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-09-20 21:28:53 +0200 |
commit | f5784bd48a6600372696b6731d4300735e710dd3 (patch) | |
tree | c030f51f2664cebd420b62cd20a2cfffc05c6b70 | |
parent | 2e210396036ffc769d941104729f67a5f64a0b24 (diff) | |
download | vyos-1x-f5784bd48a6600372696b6731d4300735e710dd3.tar.gz vyos-1x-f5784bd48a6600372696b6731d4300735e710dd3.zip |
Python/ifconfig: T1557: vmxnet3/virtio_net do not support changing flow control
-rw-r--r-- | python/vyos/ifconfig.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py index cbedcc86e..17cc7a2a7 100644 --- a/python/vyos/ifconfig.py +++ b/python/vyos/ifconfig.py @@ -1112,6 +1112,11 @@ class EthernetIf(VLANIf): if enable not in ['on', 'off']: raise ValueError("Value out of range") + if self.get_driver_name() in ['vmxnet3', 'virtio_net']: + self._debug_msg('{} driver does not support changing flow control settings!' + .format(self.get_driver_name())) + return + # Assemble command executed on system. Unfortunately there is no way # to change this setting via sysfs cmd = '/sbin/ethtool --pause {0} autoneg {1} tx {1} rx {1}'.format( |