|
|
|
@ -24,7 +24,6 @@ import os
|
|
|
|
|
import subprocess
|
|
|
|
|
import asyncio
|
|
|
|
|
|
|
|
|
|
from gns3server.utils import parse_version
|
|
|
|
|
from gns3server.utils.asyncio import wait_for_process_termination
|
|
|
|
|
from .dynamips_hypervisor import DynamipsHypervisor
|
|
|
|
|
from .dynamips_error import DynamipsError
|
|
|
|
@ -205,7 +204,7 @@ class Hypervisor(DynamipsHypervisor):
|
|
|
|
|
command = [self._path]
|
|
|
|
|
command.extend(["-N1"]) # use instance IDs for filenames
|
|
|
|
|
command.extend(["-l", "dynamips_i{}_log.txt".format(self._id)]) # log file
|
|
|
|
|
if not sys.platform.startswith("win") and parse_version(self.version) >= parse_version('0.2.23'):
|
|
|
|
|
if not sys.platform.startswith("win"):
|
|
|
|
|
command.extend(["-H", "{}:{}".format(self._host, self._port), "--console-binding-addr", self._console_host])
|
|
|
|
|
else:
|
|
|
|
|
command.extend(["-H", str(self._port)])
|
|
|
|
|