1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 00:08:11 +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:
Julien Duponchelle 2016-11-11 17:07:20 +01:00
parent 8dd4f63aca
commit 63a92c4a16
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -131,15 +131,15 @@ class Hypervisor(UBridgeHypervisor):
@asyncio.coroutine
def _check_ubridge_version(self):
"""
Checks if the ubridge executable version is >= 0.9.5
Checks if the ubridge executable version
"""
try:
output = yield from subprocess_check_output(self._path, "-v", cwd=self._working_dir)
match = re.search("ubridge version ([0-9a-z\.]+)", output)
if match:
self._version = match.group(1)
if parse_version(self._version) < parse_version("0.9.6"):
raise UbridgeError("uBridge executable version must be >= 0.9.6")
if parse_version(self._version) < parse_version("0.9.7"):
raise UbridgeError("uBridge executable version must be >= 0.9.7")
else:
raise UbridgeError("Could not determine uBridge version for {}".format(self._path))
except (OSError, subprocess.SubprocessError) as e: