Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion io/net/ethtool_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ def setUp(self):
if device in interfaces:
self.interface = device
elif local.validate_mac_addr(device) and device in local.get_all_hwaddr():
self.interface = local.get_interface_by_hwaddr(device).name
if self.hbond:
self.interface = local.get_interface_by_hwaddr(device).name
self.interface = self.interface._get_bondingmaster()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you need this extra line self.interface = local.get_interface_by_hwaddr(device).name ?

else:
self.interface = local.get_interface_by_hwaddr(device).name
else:
self.interface = None
self.cancel("Please check the network device")
Expand Down
Loading