Class: Nl::Linux::Devlink::Messages::DoLinecardSetRequest

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

Overview

Set line card instances.

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
79
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Devlink
ATTRIBUTES =
Ractor.make_shareable(%i[bus_name dev_name linecard_index linecard_type index])

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

#bus_name ⇒ String

Returns:

  • (String)

See Also:



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

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

#dev_name ⇒ String

Returns:

  • (String)

See Also:



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

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

#index ⇒ Integer

Unique devlink instance index.

Returns:

  • (Integer)

See Also:



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

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

#linecard_index ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#linecard_type ⇒ String

Returns:

  • (String)

See Also:



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

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