Class: Nl::Linux::Ethtool::Messages::DoPhyGetReply

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:



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

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

#drvname ⇒ String

Returns:

  • (String)

See Also:



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

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

#header ⇒ AttributeSets::Header



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

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

#index ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#name ⇒ String

Returns:

  • (String)

See Also:



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

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

#upstream_index ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#upstream_sfp_name ⇒ String

Returns:

  • (String)

See Also:



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

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:



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

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