# Path: autonetkit/network_model/exceptions.py
# class PortNotFound(Exception):
#     pass
# 
# Path: autonetkit/network_model/types.py
# class DeviceType(Enum):
# class PortType(Enum):
#     ROUTER = "Router"
#     SWITCH = "Switch"
#     HOST = "Host"
#     VIRTUAL = "Virtual"
#     BROADCAST_DOMAIN = "Broadcast Domain"
# LAYER3_DEVICES = {DeviceType.ROUTER, DeviceType.HOST}
#     PHYSICAL = "Physical"
#     LOGICAL = "Logical"


import typing
from autonetkit.network_model.exceptions import PortNotFound
from autonetkit.network_model.types import NodeId, DeviceType, PortType
    from autonetkit.network_model.topology import Topology
    from autonetkit.network_model.port import Port
    from autonetkit.network_model.link import Link

        @return:
        """
        return self.get("type")

    @property
    def global_data(self) -> typing.Dict:
        """

        @return:
        """
        return self.topology.network_model.node_globals[self.id]

    def __repr__(self):
        return f"N {self.get('label')}"

    def ports(self) -> typing.List['Port']:
        """

        @return:
        """
        return self.topology.ports(node=self)

    def links(self) -> typing.List['Link']:
        """

        @return:
        """
        return self.topology.links(node=self)


# Path: autonetkit/network_model/exceptions.py
# class PortNotFound(Exception):
#     pass
# 
# Path: autonetkit/network_model/types.py
# class DeviceType(Enum):
# class PortType(Enum):
#     ROUTER = "Router"
#     SWITCH = "Switch"
#     HOST = "Host"
#     VIRTUAL = "Virtual"
#     BROADCAST_DOMAIN = "Broadcast Domain"
# LAYER3_DEVICES = {DeviceType.ROUTER, DeviceType.HOST}
#     PHYSICAL = "Physical"
#     LOGICAL = "Logical"


# Path: autonetkit/network_model/node.py
import typing
from autonetkit.network_model.exceptions import PortNotFound
from autonetkit.network_model.types import NodeId, DeviceType, PortType
    from autonetkit.network_model.topology import Topology
    from autonetkit.network_model.port import Port
    from autonetkit.network_model.link import Link


        @return:
        """
        return self.get("type")

    @property
    def global_data(self) -> typing.Dict:
        """

        @return:
        """
        return self.topology.network_model.node_globals[self.id]

    def __repr__(self):
        return f"N {self.get('label')}"

    def ports(self) -> typing.List['Port']:
        """

        @return:
        """
        return self.topology.ports(node=self)

    def links(self) -> typing.List['Link']:
        """

        @return:
        """
        return self.topology.links(node=self)


    def create_port(self, type: PortType) -> 'Port':