mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 06:41:13 +02:00
Merge branch '2.2' into 3.0
# Conflicts: # gns3server/compute/iou/iou_vm.py
This commit is contained in:
2 files changed
+18
-19
No files matched your search
@@ -436,9 +436,9 @@ class IOUVM(BaseNode):
|
||||
)
|
||||
)
|
||||
|
||||
def _is_iou_licence_check_enabled(self):
|
||||
def _is_iou_license_check_enabled(self):
|
||||
"""
|
||||
Returns if IOU licence check is enabled.
|
||||
Returns if IOU license check is enabled.
|
||||
|
||||
:return: boolean
|
||||
"""
|
||||
@@ -459,7 +459,7 @@ class IOUVM(BaseNode):
|
||||
|
||||
return True
|
||||
|
||||
async def _check_iou_licence(self):
|
||||
async def _check_iou_license(self):
|
||||
"""
|
||||
Checks for a valid IOU key in the iourc file (paranoid mode).
|
||||
"""
|
||||
@@ -569,14 +569,13 @@ class IOUVM(BaseNode):
|
||||
raise IOUError(f"Could not rename nvram files: {e}")
|
||||
|
||||
iourc_path = None
|
||||
if self._is_iou_licence_check_enabled():
|
||||
if self._is_iou_license_check_enabled():
|
||||
iourc_path = self.iourc_path
|
||||
if not iourc_path:
|
||||
raise IOUError("Could not find an iourc file (IOU license), please configure an IOU license")
|
||||
if not os.path.isfile(iourc_path):
|
||||
raise IOUError(f"The iourc path '{iourc_path}' is not a regular file")
|
||||
|
||||
await self._check_iou_licence()
|
||||
await self._check_iou_license()
|
||||
|
||||
await self._start_ubridge()
|
||||
self._create_netmap_config()
|
||||
|
||||
Reference in new issue
Block a user