mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
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:
parent
5599dc547e
commit
c499b09e91
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user