Class: Nl::Linux::RtLink
- Inherits:
-
Raw::Family
- Object
- Family
- Raw::Family
- Nl::Linux::RtLink
- Defined in:
- nl-linux/generated/nl/linux/rt_link.rb
Overview
Link configuration over rtnetlink.
Defined Under Namespace
Modules: AttributeSets, Enums, Flags, Messages, Notifications, Structs, SubMessages Classes: AsyncOperations
Constant Summary collapse
- NAME =
"rt-link"- PROTONUM =
0
Class Method Summary collapse
Instance Method Summary collapse
-
#async(stream_capacity: nil) ⇒ AsyncOperations
Returns the asynchronous operation facade for this family.
-
#do_dellink(**args) ⇒ void
Delete an existing link.
-
#do_getlink(**args) ⇒ Messages::DoGetlinkReply
Get / dump information about a link.
-
#do_getstats(**args) ⇒ Messages::DoGetstatsReply
Get / dump link stats.
-
#do_newlink(**args) ⇒ void
Create a new link.
-
#do_setlink(**args) ⇒ void
Set information about a link.
-
#dump_getlink(**args, &block) ⇒ Object
Get / dump information about a link.
-
#dump_getstats(**args, &block) ⇒ Object
Get / dump link stats.
- #subscribe(*groups) ⇒ self
- #unsubscribe(*groups) ⇒ self
Class Method Details
.open(executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) ⇒ RtLink .open(executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) {|family| ... } ⇒ Object
24 25 26 |
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 24 def self.open(executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) super end |
Instance Method Details
#async(stream_capacity: nil) ⇒ AsyncOperations
Returns the asynchronous operation facade for this family.
10198 10199 10200 10201 |
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 10198 def async(stream_capacity: nil) return @async_operations ||= build_async_facade(AsyncOperations) if stream_capacity.nil? build_async_facade(AsyncOperations, stream_capacity:) end |
#do_dellink(**args) ⇒ void
This method returns an undefined value.
Delete an existing link.
9851 9852 9853 |
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 9851 def do_dellink(**args) (:"do", Messages::DoDellinkRequest, nil, args) end |
#do_getlink(**args) ⇒ Messages::DoGetlinkReply
Get / dump information about a link.
9868 9869 9870 |
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 9868 def do_getlink(**args) (:"do", Messages::DoGetlinkRequest, Messages::DoGetlinkReply, args) end |
#do_getstats(**args) ⇒ Messages::DoGetstatsReply
Get / dump link stats.
9986 9987 9988 |
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 9986 def do_getstats(**args) (:"do", Messages::DoGetstatsRequest, Messages::DoGetstatsReply, args) end |
#do_newlink(**args) ⇒ void
This method returns an undefined value.
Create a new link.
9837 9838 9839 |
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 9837 def do_newlink(**args) (:"do", Messages::DoNewlinkRequest, nil, args) end |
#do_setlink(**args) ⇒ void
This method returns an undefined value.
Set information about a link.
9975 9976 9977 |
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 9975 def do_setlink(**args) (:"do", Messages::DoSetlinkRequest, nil, args) end |
#dump_getlink(**args) ⇒ Array<Messages::DumpGetlinkReply> #dump_getlink(**args) {|reply| ... } ⇒ void
Get / dump information about a link.
9902 9903 9904 |
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 9902 def dump_getlink(**args, &block) (:"dump", Messages::DumpGetlinkRequest, Messages::DumpGetlinkReply, args, &block) end |
#dump_getstats(**args) ⇒ Array<Messages::DumpGetstatsReply> #dump_getstats(**args) {|reply| ... } ⇒ void
Get / dump link stats.
10008 10009 10010 |
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 10008 def dump_getstats(**args, &block) (:"dump", Messages::DumpGetstatsRequest, Messages::DumpGetstatsReply, args, &block) end |
#subscribe(*groups) ⇒ self
10205 10206 10207 10208 |
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 10205 def subscribe(*groups) = super # @rbs (*(:rtnlgrp_link | :rtnlgrp_stats) groups) -> self # @param [Array<:rtnlgrp_link, :rtnlgrp_stats>] groups # @return [self] |
#unsubscribe(*groups) ⇒ self
10209 |
# File 'nl-linux/generated/nl/linux/rt_link.rb', line 10209 def unsubscribe(*groups) = super |