mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-12 09:00:57 +00:00
Require uBridge version 0.9.14 on Linux
This commit is contained in:
parent
e83ed3b4b5
commit
a0f2dd374e
@ -138,8 +138,14 @@ class Hypervisor(UBridgeHypervisor):
|
|||||||
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.12"):
|
if sys.platform.startswith("win") or sys.platform.startswith("darwin"):
|
||||||
raise UbridgeError("uBridge executable version must be >= 0.9.12")
|
minimum_required_version = "0.9.12"
|
||||||
|
else:
|
||||||
|
# uBridge version 0.9.14 is required for packet filters
|
||||||
|
# to work for IOU nodes.
|
||||||
|
minimum_required_version = "0.9.14"
|
||||||
|
if parse_version(self._version) < parse_version(minimum_required_version):
|
||||||
|
raise UbridgeError("uBridge executable version must be >= {}".format(minimum_required_version))
|
||||||
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