mirror of
https://github.com/systemd/systemd
synced 2024-09-06 16:56:43 +00:00
networkd: do not generate MAC for bridge device.
closes https://github.com/systemd/systemd/issues/12558
This commit is contained in:
parent
b6ec9afd44
commit
deb2cfa4c6
|
@ -732,7 +732,7 @@ int netdev_load_one(Manager *manager, const char *filename) {
|
|||
if (!netdev->filename)
|
||||
return log_oom();
|
||||
|
||||
if (!netdev->mac && netdev->kind != NETDEV_KIND_VLAN) {
|
||||
if (!netdev->mac && !IN_SET(netdev->kind, NETDEV_KIND_VLAN, NETDEV_KIND_BRIDGE)) {
|
||||
r = netdev_get_mac(netdev->ifname, &netdev->mac);
|
||||
if (r < 0)
|
||||
return log_netdev_error_errno(netdev, r,
|
||||
|
|
Loading…
Reference in a new issue