Class: Nl::Linux::OvsVport::Messages::DoGetReply

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

Overview

Get / dump OVS vport configuration and state

Constant Summary collapse

TYPE =
3
FIXED_HEADER =
Structs::OvsHeader
ATTRIBUTE_SET =
AttributeSets::Vport
ATTRIBUTES =
Ractor.make_shareable(%i[port_no type name upcall_pid stats ifindex netnsid upcall_stats])

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)


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

def dp_ifindex; fixed_header.dp_ifindex; end

#ifindex ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#name ⇒ String

Returns:

  • (String)

See Also:



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

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

#netnsid ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#port_no ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#stats ⇒ Structs::OvsVportStats



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

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

#type ⇒ Integer

Known enum values are defined in Enums::VportType.

Returns:

  • (Integer)

See Also:



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

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

#upcall_pid ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



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

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

#upcall_stats ⇒ AttributeSets::UpcallStats



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

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