 +
 +    return 0;
 +}
-+
+ 
  int VirtualMachine::get_network_leases(string& estr)
  {
-     int                   num_nics, rc;
-@@ -834,7 +868,7 @@ int VirtualMachine::get_network_leases(string& estr)
+@@ -900,7 +933,7 @@ int VirtualMachine::get_network_leases(string& estr)
  
          if (rc == -1)
          {
 -            goto error_vnet; 
 +            goto error_vnet;
          }
-         else if ( rc == -3 )
-         {
-@@ -908,6 +942,14 @@ void VirtualMachine::release_network_leases()
-         vnpool->update(vn);
+     }
+ 
+@@ -967,6 +1000,14 @@ void VirtualMachine::release_network_leases()
+         }
  
          vn->unlock();
 +

         lcm->trigger(LifeCycleManager::DEPLOY,vid);
     }
diff --git a/src/vm/VirtualMachine.cc b/src/vm/VirtualMachine.cc
index 99a082c..5b565cb 100644
--- a/src/vm/VirtualMachine.cc
+++ b/src/vm/VirtualMachine.cc
@@ -809,6 +809,40 @@ void VirtualMachine::release_disk_images()
 /* -------------------------------------------------------------------------- */
 /* -------------------------------------------------------------------------- */
 
+int VirtualMachine::log_network_leases()
+{
+    int                   num_nics;

      *  @return 0 if success
      */
diff --git a/src/dm/DispatchManagerActions.cc b/src/dm/DispatchManagerActions.cc
index 7294dad..1b281c0 100644
--- a/src/dm/DispatchManagerActions.cc
+++ b/src/dm/DispatchManagerActions.cc
@@ -47,7 +47,24 @@ int DispatchManager::deploy (
