mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: Add network xmlopt argument
Pass an xmlopt argument through all the needed network conf functions, like is done for domain XML handling. No functional change for now Reviewed-by: Laine Stump <laine@laine.org> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
@@ -30,14 +30,14 @@ testCompareXMLToXMLFiles(const char *inxml, const char *outxml,
|
||||
testCompareNetXML2XMLResult result = TEST_COMPARE_NET_XML2XML_RESULT_SUCCESS;
|
||||
virNetworkDefPtr dev = NULL;
|
||||
|
||||
if (!(dev = virNetworkDefParseFile(inxml))) {
|
||||
if (!(dev = virNetworkDefParseFile(inxml, NULL))) {
|
||||
result = TEST_COMPARE_NET_XML2XML_RESULT_FAIL_PARSE;
|
||||
goto cleanup;
|
||||
}
|
||||
if (expectResult == TEST_COMPARE_NET_XML2XML_RESULT_FAIL_PARSE)
|
||||
goto cleanup;
|
||||
|
||||
if (!(actual = virNetworkDefFormat(dev, flags))) {
|
||||
if (!(actual = virNetworkDefFormat(dev, NULL, flags))) {
|
||||
result = TEST_COMPARE_NET_XML2XML_RESULT_FAIL_FORMAT;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user