Class: Nl::Linux::Ethtool::Messages::DumpPhyGetReply

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

Overview

Get PHY devices attached to an interface

Constant Summary collapse

TYPE =
45
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:



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

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

#drvname ⇒ String

Returns:

  • (String)

See Also:



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

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

#header ⇒ AttributeSets::Header



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

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

#index ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#name ⇒ String

Returns:

  • (String)

See Also:



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

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

#upstream_index ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#upstream_sfp_name ⇒ String

Returns:

  • (String)

See Also:



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

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:



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

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