Suspend the GNS3 VM

Fix #656
This commit is contained in:
Julien Duponchelle committed 2016-09-08 15:32:35 +02:00
1 parent cfe834afc4
commit 1412462229
8 files changed
+114 -42

No files matched your search

+8 -21
View File
@@ -28,7 +28,6 @@ class BaseGNS3VM:
self._controller = controller
self._vmname = None
self._auto_stop = False
self._ip_address = None
self._port = 3080
self._headless = False
@@ -245,26 +244,6 @@ class BaseGNS3VM:
self._ram = new_ram
@property
def auto_stop(self):
"""
Returns whether the VM should automatically be stopped when GNS3 quit
:returns: boolean
"""
return self._auto_start
@auto_stop.setter
def auto_stop(self, new_auto_stop):
"""
Set whether the VM should automatically be stopped when GNS3 quit
:param new_auto_stop: boolean
"""
self._auto_stop = new_auto_stop
@property
def engine(self):
"""
@@ -291,6 +270,14 @@ class BaseGNS3VM:
raise NotImplementedError
@asyncio.coroutine
def suspend(self):
"""
Suspend the GNS3 VM.
"""
raise NotImplementedError
@asyncio.coroutine
def stop(self, force=False):
"""