Class: Nl::Linux::NetShaper::AttributeSets::Caps
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::NetShaper::AttributeSets::Caps
- 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
Class Method Summary collapse
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
-
#ifindex ⇒ Integer
Interface index queried for shapers capabilities.
-
#scope ⇒ Integer
The scope to which the queried capabilities apply.
-
#support_burst ⇒ Integer
The device supports a maximum burst size.
-
#support_bw_max ⇒ Integer
The device supports maximum B/W shaping.
-
#support_bw_min ⇒ Integer
The device supports a minimum guaranteed B/W.
-
#support_metric_bps ⇒ Integer
The device accepts 'bps' metric for bw-min, bw-max and burst.
-
#support_metric_pps ⇒ Integer
The device accepts 'pps' metric for bw-min, bw-max and burst.
-
#support_nesting ⇒ Integer
The device supports nesting shaper belonging to this scope below 'node' scoped shapers.
-
#support_priority ⇒ Integer
The device supports priority scheduling.
-
#support_weight ⇒ Integer
The device supports weighted round robin scheduling.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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'.
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.
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.
549 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 549 def support_weight; self[:"support_weight"]&.value; end |