Class: Nl::Linux::Devlink::Messages::DoPortSetRequest
- Inherits:
-
Genl::Message
- Object
- Raw::Message
- Genl::Message
- Nl::Linux::Devlink::Messages::DoPortSetRequest
- Defined in:
- nl-linux/generated/nl/linux/devlink.rb
Overview
Set devlink port instances.
Requires CAP_NET_ADMIN in the initial user namespace.
Constant Summary collapse
- TYPE =
6- FIXED_HEADER =
nil- ATTRIBUTE_SET =
AttributeSets::Devlink
- ATTRIBUTES =
Ractor.make_shareable(%i[bus_name dev_name port_index port_type port_function index])
Instance Attribute Summary
Attributes included from StructuredPayload
Instance Method Summary collapse
- #bus_name ⇒ String
- #dev_name ⇒ String
-
#index ⇒ Integer
Unique devlink instance index.
- #port_function ⇒ AttributeSets::DlPortFunction
- #port_index ⇒ Integer
-
#port_type ⇒ Integer
Known enum values are defined in Enums::PortType.
Methods inherited from Genl::Message
Methods inherited from Raw::Message
#append_attribute, decode, #initialize
Methods included from StructuredPayload
Constructor Details
This class inherits a constructor from Nl::Raw::Message
Instance Method Details
#bus_name ⇒ String
4758 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 4758 def bus_name; attributes[:"bus_name"]&.value; end |
#dev_name ⇒ String
4762 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 4762 def dev_name; attributes[:"dev_name"]&.value; end |
#index ⇒ Integer
Unique devlink instance index.
4780 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 4780 def index; attributes[:"index"]&.value; end |
#port_function ⇒ AttributeSets::DlPortFunction
4775 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 4775 def port_function; attributes[:"port_function"]&.value; end |
#port_index ⇒ Integer
4766 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 4766 def port_index; attributes[:"port_index"]&.value; end |
#port_type ⇒ Integer
Known enum values are defined in Enums::PortType.
4771 |
# File 'nl-linux/generated/nl/linux/devlink.rb', line 4771 def port_type; attributes[:"port_type"]&.value; end |