diff options
author | Nate Carlson <github@natecarlson.com> | 2020-03-24 15:37:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 21:37:37 +0100 |
commit | 60d35d1d4d3a5acec6e39cccb166fd33490b6c27 (patch) | |
tree | a34dc0307fdf5d75a6deff54824437252a79e357 /python/vyos/ifconfig | |
parent | 11b0c06e47d7b520860944d56f2f76c58177073a (diff) | |
download | vyos-1x-60d35d1d4d3a5acec6e39cccb166fd33490b6c27.tar.gz vyos-1x-60d35d1d4d3a5acec6e39cccb166fd33490b6c27.zip |
ifconfig: T2158: xen_netfront does not support setting pause/speed
* Add xen_netfront to the list of interface types that will error reading pause via ethtool
* Also disable for speed, as it doesn't make sense (although the driver doesn't error.)
Diffstat (limited to 'python/vyos/ifconfig')
-rw-r--r-- | python/vyos/ifconfig/ethernet.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/vyos/ifconfig/ethernet.py b/python/vyos/ifconfig/ethernet.py index 30e3a3bef..dbd618d32 100644 --- a/python/vyos/ifconfig/ethernet.py +++ b/python/vyos/ifconfig/ethernet.py @@ -90,7 +90,7 @@ class EthernetIf(VLANIf): if enable not in ['on', 'off']: raise ValueError("Value out of range") - if self.get_driver_name() in ['vmxnet3', 'virtio_net']: + if self.get_driver_name() in ['vmxnet3', 'virtio_net', 'xen_netfront']: self._debug_msg('{} driver does not support changing flow control settings!' .format(self.get_driver_name())) return @@ -142,7 +142,7 @@ 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']: + if self.get_driver_name() in ['vmxnet3', 'virtio_net', 'xen_netfront']: self._debug_msg('{} driver does not support changing speed/duplex settings!' .format(self.get_driver_name())) return |