]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
api: add VIR_NETWORK_PORT_CREATE_VALIDATE flag
authorKristina Hanicova <khanicov@redhat.com>
Thu, 26 Aug 2021 12:23:54 +0000 (14:23 +0200)
committerJán Tomko <jtomko@redhat.com>
Mon, 6 Sep 2021 15:08:59 +0000 (17:08 +0200)
Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
include/libvirt/libvirt-network.h
src/libvirt-network.c

index 0a49c1888eb2bf18a44b9d8a665975df6b79f701..df29aabd5f4cfa884db11599b1ebbe577333b354 100644 (file)
@@ -367,6 +367,7 @@ virNetworkPortLookupByUUIDString(virNetworkPtr net,
 
 typedef enum {
     VIR_NETWORK_PORT_CREATE_RECLAIM = (1 << 0), /* reclaim existing used resources */
+    VIR_NETWORK_PORT_CREATE_VALIDATE = (1 << 1), /* Validate the XML document against schema */
 } virNetworkPortCreateFlags;
 
 virNetworkPortPtr
index 5829996301a2f5e6c0611c80dec44a9434a6d7d2..cf329120636cbce91c46adb3224171a5a0576c52 100644 (file)
@@ -1485,7 +1485,7 @@ virNetworkPortGetParameters(virNetworkPortPtr port,
  * virNetworkPortCreateXML:
  * @net: pointer to the network object
  * @xmldesc: an XML description of the port
- * @flags: currently unused, pass 0
+ * @flags: bitwise-OR of virNetworkPortCreateFlags
  *
  * Create a new network port, based on an XML description
  * similar to the one returned by virNetworkPortGetXMLDesc()