From 3866190d564f8f241f13f3263be06d7aa382b34c Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Wed, 5 Mar 2014 23:57:36 +0100 Subject: [PATCH] feature #2208: delete leases (Fixed virtual networks) on hold --- src/vnm/FixedLeases.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vnm/FixedLeases.cc b/src/vnm/FixedLeases.cc index 42e54b87b7..61236c3db1 100644 --- a/src/vnm/FixedLeases.cc +++ b/src/vnm/FixedLeases.cc @@ -198,7 +198,7 @@ int FixedLeases::remove(const string& ip, string& error_msg) goto error_notfound; } - if (it->second->used) //it is in use + if (it->second->used && it->second->vid != -1) //it is in use by VM { goto error_used; }