mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-26 15:44:34 +02:00
Rename console methods in port manager to use the generic tcp term in the name.
Fixes bug when a console port is allocated to a Ghost VM instance and not released. Warnings at exit when TCP/UDP ports are still allocated.
This commit is contained in:
1 parent
182d2e465e
commit
3d3300e83a
13 files changed
+66
-39
No files matched your search
+2
-2
@@ -116,10 +116,10 @@ def free_console_port(request, port_manager):
|
||||
"""Get a free TCP port"""
|
||||
|
||||
# In case of already use ports we will raise an exception
|
||||
port = port_manager.get_free_console_port()
|
||||
port = port_manager.get_free_tcp_port()
|
||||
# We release the port immediately in order to allow
|
||||
# the test do whatever the test want
|
||||
port_manager.release_console_port(port)
|
||||
port_manager.release_tcp_port(port)
|
||||
return port
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user