mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-22 22:22:25 +00:00
Require ubridge 0.9.7 this fix error with IOL bridge creation
Fix https://github.com/GNS3/gns3-gui/issues/1651
This commit is contained in:
parent
8dd4f63aca
commit
63a92c4a16
@ -131,15 +131,15 @@ class Hypervisor(UBridgeHypervisor):
|
|||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def _check_ubridge_version(self):
|
def _check_ubridge_version(self):
|
||||||
"""
|
"""
|
||||||
Checks if the ubridge executable version is >= 0.9.5
|
Checks if the ubridge executable version
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
output = yield from subprocess_check_output(self._path, "-v", cwd=self._working_dir)
|
output = yield from subprocess_check_output(self._path, "-v", cwd=self._working_dir)
|
||||||
match = re.search("ubridge version ([0-9a-z\.]+)", output)
|
match = re.search("ubridge version ([0-9a-z\.]+)", output)
|
||||||
if match:
|
if match:
|
||||||
self._version = match.group(1)
|
self._version = match.group(1)
|
||||||
if parse_version(self._version) < parse_version("0.9.6"):
|
if parse_version(self._version) < parse_version("0.9.7"):
|
||||||
raise UbridgeError("uBridge executable version must be >= 0.9.6")
|
raise UbridgeError("uBridge executable version must be >= 0.9.7")
|
||||||
else:
|
else:
|
||||||
raise UbridgeError("Could not determine uBridge version for {}".format(self._path))
|
raise UbridgeError("Could not determine uBridge version for {}".format(self._path))
|
||||||
except (OSError, subprocess.SubprocessError) as e:
|
except (OSError, subprocess.SubprocessError) as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user