From 5b0ecee7a315f3610875c94a1b4bef1a5a948f28 Mon Sep 17 00:00:00 2001 From: fett0 Date: Mon, 6 May 2024 18:46:51 +0000 Subject: [PATCH] Bond: T6303: fixed smoke-test and space --- python/vyos/ifconfig/bond.py | 2 -- smoketest/scripts/cli/test_interfaces_bonding.py | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/python/vyos/ifconfig/bond.py b/python/vyos/ifconfig/bond.py index 3aaa37818a9..b381ba0e1d9 100644 --- a/python/vyos/ifconfig/bond.py +++ b/python/vyos/ifconfig/bond.py @@ -55,12 +55,10 @@ class BondIf(Interface): 'validate': lambda v: assert_list(v, ['slow', 'fast']), 'location': '/sys/class/net/{ifname}/bonding/lacp_rate', }, - 'bond_system_mac': { 'validate': assert_mac, 'location': '/sys/class/net/{ifname}/bonding/ad_actor_system', }, - 'bond_miimon': { 'validate': assert_positive, 'location': '/sys/class/net/{ifname}/bonding/miimon' diff --git a/smoketest/scripts/cli/test_interfaces_bonding.py b/smoketest/scripts/cli/test_interfaces_bonding.py index 6d3f1d69e7a..091a7a3c59e 100755 --- a/smoketest/scripts/cli/test_interfaces_bonding.py +++ b/smoketest/scripts/cli/test_interfaces_bonding.py @@ -254,9 +254,8 @@ def test_bonding_system_mac(self): # verify config for interface in self._interfaces: - slaves = read_file(f'/sys/class/net/{interface}/bonding/slaves').split() - for member in self._members: - self.assertIn(member, slaves) + defined_mac = read_file(f'/sys/class/net/{interface}/bonding/ad_actor_system') + self.assertIn(defined_mac, system_mac) def test_bonding_evpn_multihoming(self): id = '5'