def stop(self): """ Properly stops the module. """ #if not sys.platform.startswith("win32"): # self._callback.stop() if self._hypervisor_manager: self._hypervisor_manager.stop_all_hypervisors() IModule.stop(self) # this will stop the I/O loop
def stop(self): """ Properly stops the module. """ # delete all IOU instances for iou_id in self._iou_instances: iou_instance = self._iou_instances[iou_id] iou_instance.delete() IModule.stop(self) # this will stop the I/O loop
def stop(self, signum=None): """ Properly stops the module. :param signum: signal number (if called by the signal handler) """ # delete all QEMU instances for qemu_id in self._qemu_instances: qemu_instance = self._qemu_instances[qemu_id] qemu_instance.delete() IModule.stop(self, signum) # this will stop the I/O loop
def stop(self, signum=None): """ Properly stops the module. :param signum: signal number (if called by the signal handler) """ # delete all VPCS instances for vpcs_id in self._vpcs_instances: vpcs_instance = self._vpcs_instances[vpcs_id] vpcs_instance.delete() IModule.stop(self, signum) # this will stop the I/O loop
def stop(self, signum=None): """ Properly stops the module. :param signum: signal number (if called by the signal handler) """ # delete all VirtualBox instances for vbox_id in self._vbox_instances: vbox_instance = self._vbox_instances[vbox_id] try: vbox_instance.delete() except VirtualBoxError: continue IModule.stop(self, signum) # this will stop the I/O loop
def stop(self, signum=None): """ Properly stops the module. :param signum: signal number (if called by the signal handler) """ # delete all VirtualBox instances for vbox_id in self._vbox_instances: vbox_instance = self._vbox_instances[vbox_id] vbox_instance.delete() if self._vboxwrapper and self._vboxwrapper.started: self._vboxwrapper.stop() IModule.stop(self, signum) # this will stop the I/O loop
def stop(self, signum=None): """ Properly stops the module. :param signum: signal number (if called by the signal handler) """ if not sys.platform.startswith("win32"): self._callback.stop() # stop all Dynamips hypervisors if self._hypervisor_manager: self._hypervisor_manager.stop_all_hypervisors() self.delete_dynamips_files() IModule.stop(self, signum) # this will stop the I/O loop
def stop(self, signum=None): """ Properly stops the module. :param signum: signal number (if called by the signal handler) """ if self._deadman_process == None: log.info("Deadman: Can't stop, is not currently running") log.debug("Deadman: Stopping process") self._deadman_process = self._stop_deadman_process() self._deadman_process = None #Jerry or Jeremy why do we do this? Won't this stop the I/O loop for #for everyone? IModule.stop(self, signum) # this will stop the I/O loop
def stop(self, signum=None): """ Properly stops the module. :param signum: signal number (if called by the signal handler) """ self._iou_callback.stop() # delete all IOU instances for iou_id in self._iou_instances: iou_instance = self._iou_instances[iou_id] iou_instance.delete() self.delete_iourc_file() IModule.stop(self, signum) # this will stop the I/O loop
def stop(self, signum=None): """ Properly stops the module. :param signum: signal number (if called by the signal handler) """ if not sys.platform.startswith("win32"): self._callback.stop() # automatically save configs for all router instances for router_id in self._routers: router = self._routers[router_id] router.save_configs() # stop all Dynamips hypervisors if self._hypervisor_manager: self._hypervisor_manager.stop_all_hypervisors() self.delete_dynamips_files() IModule.stop(self, signum) # this will stop the I/O loop