提交 c9c7a2bd 编写于 作者: J Ján Tomko

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
上级 2cc8c44e
...@@ -3144,6 +3144,10 @@ virNetworkObjPtr virNetworkLoadConfig(virNetworkObjListPtr nets, ...@@ -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)))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册