mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-17 17:24:51 +02:00
Remove wrong reset_console() method
This commit is contained in:
parent
410f062721
commit
c5f441e1d3
@ -619,17 +619,6 @@ class Node:
|
|||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
raise ControllerTimeoutError(f"Timeout when reset console {self._name}")
|
raise ControllerTimeoutError(f"Timeout when reset console {self._name}")
|
||||||
|
|
||||||
async def reset_console(self):
|
|
||||||
"""
|
|
||||||
Reset the console
|
|
||||||
"""
|
|
||||||
|
|
||||||
if self._console and self._console_type == "telnet":
|
|
||||||
try:
|
|
||||||
await self.post("/console/reset", timeout=240)
|
|
||||||
except asyncio.TimeoutError:
|
|
||||||
raise aiohttp.web.HTTPRequestTimeout(text="Timeout when reset console {}".format(self._name))
|
|
||||||
|
|
||||||
async def post(self, path, data=None, **kwargs):
|
async def post(self, path, data=None, **kwargs):
|
||||||
"""
|
"""
|
||||||
HTTP post on the node
|
HTTP post on the node
|
||||||
|
Loading…
Reference in New Issue
Block a user