From e8c641bd08e4f13d8ad6aa7039c4685e3c2ecbcd Mon Sep 17 00:00:00 2001 From: grossmj Date: Tue, 13 Oct 2026 20:18:29 +0700 Subject: [PATCH] docs: update comments regarding Ethernet switch replacement with Linux bridge --- gns3server/compute/builtin/builtin_node_factory.py | 2 +- gns3server/compute/dynamips/dynamips_factory.py | 2 +- gns3server/compute/dynamips/nodes/ethernet_switch.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gns3server/compute/builtin/builtin_node_factory.py b/gns3server/compute/builtin/builtin_node_factory.py index 082b78c54..7db8854cd 100644 --- a/gns3server/compute/builtin/builtin_node_factory.py +++ b/gns3server/compute/builtin/builtin_node_factory.py @@ -30,7 +30,7 @@ BUILTIN_NODES = {"cloud": Cloud, "nat": Nat, "ethernet_hub": EthernetHub, "ether class BuiltinNodeFactory: """ - Factory to create an builtin object based on the node type. + Factory to create a builtin object based on the node type. """ def __new__(cls, name, node_id, project, manager, node_type, **kwargs): diff --git a/gns3server/compute/dynamips/dynamips_factory.py b/gns3server/compute/dynamips/dynamips_factory.py index 4febe9b7d..be2f1b431 100644 --- a/gns3server/compute/dynamips/dynamips_factory.py +++ b/gns3server/compute/dynamips/dynamips_factory.py @@ -46,7 +46,7 @@ PLATFORMS = { DEVICES = { "atm_switch": ATMSwitch, "frame_relay_switch": FrameRelaySwitch, - "ethernet_switch": EthernetSwitch, + "ethernet_switch": EthernetSwitch, # The Dynamips Ethernet switch has been replaced by a Linux bridge "ethernet_hub": EthernetHub, } diff --git a/gns3server/compute/dynamips/nodes/ethernet_switch.py b/gns3server/compute/dynamips/nodes/ethernet_switch.py index 28ecacc46..eba94950c 100644 --- a/gns3server/compute/dynamips/nodes/ethernet_switch.py +++ b/gns3server/compute/dynamips/nodes/ethernet_switch.py @@ -19,6 +19,8 @@ Interface for Dynamips virtual Ethernet switch module ("ethsw"). http://github.com/GNS3/dynamips/blob/master/README.hypervisor#L558 """ +# Note: the Dynamips Ethernet switch has been replaced by a Linux bridge + import logging from gns3server.utils import parse_version