Skip to content

Commit

Permalink
Bond: T6303: fixed smoke-test and space
Browse files Browse the repository at this point in the history
  • Loading branch information
fett0 committed May 6, 2024
1 parent 0b38e99 commit 5b0ecee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions python/vyos/ifconfig/bond.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 2 additions & 3 deletions smoketest/scripts/cli/test_interfaces_bonding.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 5b0ecee

Please sign in to comment.