diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/ifconfig.py | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/python/vyos/ifconfig.py b/python/vyos/ifconfig.py index 17cc7a2a7..e1c1e0246 100644 --- a/python/vyos/ifconfig.py +++ b/python/vyos/ifconfig.py @@ -1141,6 +1141,12 @@ class EthernetIf(VLANIf):          if duplex not in ['auto', 'full', 'half']:              raise ValueError("Value out of range (duplex)") +        if self.get_driver_name() in ['vmxnet3', 'virtio_net']: +            self._debug_msg('{} driver does not support changing speed/duplex settings!' +                            .format(self.get_driver_name())) +            return + +          cmd = '/sbin/ethtool -s {}'.format(self._ifname)          if speed == 'auto' or duplex == 'auto':              cmd += ' autoneg on' | 
