2024-02-21 14:49:59 +00:00
|
|
|
.. only:: comment
|
|
|
|
|
|
2025-01-02 15:05:06 +00:00
|
|
|
© Crown-owned copyright 2025, Defence Science and Technology Laboratory UK
|
2024-02-21 14:49:59 +00:00
|
|
|
|
|
|
|
|
.. _switch_configuration:
|
|
|
|
|
|
|
|
|
|
``switch``
|
|
|
|
|
==========
|
|
|
|
|
|
|
|
|
|
A basic representation of a network switch within the simulation.
|
|
|
|
|
|
|
|
|
|
See :py:mod:`primaite.simulator.network.hardware.nodes.network.switch.Switch`
|
|
|
|
|
|
|
|
|
|
example switch
|
|
|
|
|
--------------
|
|
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
2024-02-26 09:47:12 +00:00
|
|
|
simulation:
|
|
|
|
|
network:
|
|
|
|
|
nodes:
|
|
|
|
|
- ref: switch_1
|
|
|
|
|
hostname: switch_1
|
|
|
|
|
type: switch
|
|
|
|
|
num_ports: 8
|
2024-02-21 14:49:59 +00:00
|
|
|
|
|
|
|
|
.. include:: common/common_node_attributes.rst
|
|
|
|
|
|
|
|
|
|
.. include:: common/node_type_list.rst
|
|
|
|
|
|
|
|
|
|
``num_ports``
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
Optional. Default value is ``8``.
|
|
|
|
|
|
|
|
|
|
The number of ports the switch will have.
|
|
|
|
|
|
|
|
|
|
.. |NODE| replace:: switch
|
|
|
|
|
.. |NODE_TYPE| replace:: ``switch``
|