Class: Nl::Linux::Devlink::AttributeSets::DlPortFunction

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/devlink.rb

Defined Under Namespace

Classes: Attribute, Caps, HwAddr, Opstate, State

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



2679
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2679

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



2685
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2685

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#caps ⇒ Nl::Bitfield32

Known flags are defined in Flags::PortFnAttrCap.

Returns:

See Also:



2672
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2672

def caps; self[:"caps"]&.value; end

#hw_addr ⇒ String

Returns:

  • (String)

See Also:



2657
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2657

def hw_addr; self[:"hw_addr"]&.value; end

#opstate ⇒ Integer

Known enum values are defined in Enums::PortFnOpstate.

Returns:

  • (Integer)

See Also:



2667
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2667

def opstate; self[:"opstate"]&.value; end

#state ⇒ Integer

Known enum values are defined in Enums::PortFnState.

Returns:

  • (Integer)

See Also:



2662
# File 'nl-linux/generated/nl/linux/devlink.rb', line 2662

def state; self[:"state"]&.value; end