class

Cl8r::Model::SwitchPort

Inherits YAML::Serializable < Reference < Object

Models physical and logical switch port configurations, speeds, and VLAN tagging.

Constructors

new(speed : String = "25G", mode : String = "trunk", native_vlan : Int32 | Nil = nil, allowed_vlans : Array(Int32) = [] of Int32)

Initializes a SwitchPort with speed, mode (trunk/access), and VLAN permissions.

Source
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
Source

Instance methods

allowed_vlans
Source
allowed_vlans=(allowed_vlans : Array(Int32))
Source
mode
Source
mode=(mode : String)
Source
native_vlan
Source
native_vlan=(native_vlan : Int32 | Nil)
Source
speed
Source
speed=(speed : String)
Source