本文整理汇总了Python中gns3server.modules.IModule.stop方法的典型用法代码示例。如果您正苦于以下问题:Python IModule.stop方法的具体用法?Python IModule.stop怎么用?Python IModule.stop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gns3server.modules.IModule
的用法示例。
在下文中一共展示了IModule.stop方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: stop
# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
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
示例2: stop
# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
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
示例3: stop
# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
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
示例4: stop
# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
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
示例5: stop
# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
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
示例6: stop
# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
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
示例7: stop
# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
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
示例8: stop
# 需要导入模块: from gns3server.modules import IModule [as 别名]
# 或者: from gns3server.modules.IModule import stop [as 别名]
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