Class: Nl::Linux::NetShaper::AttributeSets::NetShaper
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::NetShaper::AttributeSets::NetShaper
- Defined in:
- nl-linux/generated/nl/linux/net_shaper.rb
Defined Under Namespace
Classes: Attribute, Burst, BwMax, BwMin, Handle, Ifindex, Leaves, Metric, Parent, Priority, Weight
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
-
#burst ⇒ Integer
Maximum burst-size for shaping.
-
#bw_max ⇒ Integer
Maximum bandwidth for the given shaper or 0 when unlimited.
-
#bw_min ⇒ Integer
Guaranteed bandwidth for the given shaper.
-
#handle ⇒ AttributeSets::Handle
Unique identifier for the given shaper inside the owning device.
-
#ifindex ⇒ Integer
Interface index owning the specified shaper.
-
#leaves ⇒ Array<AttributeSets::LeafInfo>
Describes a set of leaves shapers for a
groupoperation. -
#metric ⇒ Integer
Metric used by the given shaper for bw-min, bw-max and burst.
-
#parent ⇒ AttributeSets::Handle
Identifier for the parent of the affected shaper.
-
#priority ⇒ Integer
Scheduling priority for the given shaper.
-
#weight ⇒ Integer
Relative weight for round robin scheduling of the given shaper.
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.
255 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 255 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
261 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 261 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#burst ⇒ Integer
Maximum burst-size for shaping. Should not be interpreted as a quantum.
218 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 218 def burst; self[:"burst"]&.value; end |
#bw_max ⇒ Integer
Maximum bandwidth for the given shaper or 0 when unlimited.
212 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 212 def bw_max; self[:"bw_max"]&.value; end |
#bw_min ⇒ Integer
Guaranteed bandwidth for the given shaper.
207 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 207 def bw_min; self[:"bw_min"]&.value; end |
#handle ⇒ AttributeSets::Handle
Unique identifier for the given shaper inside the owning device.
195 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 195 def handle; self[:"handle"]&.value; end |
#ifindex ⇒ Integer
Interface index owning the specified shaper.
237 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 237 def ifindex; self[:"ifindex"]&.value; end |
#leaves ⇒ Array<AttributeSets::LeafInfo>
Describes a set of leaves shapers for a group operation.
248 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 248 def leaves; self[:"leaves"].map(&:value); end |
#metric ⇒ Integer
Metric used by the given shaper for bw-min, bw-max and burst.
Known enum values are defined in Enums::Metric.
202 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 202 def metric; self[:"metric"]&.value; end |
#parent ⇒ AttributeSets::Handle
Identifier for the parent of the affected shaper.
Only needed for group operation.
243 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 243 def parent; self[:"parent"]&.value; end |
#priority ⇒ Integer
Scheduling priority for the given shaper. The priority scheduling is applied to sibling shapers.
224 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 224 def priority; self[:"priority"]&.value; end |
#weight ⇒ Integer
Relative weight for round robin scheduling of the given shaper. The scheduling is applied to all sibling shapers with the same priority.
232 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 232 def weight; self[:"weight"]&.value; end |