Class: Nl::Linux::NetShaper::Messages::DoGetReply
- Inherits:
-
Genl::Message
- Object
- Raw::Message
- Genl::Message
- Nl::Linux::NetShaper::Messages::DoGetReply
- Defined in:
- nl-linux/generated/nl/linux/net_shaper.rb
Overview
Get information about a shaper for a given device.
Constant Summary collapse
- TYPE =
1- FIXED_HEADER =
nil- ATTRIBUTE_SET =
AttributeSets::NetShaper
- ATTRIBUTES =
Ractor.make_shareable(%i[handle metric bw_min bw_max burst priority weight ifindex parent])
Instance Attribute Summary
Attributes included from StructuredPayload
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.
-
#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 Genl::Message
Methods inherited from Raw::Message
#append_attribute, decode, #initialize
Methods included from StructuredPayload
Constructor Details
This class inherits a constructor from Nl::Raw::Message
Instance Method Details
#burst ⇒ Integer
Maximum burst-size for shaping. Should not be interpreted as a quantum.
625 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 625 def burst; attributes[:"burst"]&.value; end |
#bw_max ⇒ Integer
Maximum bandwidth for the given shaper or 0 when unlimited.
619 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 619 def bw_max; attributes[:"bw_max"]&.value; end |
#bw_min ⇒ Integer
Guaranteed bandwidth for the given shaper.
614 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 614 def bw_min; attributes[:"bw_min"]&.value; end |
#handle ⇒ AttributeSets::Handle
Unique identifier for the given shaper inside the owning device.
602 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 602 def handle; attributes[:"handle"]&.value; end |
#ifindex ⇒ Integer
Interface index owning the specified shaper.
644 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 644 def ifindex; attributes[:"ifindex"]&.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.
609 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 609 def metric; attributes[:"metric"]&.value; end |
#parent ⇒ AttributeSets::Handle
Identifier for the parent of the affected shaper.
Only needed for group operation.
650 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 650 def parent; attributes[:"parent"]&.value; end |
#priority ⇒ Integer
Scheduling priority for the given shaper. The priority scheduling is applied to sibling shapers.
631 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 631 def priority; attributes[:"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.
639 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 639 def weight; attributes[:"weight"]&.value; end |