mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
conf: Fix error message in virNetworkForwardDefParseXML
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
610f1300c5
commit
a6b6107656
@ -1362,8 +1362,9 @@ virNetworkForwardDefParseXML(const char *networkName,
|
||||
|
||||
forwardDev = virXPathString("string(./@dev)", ctxt);
|
||||
if (forwardDev && (nForwardAddrs > 0 || nForwardPfs > 0)) {
|
||||
virReportError(VIR_ERR_XML_ERROR, "%s",
|
||||
_("the <forward> 'dev' attribute cannot be used when <address> or <pf> sub-elements are present in network %1$s"));
|
||||
virReportError(VIR_ERR_XML_ERROR,
|
||||
_("the <forward> 'dev' attribute cannot be used when <address> or <pf> sub-elements are present in network %1$s"),
|
||||
networkName);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user