Class: Nl::Linux::Tc::AttributeSets::GredAttrs

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

Defined Under Namespace

Classes: Attribute, Dps, Limit, MaxP, Parms, Stab, VqList

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#dps ⇒ Structs::TcGredSopt

Returns:

See Also:



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

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

#limit ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#max_p ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



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

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

#parms ⇒ String

Returns:

  • (String)

See Also:



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

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

#stab ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



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

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

#vq_list ⇒ AttributeSets::TcaGredVqListAttrs



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

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