From: Jian Zhang Date: Mon, 5 Dec 2022 10:38:00 +0000 (+0800) Subject: test-network: add test for bond mac address config X-Git-Tag: v253-rc1~354^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F25628%2Fhead;p=thirdparty%2Fsystemd.git test-network: add test for bond mac address config Signed-off-by: Jian Zhang --- diff --git a/test/test-network/conf/23-bond199.network b/test/test-network/conf/23-bond199.network index 9f4879ff24c..6a1f9a1bc7a 100644 --- a/test/test-network/conf/23-bond199.network +++ b/test/test-network/conf/23-bond199.network @@ -4,3 +4,6 @@ Name=bond199 [Network] IPv6AcceptRA=no + +[Link] +MACAddress=00:11:22:33:44:55 diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index e4e92d5a379..398ece8297a 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -3881,6 +3881,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',