Class: Nl::Linux::OvsFlow::AttributeSets::ActionAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::OvsFlow::AttributeSets::ActionAttrs
- Defined in:
- nl-linux/generated/nl/linux/ovs_flow.rb
Defined Under Namespace
Classes: AddMpls, Attribute, CheckPktLen, Clone, Ct, CtClear, DecTtl, Hash, Meter, Output, PopEth, PopMpls, PopNsh, PopVlan, Psample, PushEth, PushMpls, PushNsh, PushVlan, Recirc, Sample, Set, SetMasked, Trunc, Userspace
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
-
#add_mpls ⇒ Structs::OvsActionAddMpls
Push a new MPLS label stack entry at the start of the packet or at the start of the l3 header depending on the value of l3 tunnel flag in the tun_flags field of this OVS_ACTION_ATTR_ADD_MPLS argument.
-
#check_pkt_len ⇒ AttributeSets::CheckPktLenAttrs
Check the packet length and execute a set of actions if greater than the specified packet length, else execute another set of actions.
-
#clone ⇒ AttributeSets::ActionAttrs
Make a copy of the packet and execute a list of actions without affecting the original packet and key.
-
#ct ⇒ AttributeSets::CtAttrs
Track the connection.
- #ct_clear ⇒ Integer
- #dec_ttl ⇒ AttributeSets::DecTtlAttrs
- #hash ⇒ Structs::OvsActionHash
-
#meter ⇒ Integer
Run packet through a meter, which may drop the packet, or modify the packet (e.g., change the DSCP field).
-
#output ⇒ Integer
ovs port number in datapath.
- #pop_eth ⇒ Integer
-
#pop_mpls ⇒ Integer
ethertype.
-
#pop_nsh ⇒ Integer
Pop the outermost NSH header off the packet.
-
#pop_vlan ⇒ Integer
Pop the outermost 802.1Q or 802.1ad header from the packet.
-
#psample ⇒ AttributeSets::PsampleAttrs
Sends a packet sample to psample for external observation.
-
#push_eth ⇒ String
struct ovs_action_push_eth.
-
#push_mpls ⇒ Structs::OvsActionPushMpls
Push a new MPLS label stack entry onto the top of the packets MPLS label stack.
-
#push_nsh ⇒ AttributeSets::OvsNshKeyAttrs
Push NSH header to the packet.
-
#push_vlan ⇒ Structs::OvsActionPushVlan
Push a new outermost 802.1Q or 802.1ad header onto the packet.
-
#recirc ⇒ Integer
recirc id.
-
#sample ⇒ AttributeSets::SampleAttrs
Probabilistically executes actions, as specified in the nested attributes.
-
#set ⇒ AttributeSets::KeyAttrs
Replaces the contents of an existing header.
-
#set_masked ⇒ AttributeSets::KeyAttrs
Replaces the contents of an existing header.
-
#trunc ⇒ Integer
struct ovs_action_trunc is a u32 max length.
- #userspace ⇒ AttributeSets::UserspaceAttrs
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.
1643 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1643 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
1649 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1649 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#add_mpls ⇒ Structs::OvsActionAddMpls
Push a new MPLS label stack entry at the start of the packet or at the start of the l3 header depending on the value of l3 tunnel flag in the tun_flags field of this OVS_ACTION_ATTR_ADD_MPLS argument.
1627 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1627 def add_mpls; self[:"add_mpls"]&.value; end |
#check_pkt_len ⇒ AttributeSets::CheckPktLenAttrs
Check the packet length and execute a set of actions if greater than the specified packet length, else execute another set of actions.
1620 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1620 def check_pkt_len; self[:"check_pkt_len"]&.value; end |
#clone ⇒ AttributeSets::ActionAttrs
Make a copy of the packet and execute a list of actions without affecting the original packet and key.
1614 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1614 def clone; self[:"clone"]&.value; end |
#ct ⇒ AttributeSets::CtAttrs
Track the connection. Populate the conntrack-related entries in the flow key.
1574 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1574 def ct; self[:"ct"]&.value; end |
#ct_clear ⇒ Integer
1592 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1592 def ct_clear; self[:"ct_clear"]&.value; end |
#dec_ttl ⇒ AttributeSets::DecTtlAttrs
1631 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1631 def dec_ttl; self[:"dec_ttl"]&.value; end |
#hash ⇒ Structs::OvsActionHash
1546 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1546 def hash; self[:"hash"]&.value; end |
#meter ⇒ Integer
Run packet through a meter, which may drop the packet, or modify the packet (e.g., change the DSCP field)
1608 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1608 def meter; self[:"meter"]&.value; end |
#output ⇒ Integer
ovs port number in datapath
1511 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1511 def output; self[:"output"]&.value; end |
#pop_eth ⇒ Integer
1588 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1588 def pop_eth; self[:"pop_eth"]&.value; end |
#pop_mpls ⇒ Integer
ethertype
1558 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1558 def pop_mpls; self[:"pop_mpls"]&.value; end |
#pop_nsh ⇒ Integer
Pop the outermost NSH header off the packet.
1602 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1602 def pop_nsh; self[:"pop_nsh"]&.value; end |
#pop_vlan ⇒ Integer
Pop the outermost 802.1Q or 802.1ad header from the packet.
1531 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1531 def pop_vlan; self[:"pop_vlan"]&.value; end |
#psample ⇒ AttributeSets::PsampleAttrs
Sends a packet sample to psample for external observation.
1636 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1636 def psample; self[:"psample"]&.value; end |
#push_eth ⇒ String
struct ovs_action_push_eth
1584 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1584 def push_eth; self[:"push_eth"]&.value; end |
#push_mpls ⇒ Structs::OvsActionPushMpls
Push a new MPLS label stack entry onto the top of the packets MPLS label stack. Set the ethertype of the encapsulating frame to either ETH_P_MPLS_UC or ETH_P_MPLS_MC to indicate the new packet contents.
1553 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1553 def push_mpls; self[:"push_mpls"]&.value; end |
#push_nsh ⇒ AttributeSets::OvsNshKeyAttrs
Push NSH header to the packet.
1597 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1597 def push_nsh; self[:"push_nsh"]&.value; end |
#push_vlan ⇒ Structs::OvsActionPushVlan
Push a new outermost 802.1Q or 802.1ad header onto the packet.
1526 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1526 def push_vlan; self[:"push_vlan"]&.value; end |
#recirc ⇒ Integer
recirc id
1542 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1542 def recirc; self[:"recirc"]&.value; end |
#sample ⇒ AttributeSets::SampleAttrs
Probabilistically executes actions, as specified in the nested attributes.
1537 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1537 def sample; self[:"sample"]&.value; end |
#set ⇒ AttributeSets::KeyAttrs
Replaces the contents of an existing header. The single nested attribute specifies a header to modify and its value.
1521 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1521 def set; self[:"set"]&.value; end |
#set_masked ⇒ AttributeSets::KeyAttrs
Replaces the contents of an existing header. A nested attribute specifies a header to modify, its value, and a mask. For every bit set in the mask, the corresponding bit value is copied from the value to the packet header field, rest of the bits are left unchanged. The non-masked value bits must be passed in as zeroes. Masking is not supported for the OVS_KEY_ATTR_TUNNEL attribute.
1568 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1568 def set_masked; self[:"set_masked"]&.value; end |
#trunc ⇒ Integer
struct ovs_action_trunc is a u32 max length
1579 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1579 def trunc; self[:"trunc"]&.value; end |
#userspace ⇒ AttributeSets::UserspaceAttrs
1515 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 1515 def userspace; self[:"userspace"]&.value; end |