Class: Nl::Linux::OvsVport::Messages::DoNewRequest

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

Overview

Create a new OVS vport

Constant Summary collapse

TYPE =
1
FIXED_HEADER =
Structs::OvsHeader
ATTRIBUTE_SET =
AttributeSets::Vport
ATTRIBUTES =
Ractor.make_shareable(%i[type name options upcall_pid ifindex])

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

#dp_ifindex ⇒ Integer

Returns:

  • (Integer)


352
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 352

def dp_ifindex; fixed_header.dp_ifindex; end

#ifindex ⇒ Integer

Returns:

  • (Integer)

See Also:



373
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 373

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

#name ⇒ String

Returns:

  • (String)

See Also:



361
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 361

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

#options ⇒ AttributeSets::VportOptions



365
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 365

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

#type ⇒ Integer

Known enum values are defined in Enums::VportType.

Returns:

  • (Integer)

See Also:



357
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 357

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

#upcall_pid ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



369
# File 'nl-linux/generated/nl/linux/ovs_vport.rb', line 369

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