mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
Do not send "console_type" property to computes for all builtin nodes excepting Ethernet switches. Fixes https://github.com/GNS3/gns3-gui/issues/2882
This commit is contained in:
parent
c8f7d789f7
commit
f3ad333a21
@ -473,7 +473,8 @@ class Node:
|
|||||||
if self._console:
|
if self._console:
|
||||||
# console is optional for builtin nodes
|
# console is optional for builtin nodes
|
||||||
data["console"] = self._console
|
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
|
data["console_type"] = self._console_type
|
||||||
if self.custom_adapters:
|
if self.custom_adapters:
|
||||||
data["custom_adapters"] = self.custom_adapters
|
data["custom_adapters"] = self.custom_adapters
|
||||||
@ -482,6 +483,7 @@ class Node:
|
|||||||
for key in list(data.keys()):
|
for key in list(data.keys()):
|
||||||
if data[key] is None or data[key] is {} or key in self.CONTROLLER_ONLY_PROPERTIES:
|
if data[key] is None or data[key] is {} or key in self.CONTROLLER_ONLY_PROPERTIES:
|
||||||
del data[key]
|
del data[key]
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
async def destroy(self):
|
async def destroy(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user