Class: Nl::Linux::Tc::AttributeSets::ActMplsAttrs

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

Defined Under Namespace

Classes: Attribute, Bos, Label, Pad, Parms, Proto, Tc, Tm, Ttl

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#bos ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#label ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#parms ⇒ Structs::TcMpls

Returns:

See Also:



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

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

#proto ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#tc ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#tm ⇒ Structs::TcfT

Returns:

See Also:



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

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

#ttl ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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