mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-20 11:48:28 -06:00
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.
This commit is contained in:
parent
553f31c579
commit
b37979023d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user