Class: Nl::Linux::NetShaper::AttributeSets::Caps

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

Defined Under Namespace

Classes: Attribute, Ifindex, Scope, SupportBurst, SupportBwMax, SupportBwMin, SupportMetricBps, SupportMetricPps, SupportNesting, SupportPriority, SupportWeight

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:



556
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 556

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



562
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 562

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

Instance Method Details

#ifindex ⇒ Integer

Interface index queried for shapers capabilities.

Returns:

  • (Integer)

See Also:



500
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 500

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

#scope ⇒ Integer

The scope to which the queried capabilities apply.

Known enum values are defined in Enums::Scope.

Returns:

  • (Integer)

See Also:



507
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 507

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

#support_burst ⇒ Integer

The device supports a maximum burst size.

Returns:

  • (Integer)

See Also:



539
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 539

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

#support_bw_max ⇒ Integer

The device supports maximum B/W shaping.

Returns:

  • (Integer)

See Also:



534
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 534

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

#support_bw_min ⇒ Integer

The device supports a minimum guaranteed B/W.

Returns:

  • (Integer)

See Also:



529
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 529

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

#support_metric_bps ⇒ Integer

The device accepts 'bps' metric for bw-min, bw-max and burst.

Returns:

  • (Integer)

See Also:



512
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 512

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

#support_metric_pps ⇒ Integer

The device accepts 'pps' metric for bw-min, bw-max and burst.

Returns:

  • (Integer)

See Also:



517
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 517

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

#support_nesting ⇒ Integer

The device supports nesting shaper belonging to this scope below 'node' scoped shapers. Only 'queue' and 'node' scope can have flag 'support-nesting'.

Returns:

  • (Integer)

See Also:



524
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 524

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

#support_priority ⇒ Integer

The device supports priority scheduling.

Returns:

  • (Integer)

See Also:



544
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 544

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

#support_weight ⇒ Integer

The device supports weighted round robin scheduling.

Returns:

  • (Integer)

See Also:



549
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 549

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