Bug 79638

Summary: [systemd-networkd] MACAddress based matching fails
Product: systemd Reporter: Dave Reisner <d>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium CC: synthead
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Dave Reisner 2014-06-04 14:33:31 UTC
Commit 505f8da73 is responsible for downstream bug:

https://bugs.archlinux.org/task/40675

Since this commit, mac addresses are compared to an empty dev_mac in net_match_config, causing any MACAddress based matching rule to be ignored.

To reproduce the failure, use a .network file such as this:

[Match]
MACAddress=fe:ed:fa:ce:be:ef

[Network]
Address=10.0.3.1/24

Assuming a real MAC, the address will never be applied. Matching by other methods, such as interface name, still work as expected.
Comment 1 Dave Reisner 2014-06-04 16:48:52 UTC
Root cause is that nothing ever assigns the MAC address in link_new() or link_initialized() now that udev has been pushed out of the code path.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.