mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-27 10:42:28 +02:00
feat(compute): Fix Dynamips to listen on the internal port when ssh is used for auxiliary console
This commit is contained in:
parent
d7c78f5744
commit
e6de7cb60a
@ -256,7 +256,8 @@ class Router(BaseNode):
|
|||||||
await self._hypervisor.send(f'vm set_con_tcp_port "{self._name}" {con_port}')
|
await self._hypervisor.send(f'vm set_con_tcp_port "{self._name}" {con_port}')
|
||||||
|
|
||||||
if self.aux is not None:
|
if self.aux is not None:
|
||||||
await self._hypervisor.send(f'vm set_aux_tcp_port "{self._name}" {self.aux}')
|
aux_port = self._internal_aux_port if self._wrap_aux and self._internal_aux_port else self.aux
|
||||||
|
await self._hypervisor.send(f'vm set_aux_tcp_port "{self._name}" {aux_port}')
|
||||||
|
|
||||||
# get the default base MAC address
|
# get the default base MAC address
|
||||||
mac_addr = await self._hypervisor.send(f'{self._platform} get_mac_addr "{self._name}"')
|
mac_addr = await self._hypervisor.send(f'{self._platform} get_mac_addr "{self._name}"')
|
||||||
@ -1012,7 +1013,8 @@ class Router(BaseNode):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
self.console = console
|
self.console = console
|
||||||
await self._hypervisor.send(f'vm set_con_tcp_port "{self._name}" {self.console}')
|
con_port = self._internal_console_port if self._wrap_console and self._internal_console_port else self.console
|
||||||
|
await self._hypervisor.send(f'vm set_con_tcp_port "{self._name}" {con_port}')
|
||||||
|
|
||||||
async def set_console_type(self, console_type):
|
async def set_console_type(self, console_type):
|
||||||
"""
|
"""
|
||||||
@ -1053,7 +1055,8 @@ class Router(BaseNode):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
self.aux = aux
|
self.aux = aux
|
||||||
await self._hypervisor.send(f'vm set_aux_tcp_port "{self._name}" {aux}')
|
aux_port = self._internal_aux_port if self._wrap_aux and self._internal_aux_port else self.aux
|
||||||
|
await self._hypervisor.send(f'vm set_aux_tcp_port "{self._name}" {aux_port}')
|
||||||
|
|
||||||
async def set_aux_type(self, aux_type):
|
async def set_aux_type(self, aux_type):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user