mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Ticket: CM-6275 Reviewed By: roopa,dustin Testing Done: Unit tested and ran complete ifupdown2 test suite There are unnecessary calls to the ethtool module that cause some error messages to be printed. We currently don't check ifaceobj.link_kind at the start so this check was added. If someone creates a new interface without setting link_kind, we still printed error message. This patch adds a check at the start of ethtool. This patch also removes the global link defaults (used by ifupdown2/ethtool) created when update-ports is called. The defaults are created for each swp port so we don't have defaults (and therefore will not attempt to set) for interfaces like eth0, loopbacks, dummys, vxlans, or any other non swp interface.