api: add VIR_NETWORK_PORT_CREATE_VALIDATE flag

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>
This commit is contained in:
Kristina Hanicova 2021-08-26 14:23:54 +02:00 committed by Ján Tomko
parent 5599dc547e
commit c499b09e91
2 changed files with 2 additions and 1 deletions

View 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

View 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()