From f3ad333a2166ddf92fb74b0e4566368039544ce1 Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 29 Oct 2019 18:06:09 +0800 Subject: [PATCH] Do not send "console_type" property to computes for all builtin nodes excepting Ethernet switches. Fixes https://github.com/GNS3/gns3-gui/issues/2882 --- gns3server/controller/node.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gns3server/controller/node.py b/gns3server/controller/node.py index b22bbb8d..8de40aa6 100644 --- a/gns3server/controller/node.py +++ b/gns3server/controller/node.py @@ -473,7 +473,8 @@ class Node: if self._console: # console is optional for builtin nodes data["console"] = self._console - if self._console_type: + if self._console_type and self._node_type not in ("cloud", "nat", "ethernet_hub", "frame_relay_switch", "atm_switch"): + # console_type is not supported by all builtin nodes excepting Ethernet switch data["console_type"] = self._console_type if self.custom_adapters: data["custom_adapters"] = self.custom_adapters @@ -482,6 +483,7 @@ class Node: for key in list(data.keys()): if data[key] is None or data[key] is {} or key in self.CONTROLLER_ONLY_PROPERTIES: del data[key] + return data async def destroy(self):