mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-03 01:17:45 +03:00
test-network: add test for bond mac address config
Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com> (cherry picked from commit23b6bf274f
) (cherry picked from commit6d7b0dacc6
)
This commit is contained in:
parent
dfbdb3a8d5
commit
19aed86574
@ -4,3 +4,6 @@ Name=bond199
|
||||
|
||||
[Network]
|
||||
IPv6AcceptRA=no
|
||||
|
||||
[Link]
|
||||
MACAddress=00:11:22:33:44:55
|
||||
|
@ -3720,6 +3720,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_unit_to_networkd_unit_path('25-bond.netdev', '11-dummy.netdev', '12-dummy.netdev',
|
||||
|
Loading…
Reference in New Issue
Block a user