mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-06 00:43:48 +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 {
|
typedef enum {
|
||||||
VIR_NETWORK_PORT_CREATE_RECLAIM = (1 << 0), /* reclaim existing used resources */
|
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;
|
} virNetworkPortCreateFlags;
|
||||||
|
|
||||||
virNetworkPortPtr
|
virNetworkPortPtr
|
||||||
|
@ -1485,7 +1485,7 @@ virNetworkPortGetParameters(virNetworkPortPtr port,
|
|||||||
* virNetworkPortCreateXML:
|
* virNetworkPortCreateXML:
|
||||||
* @net: pointer to the network object
|
* @net: pointer to the network object
|
||||||
* @xmldesc: an XML description of the port
|
* @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
|
* Create a new network port, based on an XML description
|
||||||
* similar to the one returned by virNetworkPortGetXMLDesc()
|
* similar to the one returned by virNetworkPortGetXMLDesc()
|
||||||
|
Loading…
Reference in New Issue
Block a user