summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorfett0 <fernando.gmaidana@gmail.com>2024-05-04 17:07:26 +0000
committerChristian Breunig <christian@breunig.cc>2024-05-10 15:18:08 +0200
commit234f35d8bae71b5d33ad97cdabc236ec6b13c3a2 (patch)
treef177d7b6dcc802e7aaaf8a66808a46521b495098 /smoketest/scripts
parent2159dfdd138412b5d0af89a6c3adfdabf901b65b (diff)
downloadvyos-1x-234f35d8bae71b5d33ad97cdabc236ec6b13c3a2.tar.gz
vyos-1x-234f35d8bae71b5d33ad97cdabc236ec6b13c3a2.zip
bond: T6303: add system mac address on bond
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_bonding.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_bonding.py b/smoketest/scripts/cli/test_interfaces_bonding.py
index 419de774a..091a7a3c5 100755
--- a/smoketest/scripts/cli/test_interfaces_bonding.py
+++ b/smoketest/scripts/cli/test_interfaces_bonding.py
@@ -241,6 +241,22 @@ class BondingInterfaceTest(BasicInterfaceTest.TestCase):
for member in self._members:
self.assertIn(member, slaves)
+ def test_bonding_system_mac(self):
+ # configure member interfaces and system-mac
+ system_mac = '00:50:ab:cd:ef:11'
+ for interface in self._interfaces:
+ for option in self._options.get(interface, []):
+ self.cli_set(self._base_path + [interface] + option.split())
+
+ self.cli_set(self._base_path + [interface, 'system-mac', system_mac])
+
+ self.cli_commit()
+
+ # verify config
+ for interface in self._interfaces:
+ 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'
for interface in self._interfaces: