[PATCH 2/4] conf: add validation and propagate flags into virInterfaceDefParse()
Ján Tomko
jtomko at redhat.com
Fri Aug 20 13:36:55 UTC 2021
On a Friday in 2021, Kristina Hanicova wrote:
>We need to know if validation flag is present in order to
>validate given XML against schema in virXMLParse().
>
>Signed-off-by: Kristina Hanicova <khanicov at redhat.com>
>---
> src/conf/interface_conf.c | 14 ++++++++------
> src/conf/interface_conf.h | 3 ++-
> src/conf/virinterfaceobj.c | 2 +-
> src/interface/interface_backend_netcf.c | 4 ++--
> src/test/test_driver.c | 2 +-
> tests/interfacexml2xmltest.c | 2 +-
> 6 files changed, 15 insertions(+), 12 deletions(-)
>
>diff --git a/src/conf/interface_conf.c b/src/conf/interface_conf.c
>index c371a252a8..464ff26856 100644
>--- a/src/conf/interface_conf.c
>+++ b/src/conf/interface_conf.c
>@@ -685,7 +685,6 @@ virInterfaceDefParseXML(xmlXPathContextPtr ctxt,
> VIR_XPATH_NODE_AUTORESTORE(ctxt)
> xmlNodePtr lnk;
>
>-
> /* check @type */
> tmp = virXPathString("string(./@type)", ctxt);
> if (tmp == NULL) {
Unrelated whitespace change
Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20210820/01796710/attachment-0001.sig>
More information about the libvir-list
mailing list