提交 a71f741e 编写于 作者: P Pavel Hrdina

Fix bug with loading bridge name for active domain during libvirtd start

If you have a bridge network in running domain and libvirtd is restarted
the information about host bridge interface is lost from live xml.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1140085Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
上级 eaf43e37
......@@ -6850,6 +6850,15 @@ virDomainActualNetDefParseXML(xmlNodePtr node,
goto error;
}
VIR_FREE(class_id);
} else if (actual->type == VIR_DOMAIN_NET_TYPE_BRIDGE) {
char *brname = virXPathString("string(./source/@bridge)", ctxt);
if (!brname) {
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("Missing <source> element with bridge name in "
"interface's <actual> element"));
goto error;
}
actual->data.bridge.brname = brname;
}
bandwidth_node = virXPathNode("./bandwidth", ctxt);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册