Class: Nl::Linux::OvsFlow::Messages::DoGetReply

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

Overview

Get / dump OVS flow configuration and state

Constant Summary collapse

TYPE =
3
FIXED_HEADER =
Structs::OvsHeader
ATTRIBUTE_SET =
AttributeSets::FlowAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[key actions stats mask ufid])

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

#actions ⇒ AttributeSets::ActionAttrs

Nested attributes specifying the actions to take for packets that match the key. Always present in notifications. Required for OVS_FLOW_CMD_NEW requests, optional for OVS_FLOW_CMD_SET requests. An OVS_FLOW_CMD_SET without OVS_FLOW_ATTR_ACTIONS will not modify the actions. To clear the actions, an OVS_FLOW_ATTR_ACTIONS without any nested attributes must be given.



2596
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 2596

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

#dp_ifindex ⇒ Integer

ifindex of local port for datapath (0 to make a request not specific to a datapath).

Returns:

  • (Integer)


2580
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 2580

def dp_ifindex; fixed_header.dp_ifindex; end

#key ⇒ AttributeSets::KeyAttrs

Nested attributes specifying the flow key. Always present in notifications. Required for all requests (except dumps).



2586
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 2586

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

#mask ⇒ AttributeSets::KeyAttrs

Nested attributes specifying the mask bits for wildcarded flow match. Mask bit value '1' specifies exact match with corresponding flow key bit, while mask bit value '0' specifies a wildcarded match. Omitting attribute is treated as wildcarding all corresponding fields. Optional for all requests. If not present, all flow key bits are exact match bits.



2612
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 2612

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

#stats ⇒ Structs::OvsFlowStats

Statistics for this flow. Present in notifications if the stats would be nonzero. Ignored in requests.



2602
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 2602

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

#ufid ⇒ String

A value between 1-16 octets specifying a unique identifier for the flow. Causes the flow to be indexed by this value rather than the value of the OVS_FLOW_ATTR_KEY attribute. Optional for all requests. Present in notifications if the flow was created with this attribute.

Returns:

  • (String)

See Also:



2621
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 2621

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