Beispiel #1
0
 def snapshot_info(self, guest_id, snapshot_id):
     vm = self._vm_ref(guest_id)
     snap = vmware.get_snapshot(vm, snapshot_id)
     if snap:
         return self._snapshot_info(snap)
     else:
         raise EntityNotFound("Snapshot", snapshot_id)
Beispiel #2
0
 def snapshot_info(self, guest_id, snapshot_id):
     vm = self._vm_ref(guest_id)
     snap = vmware.get_snapshot(vm, snapshot_id)
     if snap:
         return self._snapshot_info(snap)
     else:
         raise EntityNotFound("Snapshot", snapshot_id)
Beispiel #3
0
 def snapshot_delete(self, guest_id, snapshot_id):
     vm = self._vm_ref(guest_id)
     snap = vmware.get_snapshot(vm, snapshot_id)
     vmware.delete_snapshot(self.connection, vm, snap)
Beispiel #4
0
 def snapshot_revert(self, guest_id, snapshot_id):
     vm = self._vm_ref(guest_id)
     snap = vmware.get_snapshot(vm, snapshot_id)
     vmware.revert_to_snapshot(self.connection, vm, snap)
Beispiel #5
0
 def snapshot_delete(self, guest_id, snapshot_id):
     vm = self._vm_ref(guest_id)
     snap = vmware.get_snapshot(vm, snapshot_id)
     vmware.delete_snapshot(self.connection, vm, snap)
Beispiel #6
0
 def snapshot_revert(self, guest_id, snapshot_id):
     vm = self._vm_ref(guest_id)
     snap = vmware.get_snapshot(vm, snapshot_id)
     vmware.revert_to_snapshot(self.connection, vm, snap)