mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
Silently ignore MAC in NetworkLoadConfig
Libvirt's RPMs have been adding it to networks which don't support it. https://bugzilla.redhat.com/show_bug.cgi?id=1156367
This commit is contained in:
parent
2cc8c44e2f
commit
c9c7a2bd96
@ -3144,6 +3144,10 @@ virNetworkObjPtr virNetworkLoadConfig(virNetworkObjListPtr nets,
|
|||||||
*/
|
*/
|
||||||
if (virNetworkSetBridgeName(nets, def, 0))
|
if (virNetworkSetBridgeName(nets, def, 0))
|
||||||
goto error;
|
goto error;
|
||||||
|
} else {
|
||||||
|
/* Throw away MAC address for other forward types,
|
||||||
|
* which could have been generated by older libvirt RPMs */
|
||||||
|
def->mac_specified = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(net = virNetworkAssignDef(nets, def, false)))
|
if (!(net = virNetworkAssignDef(nets, def, false)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user