[PATCH 3/4] bridge_driver: allow VIR_NETWORK_PORT_CREATE_VALIDATE flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Kristina Hanicova <khanicov@xxxxxxxxxx>
---
 src/network/bridge_driver.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c
index 7513ddad48..06822fb3a0 100644
--- a/src/network/bridge_driver.c
+++ b/src/network/bridge_driver.c
@@ -5280,14 +5280,15 @@ networkPortCreateXML(virNetworkPtr net,
     virNetworkPortPtr ret = NULL;
     int rc;
 
-    virCheckFlags(VIR_NETWORK_PORT_CREATE_RECLAIM, NULL);
+    virCheckFlags(VIR_NETWORK_PORT_CREATE_RECLAIM |
+                  VIR_NETWORK_PORT_CREATE_VALIDATE, NULL);
 
     if (!(obj = networkObjFromNetwork(net)))
         return ret;
 
     def = virNetworkObjGetDef(obj);
 
-    if (!(portdef = virNetworkPortDefParseString(xmldesc, 0)))
+    if (!(portdef = virNetworkPortDefParseString(xmldesc, flags)))
         goto cleanup;
 
     if (virNetworkPortCreateXMLEnsureACL(net->conn, def, portdef) < 0)
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux