mirror of
https://github.com/GNS3/gns3-server.git
synced 2025-06-18 15:28:11 +00:00
Optional AUX console port allocation for Dynamips VMs.
This commit is contained in:
@ -113,7 +113,9 @@ class Router(BaseVM):
|
||||
if self._aux is not None:
|
||||
self._aux = self._manager.port_manager.reserve_tcp_port(self._aux)
|
||||
else:
|
||||
self._aux = self._manager.port_manager.get_free_tcp_port()
|
||||
allocate_aux = self.manager.config.get_section_config("Dynamips").getboolean("allocate_aux_console_ports", False)
|
||||
if allocate_aux:
|
||||
self._aux = self._manager.port_manager.get_free_tcp_port()
|
||||
else:
|
||||
log.info("Creating a new ghost IOS instance")
|
||||
if self._console:
|
||||
|
Reference in New Issue
Block a user