Class: Nl::Linux::Tc::AttributeSets::ActVlanAttrs

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/tc.rb

Defined Under Namespace

Classes: Attribute, Pad, Parms, PushEthDst, PushEthSrc, PushVlanId, PushVlanPriority, PushVlanProtocol, Tm

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:



4659
# File 'nl-linux/generated/nl/linux/tc.rb', line 4659

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



4665
# File 'nl-linux/generated/nl/linux/tc.rb', line 4665

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#parms ⇒ Structs::TcVlan

Returns:

See Also:



4632
# File 'nl-linux/generated/nl/linux/tc.rb', line 4632

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

#push_eth_dst ⇒ String

Returns:

  • (String)

See Also:



4648
# File 'nl-linux/generated/nl/linux/tc.rb', line 4648

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

#push_eth_src ⇒ String

Returns:

  • (String)

See Also:



4652
# File 'nl-linux/generated/nl/linux/tc.rb', line 4652

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

#push_vlan_id ⇒ Integer

Returns:

  • (Integer)

See Also:



4636
# File 'nl-linux/generated/nl/linux/tc.rb', line 4636

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

#push_vlan_priority ⇒ Integer

Returns:

  • (Integer)

See Also:



4644
# File 'nl-linux/generated/nl/linux/tc.rb', line 4644

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

#push_vlan_protocol ⇒ Integer

Returns:

  • (Integer)

See Also:



4640
# File 'nl-linux/generated/nl/linux/tc.rb', line 4640

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

#tm ⇒ Structs::TcfT

Returns:

See Also:



4628
# File 'nl-linux/generated/nl/linux/tc.rb', line 4628

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