Class: Nl::Linux::NetShaper::AsyncOperations
- Inherits:
-
Object
- Object
- Nl::Linux::NetShaper::AsyncOperations
- Defined in:
- nl-linux/generated/nl/linux/net_shaper.rb
Instance Method Summary collapse
-
#do_cap_get(**args) ⇒ Nl::Async::Future<Messages::DoCapGetReply>
Get the shaper capabilities supported by the given device for the specified scope.
-
#do_delete(**args) ⇒ Nl::Async::Future<void>
Clear (remove) the specified shaper.
-
#do_get(**args) ⇒ Nl::Async::Future<Messages::DoGetReply>
Get information about a shaper for a given device.
-
#do_group(**args) ⇒ Nl::Async::Future<Messages::DoGroupReply>
Create or update a scheduling group, attaching the specified
leavesshapers under the specified node identified byhandle.Theleavesshapers scope must bequeueand the node shaper scope must be eithernodeornetdev.When the node shaper hasnodescope, if thehandleidis not specified, a new shaper of such scope is created, otherwise the specified node must already exist. -
#do_set(**args) ⇒ Nl::Async::Future<void>
Create or update the specified shaper.
-
#dump_cap_get(**args) ⇒ Nl::Async::Stream<Messages::DumpCapGetReply>
Get the shaper capabilities supported by the given device for the specified scope.
-
#dump_get(**args) ⇒ Nl::Async::Stream<Messages::DumpGetReply>
Get information about a shaper for a given device.
Instance Method Details
#do_cap_get(**args) ⇒ Nl::Async::Future<Messages::DoCapGetReply>
Get the shaper capabilities supported by the given device for the specified scope.
1389 1390 1391 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 1389 def do_cap_get(**args) @exchange.call(:"do", Messages::DoCapGetRequest, Messages::DoCapGetReply, args) end |
#do_delete(**args) ⇒ Nl::Async::Future<void>
Clear (remove) the specified shaper. When deleting
a node shaper, reattach all the node's leaves to the
deleted node's parent.
If, after the removal, the parent shaper has no more
leaves and the parent shaper scope is node, the parent
node is deleted, recursively.
When deleting a queue shaper or a netdev shaper,
the shaper disappears from the hierarchy, but the
queue/device can still send traffic: it has an implicit
node with infinite bandwidth. The queue's implicit node
feeds an implicit RR node at the root of the hierarchy.
Requires CAP_NET_ADMIN in the initial user namespace.
1329 1330 1331 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 1329 def do_delete(**args) @exchange.call(:"do", Messages::DoDeleteRequest, nil, args) end |
#do_get(**args) ⇒ Nl::Async::Future<Messages::DoGetReply>
Get information about a shaper for a given device.
1269 1270 1271 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 1269 def do_get(**args) @exchange.call(:"do", Messages::DoGetRequest, Messages::DoGetReply, args) end |
#do_group(**args) ⇒ Nl::Async::Future<Messages::DoGroupReply>
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.
1376 1377 1378 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 1376 def do_group(**args) @exchange.call(:"do", Messages::DoGroupRequest, Messages::DoGroupReply, args) end |
#do_set(**args) ⇒ Nl::Async::Future<void>
Create or update the specified shaper.
The set operation can't be used to create a node scope shaper,
use the group operation instead.
Requires CAP_NET_ADMIN in the initial user namespace.
1306 1307 1308 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 1306 def do_set(**args) @exchange.call(:"do", Messages::DoSetRequest, nil, args) end |
#dump_cap_get(**args) ⇒ Nl::Async::Stream<Messages::DumpCapGetReply>
Get the shaper capabilities supported by the given device for the specified scope.
1399 1400 1401 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 1399 def dump_cap_get(**args) @exchange.call(:"dump", Messages::DumpCapGetRequest, Messages::DumpCapGetReply, args) end |
#dump_get(**args) ⇒ Nl::Async::Stream<Messages::DumpGetReply>
Get information about a shaper for a given device.
1278 1279 1280 |
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 1278 def dump_get(**args) @exchange.call(:"dump", Messages::DumpGetRequest, Messages::DumpGetReply, args) end |