From 00766ba278e186771336a1c3d2370d4ff997a384 Mon Sep 17 00:00:00 2001 From: Vaishnavi Bhat Date: Tue, 19 Aug 2025 17:23:07 +0530 Subject: [PATCH] Get bond master from bond slave using utils Use the utils changes _get_bondingmaster(self) to get the bond master name and use it as the test interface. Signed-off-by: Vaishnavi Bhat --- io/net/ethtool_test.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/io/net/ethtool_test.py b/io/net/ethtool_test.py index f6efd3a54..75738a5fc 100755 --- a/io/net/ethtool_test.py +++ b/io/net/ethtool_test.py @@ -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() + else: + self.interface = local.get_interface_by_hwaddr(device).name else: self.interface = None self.cancel("Please check the network device")