Class: Nl::Linux::OvsFlow::AttributeSets::FlowAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::OvsFlow::AttributeSets::FlowAttrs
- Defined in:
- nl-linux/generated/nl/linux/ovs_flow.rb
Defined Under Namespace
Classes: Actions, Attribute, Clear, Key, Mask, Pad, Probe, Stats, TcpFlags, Ufid, UfidFlags, Used
Constant Summary
Constants inherited from AttributeSet
Class Method Summary collapse
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
-
#actions ⇒ AttributeSets::ActionAttrs
Nested attributes specifying the actions to take for packets that match the key.
-
#clear ⇒ Integer
If present in a OVS_FLOW_CMD_SET request, clears the last-used time, accumulated TCP flags, and statistics for this flow.
-
#key ⇒ AttributeSets::KeyAttrs
Nested attributes specifying the flow key.
-
#mask ⇒ AttributeSets::KeyAttrs
Nested attributes specifying the mask bits for wildcarded flow match.
- #pad ⇒ String
-
#probe ⇒ String
Flow operation is a feature probe, error logging should be suppressed.
-
#stats ⇒ Structs::OvsFlowStats
Statistics for this flow.
-
#tcp_flags ⇒ Integer
An 8-bit value giving the ORed value of all of the TCP flags seen on packets in this flow.
-
#ufid ⇒ String
A value between 1-16 octets specifying a unique identifier for the flow.
-
#ufid_flags ⇒ Integer
A 32-bit value of ORed flags that provide alternative semantics for flow installation and retrieval.
-
#used ⇒ Integer
A 64-bit integer giving the time, in milliseconds on the system monotonic clock, at which a packet was last processed for this flow.
Methods inherited from AttributeSet
#<<, #[], build_attributes, decode, #encode, #initialize
Constructor Details
This class inherits a constructor from Nl::AttributeSet
Class Method Details
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
855 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 855 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
861 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 861 def by_type(type); BY_TYPE.fetch(type); end |
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.
783 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 783 def actions; self[:"actions"]&.value; end |
#clear ⇒ Integer
If present in a OVS_FLOW_CMD_SET request, clears the last-used time, accumulated TCP flags, and statistics for this flow. Otherwise ignored in requests. Never present in notifications.
811 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 811 def clear; self[:"clear"]&.value; end |
#key ⇒ AttributeSets::KeyAttrs
Nested attributes specifying the flow key. Always present in notifications. Required for all requests (except dumps).
773 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 773 def key; self[:"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.
821 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 821 def mask; self[:"mask"]&.value; end |
#pad ⇒ String
848 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 848 def pad; self[:"pad"]&.value; end |
#probe ⇒ String
Flow operation is a feature probe, error logging should be suppressed.
826 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 826 def probe; self[:"probe"]&.value; end |
#stats ⇒ Structs::OvsFlowStats
Statistics for this flow. Present in notifications if the stats would be nonzero. Ignored in requests.
789 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 789 def stats; self[:"stats"]&.value; end |
#tcp_flags ⇒ Integer
An 8-bit value giving the ORed value of all of the TCP flags seen on packets in this flow. Only present in notifications for TCP flows, and only if it would be nonzero. Ignored in requests.
796 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 796 def tcp_flags; self[:"tcp_flags"]&.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.
835 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 835 def ufid; self[:"ufid"]&.value; end |
#ufid_flags ⇒ Integer
A 32-bit value of ORed flags that provide alternative semantics for flow installation and retrieval. Optional for all requests.
Known flags are defined in Flags::OvsUfidFlags.
844 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 844 def ufid_flags; self[:"ufid_flags"]&.value; end |
#used ⇒ Integer
A 64-bit integer giving the time, in milliseconds on the system monotonic clock, at which a packet was last processed for this flow. Only present in notifications if a packet has been processed for this flow. Ignored in requests.
804 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 804 def used; self[:"used"]&.value; end |