Class: Nl::Linux::Ethtool::Notifications::PhyNtf

Inherits:
Genl::Message show all
Defined in:
nl-linux/generated/nl/linux/ethtool.rb

Overview

Notification for change in PHY devices.

Constant Summary collapse

TYPE =
46
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Phy
ATTRIBUTES =
Ractor.make_shareable(%i[header index drvname name upstream_type upstream_index upstream_sfp_name downstream_sfp_name])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Genl::Message

decode

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#downstream_sfp_name ⇒ String

Returns:

  • (String)

See Also:



10153
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 10153

def downstream_sfp_name; attributes[:"downstream_sfp_name"]&.value; end

#drvname ⇒ String

Returns:

  • (String)

See Also:



10132
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 10132

def drvname; attributes[:"drvname"]&.value; end

#header ⇒ AttributeSets::Header



10124
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 10124

def header; attributes[:"header"]&.value; end

#index ⇒ Integer

Returns:

  • (Integer)

See Also:



10128
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 10128

def index; attributes[:"index"]&.value; end

#name ⇒ String

Returns:

  • (String)

See Also:



10136
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 10136

def name; attributes[:"name"]&.value; end

#upstream_index ⇒ Integer

Returns:

  • (Integer)

See Also:



10145
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 10145

def upstream_index; attributes[:"upstream_index"]&.value; end

#upstream_sfp_name ⇒ String

Returns:

  • (String)

See Also:



10149
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 10149

def upstream_sfp_name; attributes[:"upstream_sfp_name"]&.value; end

#upstream_type ⇒ Integer

Known enum values are defined in Enums::PhyUpstreamType.

Returns:

  • (Integer)

See Also:



10141
# File 'nl-linux/generated/nl/linux/ethtool.rb', line 10141

def upstream_type; attributes[:"upstream_type"]&.value; end