mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 06:41:13 +02:00
Merge branch 'master' into 2.0
This commit is contained in:
14 files changed
+314
-30
No files matched your search
@@ -452,11 +452,7 @@ class BaseNode:
|
||||
"""
|
||||
|
||||
path = self._manager.config.get_section_config("Server").get("ubridge_path", "ubridge")
|
||||
if path == "ubridge" or path == "None":
|
||||
path = shutil.which("ubridge")
|
||||
|
||||
if path is None or len(path) == 0:
|
||||
raise NodeError("uBridge is not installed")
|
||||
path = shutil.which(path)
|
||||
return path
|
||||
|
||||
@asyncio.coroutine
|
||||
@@ -481,7 +477,7 @@ class BaseNode:
|
||||
"""
|
||||
|
||||
if self.ubridge_path is None:
|
||||
raise NodeError("uBridge is not available")
|
||||
raise NodeError("uBridge is not available or path doesn't exist")
|
||||
|
||||
if not self._manager.has_privileged_access(self.ubridge_path):
|
||||
raise NodeError("uBridge requires root access or capability to interact with network adapters")
|
||||
|
||||
Reference in new issue
Block a user