提交 b3797902 编写于 作者: F Florian Vichot 提交者: Daniel Veillard

Incorrect error message in virDomainNetDefParseXML

* src/conf/domain_conf.c: when declaring a <interface type="bridge">
  tag, <source> needs a "bridge" attribute, but the parser complains
  about a missing "dev" attribute.
上级 553f31c5
......@@ -1112,7 +1112,7 @@ virDomainNetDefParseXML(virConnectPtr conn,
case VIR_DOMAIN_NET_TYPE_BRIDGE:
if (bridge == NULL) {
virDomainReportError(conn, VIR_ERR_INTERNAL_ERROR, "%s",
_("No <source> 'dev' attribute specified with <interface type='bridge'/>"));
_("No <source> 'bridge' attribute specified with <interface type='bridge'/>"));
goto error;
}
def->data.bridge.brname = bridge;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册