Signed-off-by: Kristina Hanicova <khanicov(a)redhat.com>
---
include/libvirt/libvirt-network.h | 1 +
src/libvirt-network.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/libvirt/libvirt-network.h b/include/libvirt/libvirt-network.h
index 0a49c1888e..e8c008cfc8 100644
--- a/include/libvirt/libvirt-network.h
+++ b/include/libvirt/libvirt-network.h
@@ -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
diff --git a/src/libvirt-network.c b/src/libvirt-network.c
index 5829996301..cf32912063 100644
--- a/src/libvirt-network.c
+++ b/src/libvirt-network.c
@@ -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()
--
2.31.1