Skip to content

Commit bca41b0

Browse files
committed
test vlan: Fix race condition on MAC address
When creating VLAN without `address` property defined, systemd/udevd will generate random MAC address and change it, hence we have race problem during creation and query. Fixed by explicitly set MAC address when creating VLAN in tests. Signed-off-by: Gris Ge <cnfourt@gmail.com>
1 parent fb5960c commit bca41b0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ip/link/tests/vlan.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ where
256256
"link",
257257
&parent_name,
258258
"name",
259+
"address",
260+
"0e:d1:49:08:27:84",
259261
vlan_name,
260262
"type",
261263
"vlan",

0 commit comments

Comments
 (0)