mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Test work without vpcs binary
This commit is contained in:
1 parent
0eaa7be86a
commit
984d47f9c8
5 files changed
+10
-7
No files matched your search
@@ -157,7 +157,6 @@ class PortManager:
|
||||
Get an available TCP console port and reserve it
|
||||
"""
|
||||
|
||||
print("FREE")
|
||||
port = self.find_unused_port(self._console_port_range[0],
|
||||
self._console_port_range[1],
|
||||
host=self._console_host,
|
||||
|
||||
@@ -77,8 +77,6 @@ class VPCSVM(BaseVM):
|
||||
else:
|
||||
self._console = self._manager.port_manager.get_free_console_port()
|
||||
|
||||
self._check_requirements()
|
||||
|
||||
def __del__(self):
|
||||
self._kill_process()
|
||||
|
||||
@@ -169,6 +167,8 @@ class VPCSVM(BaseVM):
|
||||
Starts the VPCS process.
|
||||
"""
|
||||
|
||||
self._check_requirements()
|
||||
|
||||
if not self.is_running():
|
||||
if not self._ethernet_adapter.get_nio(0):
|
||||
raise VPCSError("This VPCS instance must be connected in order to start")
|
||||
|
||||
Reference in new issue
Block a user