From 983c154d7a7b343127161e7d988faeb3c88e03ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez?= Date: Fri, 10 May 2019 09:43:33 +0200 Subject: [PATCH] M #-: Fix vnet name check on create (#3323) --- src/vnm/VirtualNetworkPool.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vnm/VirtualNetworkPool.cc b/src/vnm/VirtualNetworkPool.cc index 1c5c8c9ccc..03f8a68e0d 100644 --- a/src/vnm/VirtualNetworkPool.cc +++ b/src/vnm/VirtualNetworkPool.cc @@ -128,7 +128,7 @@ int VirtualNetworkPool::allocate ( vn = new VirtualNetwork(uid, gid, uname, gname, umask, pvid, cluster_ids, vn_template); - + vn_template->get("NAME", name); // Check for duplicates db_oid = exist(name, uid); @@ -169,7 +169,7 @@ int VirtualNetworkPool::allocate ( error_duplicated: oss << "NAME is already taken by NET " << db_oid << "."; error_str = oss.str(); - + delete vn; error_common: