Class: Nl::Linux::Devlink::Messages::DoPortNewRequest

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

Overview

Create devlink port instances.

Requires CAP_NET_ADMIN in the initial user namespace.

Constant Summary collapse

TYPE =
7
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Devlink
ATTRIBUTES =
Ractor.make_shareable(%i[bus_name dev_name port_index port_flavour port_pci_pf_number port_controller_number port_pci_sf_number 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:



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

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

#dev_name ⇒ String

Returns:

  • (String)

See Also:



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

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

#index ⇒ Integer

Unique devlink instance index.

Returns:

  • (Integer)

See Also:



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

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

#port_controller_number ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#port_flavour ⇒ Integer

Known enum values are defined in Enums::PortFlavour.

Returns:

  • (Integer)

See Also:



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

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

#port_index ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#port_pci_pf_number ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#port_pci_sf_number ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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