1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

test-network: add test for bond mac address config

Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com>
(cherry picked from commit 23b6bf274f)
This commit is contained in:
Jian Zhang 2022-12-05 18:38:00 +08:00 committed by Zbigniew Jędrzejewski-Szmek
parent 6405eba4b6
commit 6d7b0dacc6
2 changed files with 4 additions and 0 deletions

View File

@ -4,3 +4,6 @@ Name=bond199
[Network]
IPv6AcceptRA=no
[Link]
MACAddress=00:11:22:33:44:55

View File

@ -3809,6 +3809,7 @@ class NetworkdBondTests(unittest.TestCase, Utilities):
output = check_output('ip -d link show bond199')
print(output)
self.assertRegex(output, 'primary dummy98')
self.assertIn('link/ether 00:11:22:33:44:55', output)
def test_bond_operstate(self):
copy_network_unit('25-bond.netdev', '11-dummy.netdev', '12-dummy.netdev',