Class: Nl::Linux::NetShaper::Messages::DoGroupReply
- Inherits:
-
Genl::Message
- Object
- Raw::Message
- Genl::Message
- Nl::Linux::NetShaper::Messages::DoGroupReply
- Defined in:
- nl-linux/generated/nl/linux/net_shaper.rb
Overview
Create or update a scheduling group, attaching the specified
leaves shapers under the specified node identified by handle.
The leaves shapers scope must be queue and the node shaper
scope must be either node or netdev.
When the node shaper has node scope, if the handle id is not
specified, a new shaper of such scope is created, otherwise the
specified node must already exist.
When updating an existing node shaper, the specified leaves are
added to the existing node; such node will also retain any preexisting
leave.
The parent handle for a new node shaper defaults to the parent
of all the leaves, provided all the leaves share the same parent.
Otherwise parent handle must be specified.
The user can optionally provide shaping attributes for the node
shaper.
The operation is atomic, on failure no change is applied to
the device shaping configuration, otherwise the node shaper
full identifier, comprising binding and handle, is provided
as the reply.
Requires CAP_NET_ADMIN in the initial user namespace.
Constant Summary collapse
- TYPE =
4- FIXED_HEADER =
nil- ATTRIBUTE_SET =
AttributeSets::NetShaper
- ATTRIBUTES =
Ractor.make_shareable(%i[handle ifindex])
Instance Attribute Summary
Attributes included from StructuredPayload
Instance Method Summary collapse
-
#handle ⇒ AttributeSets::Handle
Unique identifier for the given shaper inside the owning device.
-
#ifindex ⇒ Integer
Interface index owning the specified 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
#handle ⇒ AttributeSets::Handle
Unique identifier for the given shaper inside the owning device.
930 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 930 def handle; attributes[:"handle"]&.value; end |
#ifindex ⇒ Integer
Interface index owning the specified shaper.
935 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 935 def ifindex; attributes[:"ifindex"]&.value; end |