mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Optional AUX console port allocation for Dynamips VMs.
This commit is contained in:
parent
7fe2d6c367
commit
0f10d25c0b
@ -113,7 +113,9 @@ class Router(BaseVM):
|
|||||||
if self._aux is not None:
|
if self._aux is not None:
|
||||||
self._aux = self._manager.port_manager.reserve_tcp_port(self._aux)
|
self._aux = self._manager.port_manager.reserve_tcp_port(self._aux)
|
||||||
else:
|
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:
|
else:
|
||||||
log.info("Creating a new ghost IOS instance")
|
log.info("Creating a new ghost IOS instance")
|
||||||
if self._console:
|
if self._console:
|
||||||
|
@ -768,7 +768,7 @@ VM_OBJECT_SCHEMA = {
|
|||||||
},
|
},
|
||||||
"aux": {
|
"aux": {
|
||||||
"description": "auxiliary console TCP port",
|
"description": "auxiliary console TCP port",
|
||||||
"type": "integer",
|
"type": ["integer", "null"],
|
||||||
"minimum": 1,
|
"minimum": 1,
|
||||||
"maximum": 65535
|
"maximum": 65535
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user