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