mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: ethtool: ifquery -c displays ethtool attribute as 'unknown' when we can't get the running values
Ticket: CM-13820 Reviewed By: Roopa, Daniel W Testing Done: test from the bug Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
This commit is contained in:
@@ -194,7 +194,11 @@ class ethtool(moduleBase,utilsBase):
|
||||
continue
|
||||
# autoneg comes from ethtool whereas speed and duplex from /sys/class
|
||||
running_attr = self.get_running_attr(attr, ifaceobj)
|
||||
if (not running_attr):
|
||||
if not running_attr:
|
||||
if not configured:
|
||||
continue
|
||||
ifaceobjcurr.update_config_with_status('link-%s' % attr,
|
||||
'unknown', 1)
|
||||
continue
|
||||
|
||||
if attr == 'autoneg':
|
||||
|
Reference in New Issue
Block a user