Import GNS3VM settings from 1.5

Fix #643
This commit is contained in:
Julien Duponchelle committed 2016-09-06 13:06:20 +02:00
1 parent 0573c3f7d5
commit bc5b5969eb
3 files changed
+123 -10

No files matched your search

+8 -7
View File
@@ -222,6 +222,7 @@ class GNS3VM:
name="GNS3 VM ({})".format(self._current_engine().vmname),
host=None,
force=True)
@asyncio.coroutine
def auto_stop_vm(self):
if self.enable and self.auto_stop:
@@ -241,13 +242,13 @@ class GNS3VM:
engine.vmname = self._settings["vmname"]
yield from engine.start()
yield from self._controller.add_compute(compute_id="vm",
name="GNS3 VM ({})".format(engine.vmname),
protocol=self.protocol,
host=self.ip_address,
port=self.port,
user=self.user,
password=self.password,
force=True)
name="GNS3 VM ({})".format(engine.vmname),
protocol=self.protocol,
host=self.ip_address,
port=self.port,
user=self.user,
password=self.password,
force=True)
@locked_coroutine
def _stop(self):