Ticket: CM-11517
Reviewed By: julien, nikhil, jtoppins
Testing Done: ethtool sanity test
ethtool module should really care only about
physical interfaces. so, this patch makes ethtool
module ignore all logical interfaces, ie interfaces
with link_kind set.
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
def _query(self, ifaceobj, **kwargs):
""" add default policy attributes supported by the module """
- if ifaceobj.link_kind:
- return
for attr in ['speed', 'duplex', 'autoneg']:
if ifaceobj.get_attr_value_first('link-%s'%attr):
continue
of interfaces. status is success if the running state is same
as user required state in ifaceobj. error otherwise.
"""
+ if ifaceobj.link_kind:
+ return
op_handler = self._run_ops.get(operation)
if not op_handler:
return