summaryrefslogtreecommitdiff
path: root/python/vyos/ifconfig.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-09-15 14:46:30 +0200
committerChristian Poessinger <christian@poessinger.com>2019-09-20 21:28:53 +0200
commitf5784bd48a6600372696b6731d4300735e710dd3 (patch)
treec030f51f2664cebd420b62cd20a2cfffc05c6b70 /python/vyos/ifconfig.py
parent2e210396036ffc769d941104729f67a5f64a0b24 (diff)
downloadvyos-1x-f5784bd48a6600372696b6731d4300735e710dd3.tar.gz
vyos-1x-f5784bd48a6600372696b6731d4300735e710dd3.zip
Python/ifconfig: T1557: vmxnet3/virtio_net do not support changing flow control
Diffstat (limited to 'python/vyos/ifconfig.py')
-rw-r--r--python/vyos/ifconfig.py5
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(