Re: [PATCH 2/4] conf: add validation and propagate flags into virInterfaceDefParse()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
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

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux