class

Cl8r::Model::Interface

Inherits YAML::Serializable < Reference < Object

Models physical network interface cards (NICs), 802.3ad LACP bonds, and switch port bindings.

Constructors

new(name : String = "", mac : String | Nil = nil, pci_slot : String | Nil = nil, switch : String | Nil = nil, port : String | Nil = nil, cable_type : String | Nil = nil, bond_master : String | Nil = nil, bond_mode : String | Nil = "802.3ad", bond_xmit_hash_policy : String | Nil = "layer3+4", bond_lacp_rate : String | Nil = "fast", bond_miimon : Int32 | Nil = 100, bond_slaves : Array(String) | Nil = nil, mtu : Int32 | Nil = nil, bridge : String | Nil = nil, vlans : Array(VlanBinding) = [] of VlanBinding)

Initializes an Interface with networking, bonding, bridge, and VLAN parameters.

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

Instance methods

bond?

Returns true if this interface is configured as a link aggregation bond.

Source
bond_lacp_rate
Source
bond_lacp_rate=(bond_lacp_rate : String | Nil)
Source
bond_master
Source
bond_master=(bond_master : String | Nil)
Source
bond_miimon
Source
bond_miimon=(bond_miimon : Int32 | Nil)
Source
bond_mode
Source
bond_mode=(bond_mode : String | Nil)
Source
bond_slaves
Source
bond_slaves=(bond_slaves : Array(String) | Nil)
Source
bond_xmit_hash_policy
Source
bond_xmit_hash_policy=(bond_xmit_hash_policy : String | Nil)
Source
bridge
Source
bridge=(bridge : String | Nil)
Source
cable_type
Source
cable_type=(cable_type : String | Nil)
Source
mac=(mac : String | Nil)
Source
mtu=(mtu : Int32 | Nil)
Source
name
Source
name=(name : String)
Source
pci_slot
Source
pci_slot=(pci_slot : String | Nil)
Source
port
Source
port=(port : String | Nil)
Source
switch
Source
switch=(switch : String | Nil)
Source
vlans
Source
vlans=(vlans : Array(VlanBinding))
Source