1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-26 10:03:37 +03:00

M #-: Fix vnet name check on create (#3323)

This commit is contained in:
Christian González 2019-05-10 09:43:33 +02:00 committed by Ruben S. Montero
parent 0e7457bfae
commit 983c154d7a

View File

@ -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: