Class: Nl::Linux::OvsFlow::Messages::DoNewRequest
- Inherits:
-
Genl::Message
- Object
- Raw::Message
- Genl::Message
- Nl::Linux::OvsFlow::Messages::DoNewRequest
- Defined in:
- nl-linux/generated/nl/linux/ovs_flow.rb
Overview
Create OVS flow configuration in a data path
Constant Summary collapse
- TYPE =
1- FIXED_HEADER =
Structs::OvsHeader
- ATTRIBUTE_SET =
AttributeSets::FlowAttrs
- ATTRIBUTES =
Ractor.make_shareable(%i[key actions mask ufid])
Instance Attribute Summary
Attributes included from StructuredPayload
Instance Method Summary collapse
-
#actions ⇒ AttributeSets::ActionAttrs
Nested attributes specifying the actions to take for packets that match the key.
-
#dp_ifindex ⇒ Integer
ifindex of local port for datapath (0 to make a request not specific to a datapath).
-
#key ⇒ AttributeSets::KeyAttrs
Nested attributes specifying the flow key.
-
#mask ⇒ AttributeSets::KeyAttrs
Nested attributes specifying the mask bits for wildcarded flow match.
-
#ufid ⇒ String
A value between 1-16 octets specifying a unique identifier for the flow.
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
#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.
2738 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 2738 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).
2722 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 2722 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).
2728 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 2728 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.
2748 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 2748 def mask; attributes[:"mask"]&.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.
2757 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 2757 def ufid; attributes[:"ufid"]&.value; end |