Class: Nl::Linux::OvsFlow::AttributeSets::ActionAttrs

Inherits:
AttributeSet
  • Object
show all
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

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • name (Symbol)

Returns:



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.

Parameters:

  • type (Integer)

Returns:



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.

Returns:

See Also:



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.

Returns:

See Also:



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.

Returns:

See Also:



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

def ct; self[:"ct"]&.value; end

#ct_clear ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def ct_clear; self[:"ct_clear"]&.value; end

#dec_ttl ⇒ AttributeSets::DecTtlAttrs

Returns:

See Also:



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

def dec_ttl; self[:"dec_ttl"]&.value; end

#hash ⇒ Structs::OvsActionHash

Returns:

See Also:



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)

Returns:

  • (Integer)

See Also:



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

Returns:

  • (Integer)

See Also:



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

def output; self[:"output"]&.value; end

#pop_eth ⇒ Integer

Returns:

  • (Integer)

See Also:



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

def pop_eth; self[:"pop_eth"]&.value; end

#pop_mpls ⇒ Integer

ethertype

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

See Also:



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

Returns:

  • (String)

See Also:



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.

Returns:

See Also:



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.

Returns:

See Also:



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.

Returns:

See Also:



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

def push_vlan; self[:"push_vlan"]&.value; end

#recirc ⇒ Integer

recirc id

Returns:

  • (Integer)

See Also:



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.

Returns:

See Also:



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.

Returns:

See Also:



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.

Returns:

See Also:



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

Returns:

  • (Integer)

See Also:



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