nl-linux 0.2.4 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rspec +3 -0
- data/.yardopts +5 -0
- data/CHANGELOG.md +8 -0
- data/Rakefile +27 -5
- data/generated/nl/linux/binder.rb +227 -19
- data/generated/nl/linux/conntrack.rb +1325 -365
- data/generated/nl/linux/dev_energymodel.rb +357 -66
- data/generated/nl/linux/devlink.rb +6310 -1859
- data/generated/nl/linux/dpll.rb +2202 -376
- data/generated/nl/linux/drm_ras.rb +312 -63
- data/generated/nl/linux/ethtool.rb +7555 -2447
- data/generated/nl/linux/fou.rb +381 -133
- data/generated/nl/linux/handshake.rb +340 -70
- data/generated/nl/linux/lockd.rb +132 -27
- data/generated/nl/linux/mptcp_pm.rb +773 -161
- data/generated/nl/linux/net_shaper.rb +892 -211
- data/generated/nl/linux/netdev.rb +2366 -518
- data/generated/nl/linux/nfsd.rb +1299 -317
- data/generated/nl/linux/nftables.rb +5351 -1533
- data/generated/nl/linux/nl80211.rb +4601 -882
- data/generated/nl/linux/nlctrl.rb +460 -117
- data/generated/nl/linux/ovpn.rb +1360 -262
- data/generated/nl/linux/ovs_datapath.rb +312 -98
- data/generated/nl/linux/ovs_flow.rb +1866 -358
- data/generated/nl/linux/ovs_packet.rb +331 -45
- data/generated/nl/linux/ovs_vport.rb +374 -123
- data/generated/nl/linux/psp.rb +1093 -201
- data/generated/nl/linux/rt_addr.rb +423 -165
- data/generated/nl/linux/rt_link.rb +6928 -1336
- data/generated/nl/linux/rt_neigh.rb +1063 -297
- data/generated/nl/linux/rt_route.rb +1112 -483
- data/generated/nl/linux/rt_rule.rb +931 -262
- data/generated/nl/linux/sunrpc_cache.rb +407 -82
- data/generated/nl/linux/tc.rb +10081 -1763
- data/generated/nl/linux/tcp_metrics.rb +388 -109
- data/generated/nl/linux/team.rb +350 -84
- data/generated/nl/linux/wireguard.rb +525 -96
- data/generated/nl/linux.rb +1 -0
- data/lib/nl/linux/nlctrl_resolver.rb +31 -0
- data/lib/nl/linux/version.rb +1 -1
- data/sig/generated/nl/linux/binder.rbs +366 -0
- data/sig/generated/nl/linux/conntrack.rbs +2787 -0
- data/sig/generated/nl/linux/dev_energymodel.rbs +636 -0
- data/sig/generated/nl/linux/devlink.rbs +12496 -0
- data/sig/generated/nl/linux/dpll.rbs +3461 -0
- data/sig/generated/nl/linux/drm_ras.rbs +553 -0
- data/sig/generated/nl/linux/ethtool.rbs +15291 -0
- data/sig/generated/nl/linux/fou.rbs +702 -0
- data/sig/generated/nl/linux/handshake.rbs +622 -0
- data/sig/generated/nl/linux/lockd.rbs +234 -0
- data/sig/generated/nl/linux/mptcp_pm.rbs +1511 -0
- data/sig/generated/nl/linux/net_shaper.rbs +1645 -0
- data/sig/generated/nl/linux/netdev.rbs +4187 -0
- data/sig/generated/nl/linux/nfsd.rbs +2520 -0
- data/sig/generated/nl/linux/nftables.rbs +10304 -0
- data/sig/generated/nl/linux/nl80211.rbs +9786 -0
- data/sig/generated/nl/linux/nlctrl.rbs +944 -0
- data/sig/generated/nl/linux/nlctrl_resolver.rbs +20 -0
- data/sig/generated/nl/linux/ovpn.rbs +2564 -0
- data/sig/generated/nl/linux/ovs_datapath.rbs +640 -0
- data/sig/generated/nl/linux/ovs_flow.rbs +3659 -0
- data/sig/generated/nl/linux/ovs_packet.rbs +540 -0
- data/sig/generated/nl/linux/ovs_vport.rbs +777 -0
- data/sig/generated/nl/linux/psp.rbs +1846 -0
- data/sig/generated/nl/linux/rt_addr.rbs +866 -0
- data/sig/generated/nl/linux/rt_link.rbs +13438 -0
- data/sig/generated/nl/linux/rt_neigh.rbs +2124 -0
- data/sig/generated/nl/linux/rt_route.rbs +2218 -0
- data/sig/generated/nl/linux/rt_rule.rbs +1726 -0
- data/sig/generated/nl/linux/sunrpc_cache.rbs +739 -0
- data/sig/generated/nl/linux/tc.rbs +19931 -0
- data/sig/generated/nl/linux/tcp_metrics.rbs +740 -0
- data/sig/generated/nl/linux/team.rbs +733 -0
- data/sig/generated/nl/linux/version.rbs +7 -0
- data/sig/generated/nl/linux/wireguard.rbs +1006 -0
- data/sig/generated/nl/linux.rbs +6 -0
- data/sig/generated/nl-linux.rbs +2 -0
- metadata +51 -10
|
@@ -0,0 +1,733 @@
|
|
|
1
|
+
# Generated from generated/nl/linux/team.rb with RBS::Inline
|
|
2
|
+
|
|
3
|
+
module Nl
|
|
4
|
+
module Linux
|
|
5
|
+
# Network team device driver.
|
|
6
|
+
class Team < ::Nl::Genl::Family
|
|
7
|
+
NAME: ::String
|
|
8
|
+
|
|
9
|
+
VERSION: ::Integer
|
|
10
|
+
|
|
11
|
+
# @rbs (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) -> (::Nl::Family::Session & instance)
|
|
12
|
+
# @rbs | [R] (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) { (instance) -> R } -> R
|
|
13
|
+
# @overload open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY)
|
|
14
|
+
# @param [#call] resolver
|
|
15
|
+
# @param [Symbol, nil] executor
|
|
16
|
+
# @param [Integer, nil] notification_capacity
|
|
17
|
+
# @return [Team]
|
|
18
|
+
# @overload open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY, &block)
|
|
19
|
+
# @param [#call] resolver
|
|
20
|
+
# @param [Symbol, nil] executor
|
|
21
|
+
# @param [Integer, nil] notification_capacity
|
|
22
|
+
# @yieldparam [Team] family
|
|
23
|
+
# @return [Object] the result of the block
|
|
24
|
+
def self.open: (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) -> (::Nl::Family::Session & instance)
|
|
25
|
+
|
|
26
|
+
# @private
|
|
27
|
+
MCAST_GROUPS: Hash[::Symbol, ::Nl::McastGroup]
|
|
28
|
+
|
|
29
|
+
module Constants
|
|
30
|
+
STRING_MAX_LEN: ::Integer
|
|
31
|
+
|
|
32
|
+
GENL_CHANGE_EVENT_MC_GRP_NAME: ::String
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
module Structs
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
module AttributeSets
|
|
39
|
+
# The team nested layout of get/set msg looks like::
|
|
40
|
+
#
|
|
41
|
+
# [TEAM_ATTR_LIST_OPTION]
|
|
42
|
+
# [TEAM_ATTR_ITEM_OPTION]
|
|
43
|
+
# [TEAM_ATTR_OPTION_*], ...
|
|
44
|
+
# [TEAM_ATTR_ITEM_OPTION]
|
|
45
|
+
# [TEAM_ATTR_OPTION_*], ...
|
|
46
|
+
# ...
|
|
47
|
+
# [TEAM_ATTR_LIST_PORT]
|
|
48
|
+
# [TEAM_ATTR_ITEM_PORT]
|
|
49
|
+
# [TEAM_ATTR_PORT_*], ...
|
|
50
|
+
# [TEAM_ATTR_ITEM_PORT]
|
|
51
|
+
# [TEAM_ATTR_PORT_*], ...
|
|
52
|
+
# ...
|
|
53
|
+
class Team < ::Nl::AttributeSet
|
|
54
|
+
# Abstract class
|
|
55
|
+
class Attribute < ::Nl::AttributeSet::Attribute
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
class TeamIfindex < Attribute
|
|
59
|
+
TYPE: ::Integer
|
|
60
|
+
|
|
61
|
+
NAME: ::Symbol
|
|
62
|
+
|
|
63
|
+
# @private
|
|
64
|
+
ORDER: ::Integer
|
|
65
|
+
|
|
66
|
+
# @private
|
|
67
|
+
DATATYPE: untyped
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
class ListOption < Attribute
|
|
71
|
+
TYPE: ::Integer
|
|
72
|
+
|
|
73
|
+
NAME: ::Symbol
|
|
74
|
+
|
|
75
|
+
# @private
|
|
76
|
+
ORDER: ::Integer
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
class ListPort < Attribute
|
|
80
|
+
TYPE: ::Integer
|
|
81
|
+
|
|
82
|
+
NAME: ::Symbol
|
|
83
|
+
|
|
84
|
+
# @private
|
|
85
|
+
ORDER: ::Integer
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# @private
|
|
89
|
+
BY_NAME: Hash[::Symbol, Attribute]
|
|
90
|
+
|
|
91
|
+
# @private
|
|
92
|
+
BY_TYPE: Hash[::Integer, Attribute]
|
|
93
|
+
|
|
94
|
+
# @rbs return: ::Integer
|
|
95
|
+
# @return [Integer]
|
|
96
|
+
# @see TeamIfindex
|
|
97
|
+
def team_ifindex: () -> ::Integer
|
|
98
|
+
|
|
99
|
+
# @rbs return: AttributeSets::ItemOption
|
|
100
|
+
# @return [AttributeSets::ItemOption]
|
|
101
|
+
# @see ListOption
|
|
102
|
+
def list_option: () -> AttributeSets::ItemOption
|
|
103
|
+
|
|
104
|
+
# @rbs return: AttributeSets::ItemPort
|
|
105
|
+
# @return [AttributeSets::ItemPort]
|
|
106
|
+
# @see ListPort
|
|
107
|
+
def list_port: () -> AttributeSets::ItemPort
|
|
108
|
+
|
|
109
|
+
# Looks up Attribute class by name.
|
|
110
|
+
# @rbs name: Symbol
|
|
111
|
+
# @rbs return: Attribute
|
|
112
|
+
# @param [Symbol] name
|
|
113
|
+
# @return [Attribute]
|
|
114
|
+
def self.by_name: (Symbol name) -> Attribute
|
|
115
|
+
|
|
116
|
+
# Looks up Attribute class by type value.
|
|
117
|
+
# @rbs type: Integer
|
|
118
|
+
# @rbs return: Attribute
|
|
119
|
+
# @param [Integer] type
|
|
120
|
+
# @return [Attribute]
|
|
121
|
+
def self.by_type: (Integer type) -> Attribute
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
class ItemOption < ::Nl::AttributeSet
|
|
125
|
+
# Abstract class
|
|
126
|
+
class Attribute < ::Nl::AttributeSet::Attribute
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
class Option < Attribute
|
|
130
|
+
TYPE: ::Integer
|
|
131
|
+
|
|
132
|
+
NAME: ::Symbol
|
|
133
|
+
|
|
134
|
+
# @private
|
|
135
|
+
ORDER: ::Integer
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# @private
|
|
139
|
+
BY_NAME: Hash[::Symbol, Attribute]
|
|
140
|
+
|
|
141
|
+
# @private
|
|
142
|
+
BY_TYPE: Hash[::Integer, Attribute]
|
|
143
|
+
|
|
144
|
+
# @rbs return: AttributeSets::AttrOption
|
|
145
|
+
# @return [AttributeSets::AttrOption]
|
|
146
|
+
# @see Option
|
|
147
|
+
def option: () -> AttributeSets::AttrOption
|
|
148
|
+
|
|
149
|
+
# Looks up Attribute class by name.
|
|
150
|
+
# @rbs name: Symbol
|
|
151
|
+
# @rbs return: Attribute
|
|
152
|
+
# @param [Symbol] name
|
|
153
|
+
# @return [Attribute]
|
|
154
|
+
def self.by_name: (Symbol name) -> Attribute
|
|
155
|
+
|
|
156
|
+
# Looks up Attribute class by type value.
|
|
157
|
+
# @rbs type: Integer
|
|
158
|
+
# @rbs return: Attribute
|
|
159
|
+
# @param [Integer] type
|
|
160
|
+
# @return [Attribute]
|
|
161
|
+
def self.by_type: (Integer type) -> Attribute
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
class AttrOption < ::Nl::AttributeSet
|
|
165
|
+
# Abstract class
|
|
166
|
+
class Attribute < ::Nl::AttributeSet::Attribute
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
class Name < Attribute
|
|
170
|
+
TYPE: ::Integer
|
|
171
|
+
|
|
172
|
+
NAME: ::Symbol
|
|
173
|
+
|
|
174
|
+
# @private
|
|
175
|
+
ORDER: ::Integer
|
|
176
|
+
|
|
177
|
+
# @private
|
|
178
|
+
DATATYPE: untyped
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
class Changed < Attribute
|
|
182
|
+
TYPE: ::Integer
|
|
183
|
+
|
|
184
|
+
NAME: ::Symbol
|
|
185
|
+
|
|
186
|
+
# @private
|
|
187
|
+
ORDER: ::Integer
|
|
188
|
+
|
|
189
|
+
# @private
|
|
190
|
+
DATATYPE: untyped
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
class Type < Attribute
|
|
194
|
+
TYPE: ::Integer
|
|
195
|
+
|
|
196
|
+
NAME: ::Symbol
|
|
197
|
+
|
|
198
|
+
# @private
|
|
199
|
+
ORDER: ::Integer
|
|
200
|
+
|
|
201
|
+
# @private
|
|
202
|
+
DATATYPE: untyped
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
class Data < Attribute
|
|
206
|
+
TYPE: ::Integer
|
|
207
|
+
|
|
208
|
+
NAME: ::Symbol
|
|
209
|
+
|
|
210
|
+
# @private
|
|
211
|
+
ORDER: ::Integer
|
|
212
|
+
|
|
213
|
+
# @private
|
|
214
|
+
DATATYPE: untyped
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
class Removed < Attribute
|
|
218
|
+
TYPE: ::Integer
|
|
219
|
+
|
|
220
|
+
NAME: ::Symbol
|
|
221
|
+
|
|
222
|
+
# @private
|
|
223
|
+
ORDER: ::Integer
|
|
224
|
+
|
|
225
|
+
# @private
|
|
226
|
+
DATATYPE: untyped
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# for per-port options
|
|
230
|
+
class PortIfindex < Attribute
|
|
231
|
+
TYPE: ::Integer
|
|
232
|
+
|
|
233
|
+
NAME: ::Symbol
|
|
234
|
+
|
|
235
|
+
# @private
|
|
236
|
+
ORDER: ::Integer
|
|
237
|
+
|
|
238
|
+
# @private
|
|
239
|
+
DATATYPE: untyped
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
# for array options
|
|
243
|
+
class ArrayIndex < Attribute
|
|
244
|
+
TYPE: ::Integer
|
|
245
|
+
|
|
246
|
+
NAME: ::Symbol
|
|
247
|
+
|
|
248
|
+
# @private
|
|
249
|
+
ORDER: ::Integer
|
|
250
|
+
|
|
251
|
+
# @private
|
|
252
|
+
DATATYPE: untyped
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# @private
|
|
256
|
+
BY_NAME: Hash[::Symbol, Attribute]
|
|
257
|
+
|
|
258
|
+
# @private
|
|
259
|
+
BY_TYPE: Hash[::Integer, Attribute]
|
|
260
|
+
|
|
261
|
+
# @rbs return: ::String
|
|
262
|
+
# @return [String]
|
|
263
|
+
# @see Name
|
|
264
|
+
def name: () -> ::String
|
|
265
|
+
|
|
266
|
+
# @rbs return: ::Integer
|
|
267
|
+
# @return [Integer]
|
|
268
|
+
# @see Changed
|
|
269
|
+
def changed: () -> ::Integer
|
|
270
|
+
|
|
271
|
+
# @rbs return: ::Integer
|
|
272
|
+
# @return [Integer]
|
|
273
|
+
# @see Type
|
|
274
|
+
def type: () -> ::Integer
|
|
275
|
+
|
|
276
|
+
# @rbs return: ::String
|
|
277
|
+
# @return [String]
|
|
278
|
+
# @see Data
|
|
279
|
+
def data: () -> ::String
|
|
280
|
+
|
|
281
|
+
# @rbs return: ::Integer
|
|
282
|
+
# @return [Integer]
|
|
283
|
+
# @see Removed
|
|
284
|
+
def removed: () -> ::Integer
|
|
285
|
+
|
|
286
|
+
# for per-port options
|
|
287
|
+
# @rbs return: ::Integer
|
|
288
|
+
# @return [Integer]
|
|
289
|
+
# @see PortIfindex
|
|
290
|
+
def port_ifindex: () -> ::Integer
|
|
291
|
+
|
|
292
|
+
# for array options
|
|
293
|
+
# @rbs return: ::Integer
|
|
294
|
+
# @return [Integer]
|
|
295
|
+
# @see ArrayIndex
|
|
296
|
+
def array_index: () -> ::Integer
|
|
297
|
+
|
|
298
|
+
# Looks up Attribute class by name.
|
|
299
|
+
# @rbs name: Symbol
|
|
300
|
+
# @rbs return: Attribute
|
|
301
|
+
# @param [Symbol] name
|
|
302
|
+
# @return [Attribute]
|
|
303
|
+
def self.by_name: (Symbol name) -> Attribute
|
|
304
|
+
|
|
305
|
+
# Looks up Attribute class by type value.
|
|
306
|
+
# @rbs type: Integer
|
|
307
|
+
# @rbs return: Attribute
|
|
308
|
+
# @param [Integer] type
|
|
309
|
+
# @return [Attribute]
|
|
310
|
+
def self.by_type: (Integer type) -> Attribute
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
class ItemPort < ::Nl::AttributeSet
|
|
314
|
+
# Abstract class
|
|
315
|
+
class Attribute < ::Nl::AttributeSet::Attribute
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
class Port < Attribute
|
|
319
|
+
TYPE: ::Integer
|
|
320
|
+
|
|
321
|
+
NAME: ::Symbol
|
|
322
|
+
|
|
323
|
+
# @private
|
|
324
|
+
ORDER: ::Integer
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
# @private
|
|
328
|
+
BY_NAME: Hash[::Symbol, Attribute]
|
|
329
|
+
|
|
330
|
+
# @private
|
|
331
|
+
BY_TYPE: Hash[::Integer, Attribute]
|
|
332
|
+
|
|
333
|
+
# @rbs return: AttributeSets::AttrPort
|
|
334
|
+
# @return [AttributeSets::AttrPort]
|
|
335
|
+
# @see Port
|
|
336
|
+
def port: () -> AttributeSets::AttrPort
|
|
337
|
+
|
|
338
|
+
# Looks up Attribute class by name.
|
|
339
|
+
# @rbs name: Symbol
|
|
340
|
+
# @rbs return: Attribute
|
|
341
|
+
# @param [Symbol] name
|
|
342
|
+
# @return [Attribute]
|
|
343
|
+
def self.by_name: (Symbol name) -> Attribute
|
|
344
|
+
|
|
345
|
+
# Looks up Attribute class by type value.
|
|
346
|
+
# @rbs type: Integer
|
|
347
|
+
# @rbs return: Attribute
|
|
348
|
+
# @param [Integer] type
|
|
349
|
+
# @return [Attribute]
|
|
350
|
+
def self.by_type: (Integer type) -> Attribute
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
class AttrPort < ::Nl::AttributeSet
|
|
354
|
+
# Abstract class
|
|
355
|
+
class Attribute < ::Nl::AttributeSet::Attribute
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
class Ifindex < Attribute
|
|
359
|
+
TYPE: ::Integer
|
|
360
|
+
|
|
361
|
+
NAME: ::Symbol
|
|
362
|
+
|
|
363
|
+
# @private
|
|
364
|
+
ORDER: ::Integer
|
|
365
|
+
|
|
366
|
+
# @private
|
|
367
|
+
DATATYPE: untyped
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
class Changed < Attribute
|
|
371
|
+
TYPE: ::Integer
|
|
372
|
+
|
|
373
|
+
NAME: ::Symbol
|
|
374
|
+
|
|
375
|
+
# @private
|
|
376
|
+
ORDER: ::Integer
|
|
377
|
+
|
|
378
|
+
# @private
|
|
379
|
+
DATATYPE: untyped
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
class Linkup < Attribute
|
|
383
|
+
TYPE: ::Integer
|
|
384
|
+
|
|
385
|
+
NAME: ::Symbol
|
|
386
|
+
|
|
387
|
+
# @private
|
|
388
|
+
ORDER: ::Integer
|
|
389
|
+
|
|
390
|
+
# @private
|
|
391
|
+
DATATYPE: untyped
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
class Speed < Attribute
|
|
395
|
+
TYPE: ::Integer
|
|
396
|
+
|
|
397
|
+
NAME: ::Symbol
|
|
398
|
+
|
|
399
|
+
# @private
|
|
400
|
+
ORDER: ::Integer
|
|
401
|
+
|
|
402
|
+
# @private
|
|
403
|
+
DATATYPE: untyped
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
class Duplex < Attribute
|
|
407
|
+
TYPE: ::Integer
|
|
408
|
+
|
|
409
|
+
NAME: ::Symbol
|
|
410
|
+
|
|
411
|
+
# @private
|
|
412
|
+
ORDER: ::Integer
|
|
413
|
+
|
|
414
|
+
# @private
|
|
415
|
+
DATATYPE: untyped
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
class Removed < Attribute
|
|
419
|
+
TYPE: ::Integer
|
|
420
|
+
|
|
421
|
+
NAME: ::Symbol
|
|
422
|
+
|
|
423
|
+
# @private
|
|
424
|
+
ORDER: ::Integer
|
|
425
|
+
|
|
426
|
+
# @private
|
|
427
|
+
DATATYPE: untyped
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# @private
|
|
431
|
+
BY_NAME: Hash[::Symbol, Attribute]
|
|
432
|
+
|
|
433
|
+
# @private
|
|
434
|
+
BY_TYPE: Hash[::Integer, Attribute]
|
|
435
|
+
|
|
436
|
+
# @rbs return: ::Integer
|
|
437
|
+
# @return [Integer]
|
|
438
|
+
# @see Ifindex
|
|
439
|
+
def ifindex: () -> ::Integer
|
|
440
|
+
|
|
441
|
+
# @rbs return: ::Integer
|
|
442
|
+
# @return [Integer]
|
|
443
|
+
# @see Changed
|
|
444
|
+
def changed: () -> ::Integer
|
|
445
|
+
|
|
446
|
+
# @rbs return: ::Integer
|
|
447
|
+
# @return [Integer]
|
|
448
|
+
# @see Linkup
|
|
449
|
+
def linkup: () -> ::Integer
|
|
450
|
+
|
|
451
|
+
# @rbs return: ::Integer
|
|
452
|
+
# @return [Integer]
|
|
453
|
+
# @see Speed
|
|
454
|
+
def speed: () -> ::Integer
|
|
455
|
+
|
|
456
|
+
# @rbs return: ::Integer
|
|
457
|
+
# @return [Integer]
|
|
458
|
+
# @see Duplex
|
|
459
|
+
def duplex: () -> ::Integer
|
|
460
|
+
|
|
461
|
+
# @rbs return: ::Integer
|
|
462
|
+
# @return [Integer]
|
|
463
|
+
# @see Removed
|
|
464
|
+
def removed: () -> ::Integer
|
|
465
|
+
|
|
466
|
+
# Looks up Attribute class by name.
|
|
467
|
+
# @rbs name: Symbol
|
|
468
|
+
# @rbs return: Attribute
|
|
469
|
+
# @param [Symbol] name
|
|
470
|
+
# @return [Attribute]
|
|
471
|
+
def self.by_name: (Symbol name) -> Attribute
|
|
472
|
+
|
|
473
|
+
# Looks up Attribute class by type value.
|
|
474
|
+
# @rbs type: Integer
|
|
475
|
+
# @rbs return: Attribute
|
|
476
|
+
# @param [Integer] type
|
|
477
|
+
# @return [Attribute]
|
|
478
|
+
def self.by_type: (Integer type) -> Attribute
|
|
479
|
+
end
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
module Messages
|
|
483
|
+
# No operation
|
|
484
|
+
class DoNoopRequest < ::Nl::Genl::Message
|
|
485
|
+
TYPE: ::Integer
|
|
486
|
+
|
|
487
|
+
FIXED_HEADER: untyped
|
|
488
|
+
|
|
489
|
+
ATTRIBUTE_SET: untyped
|
|
490
|
+
|
|
491
|
+
ATTRIBUTES: untyped
|
|
492
|
+
end
|
|
493
|
+
|
|
494
|
+
# No operation
|
|
495
|
+
class DoNoopReply < ::Nl::Genl::Message
|
|
496
|
+
TYPE: ::Integer
|
|
497
|
+
|
|
498
|
+
FIXED_HEADER: untyped
|
|
499
|
+
|
|
500
|
+
ATTRIBUTE_SET: untyped
|
|
501
|
+
|
|
502
|
+
ATTRIBUTES: untyped
|
|
503
|
+
|
|
504
|
+
# @rbs return: ::Integer
|
|
505
|
+
# @return [Integer]
|
|
506
|
+
# @see AttributeSets::Team::TeamIfindex
|
|
507
|
+
def team_ifindex: () -> ::Integer
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
# Set team options
|
|
511
|
+
#
|
|
512
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
513
|
+
class DoOptionsSetRequest < ::Nl::Genl::Message
|
|
514
|
+
TYPE: ::Integer
|
|
515
|
+
|
|
516
|
+
FIXED_HEADER: untyped
|
|
517
|
+
|
|
518
|
+
ATTRIBUTE_SET: untyped
|
|
519
|
+
|
|
520
|
+
ATTRIBUTES: untyped
|
|
521
|
+
|
|
522
|
+
# @rbs return: ::Integer
|
|
523
|
+
# @return [Integer]
|
|
524
|
+
# @see AttributeSets::Team::TeamIfindex
|
|
525
|
+
def team_ifindex: () -> ::Integer
|
|
526
|
+
|
|
527
|
+
# @rbs return: AttributeSets::ItemOption
|
|
528
|
+
# @return [AttributeSets::ItemOption]
|
|
529
|
+
# @see AttributeSets::Team::ListOption
|
|
530
|
+
def list_option: () -> AttributeSets::ItemOption
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
# Set team options
|
|
534
|
+
#
|
|
535
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
536
|
+
class DoOptionsSetReply < ::Nl::Genl::Message
|
|
537
|
+
TYPE: ::Integer
|
|
538
|
+
|
|
539
|
+
FIXED_HEADER: untyped
|
|
540
|
+
|
|
541
|
+
ATTRIBUTE_SET: untyped
|
|
542
|
+
|
|
543
|
+
ATTRIBUTES: untyped
|
|
544
|
+
|
|
545
|
+
# @rbs return: ::Integer
|
|
546
|
+
# @return [Integer]
|
|
547
|
+
# @see AttributeSets::Team::TeamIfindex
|
|
548
|
+
def team_ifindex: () -> ::Integer
|
|
549
|
+
|
|
550
|
+
# @rbs return: AttributeSets::ItemOption
|
|
551
|
+
# @return [AttributeSets::ItemOption]
|
|
552
|
+
# @see AttributeSets::Team::ListOption
|
|
553
|
+
def list_option: () -> AttributeSets::ItemOption
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
# Get team options info
|
|
557
|
+
#
|
|
558
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
559
|
+
class DoOptionsGetRequest < ::Nl::Genl::Message
|
|
560
|
+
TYPE: ::Integer
|
|
561
|
+
|
|
562
|
+
FIXED_HEADER: untyped
|
|
563
|
+
|
|
564
|
+
ATTRIBUTE_SET: untyped
|
|
565
|
+
|
|
566
|
+
ATTRIBUTES: untyped
|
|
567
|
+
|
|
568
|
+
# @rbs return: ::Integer
|
|
569
|
+
# @return [Integer]
|
|
570
|
+
# @see AttributeSets::Team::TeamIfindex
|
|
571
|
+
def team_ifindex: () -> ::Integer
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
# Get team options info
|
|
575
|
+
#
|
|
576
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
577
|
+
class DoOptionsGetReply < ::Nl::Genl::Message
|
|
578
|
+
TYPE: ::Integer
|
|
579
|
+
|
|
580
|
+
FIXED_HEADER: untyped
|
|
581
|
+
|
|
582
|
+
ATTRIBUTE_SET: untyped
|
|
583
|
+
|
|
584
|
+
ATTRIBUTES: untyped
|
|
585
|
+
|
|
586
|
+
# @rbs return: ::Integer
|
|
587
|
+
# @return [Integer]
|
|
588
|
+
# @see AttributeSets::Team::TeamIfindex
|
|
589
|
+
def team_ifindex: () -> ::Integer
|
|
590
|
+
|
|
591
|
+
# @rbs return: AttributeSets::ItemOption
|
|
592
|
+
# @return [AttributeSets::ItemOption]
|
|
593
|
+
# @see AttributeSets::Team::ListOption
|
|
594
|
+
def list_option: () -> AttributeSets::ItemOption
|
|
595
|
+
end
|
|
596
|
+
|
|
597
|
+
# Get team ports info
|
|
598
|
+
#
|
|
599
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
600
|
+
class DoPortListGetRequest < ::Nl::Genl::Message
|
|
601
|
+
TYPE: ::Integer
|
|
602
|
+
|
|
603
|
+
FIXED_HEADER: untyped
|
|
604
|
+
|
|
605
|
+
ATTRIBUTE_SET: untyped
|
|
606
|
+
|
|
607
|
+
ATTRIBUTES: untyped
|
|
608
|
+
|
|
609
|
+
# @rbs return: ::Integer
|
|
610
|
+
# @return [Integer]
|
|
611
|
+
# @see AttributeSets::Team::TeamIfindex
|
|
612
|
+
def team_ifindex: () -> ::Integer
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
# Get team ports info
|
|
616
|
+
#
|
|
617
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
618
|
+
class DoPortListGetReply < ::Nl::Genl::Message
|
|
619
|
+
TYPE: ::Integer
|
|
620
|
+
|
|
621
|
+
FIXED_HEADER: untyped
|
|
622
|
+
|
|
623
|
+
ATTRIBUTE_SET: untyped
|
|
624
|
+
|
|
625
|
+
ATTRIBUTES: untyped
|
|
626
|
+
|
|
627
|
+
# @rbs return: ::Integer
|
|
628
|
+
# @return [Integer]
|
|
629
|
+
# @see AttributeSets::Team::TeamIfindex
|
|
630
|
+
def team_ifindex: () -> ::Integer
|
|
631
|
+
|
|
632
|
+
# @rbs return: AttributeSets::ItemPort
|
|
633
|
+
# @return [AttributeSets::ItemPort]
|
|
634
|
+
# @see AttributeSets::Team::ListPort
|
|
635
|
+
def list_port: () -> AttributeSets::ItemPort
|
|
636
|
+
end
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
module Notifications
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
# @private
|
|
643
|
+
NOTIFICATIONS: Hash[::Integer, ::Class]
|
|
644
|
+
|
|
645
|
+
# No operation
|
|
646
|
+
# @rbs () -> Messages::DoNoopReply
|
|
647
|
+
# @param [Hash] args
|
|
648
|
+
# @return [Messages::DoNoopReply]
|
|
649
|
+
# @see Messages::DoNoopRequest
|
|
650
|
+
def do_noop: () -> Messages::DoNoopReply
|
|
651
|
+
|
|
652
|
+
# Set team options
|
|
653
|
+
#
|
|
654
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
655
|
+
# @rbs (?team_ifindex: ::Integer, ?list_option: (AttributeSets::ItemOption | ::Hash[::Symbol, untyped])) -> Messages::DoOptionsSetReply
|
|
656
|
+
# @param [Hash] args
|
|
657
|
+
# @option args [Integer] team_ifindex
|
|
658
|
+
# @option args [AttributeSets::ItemOption, Hash<Symbol, Object>] list_option
|
|
659
|
+
# @return [Messages::DoOptionsSetReply]
|
|
660
|
+
# @see Messages::DoOptionsSetRequest
|
|
661
|
+
def do_options_set: (?team_ifindex: ::Integer, ?list_option: AttributeSets::ItemOption | ::Hash[::Symbol, untyped]) -> Messages::DoOptionsSetReply
|
|
662
|
+
|
|
663
|
+
# Get team options info
|
|
664
|
+
#
|
|
665
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
666
|
+
# @rbs (?team_ifindex: ::Integer) -> Messages::DoOptionsGetReply
|
|
667
|
+
# @param [Hash] args
|
|
668
|
+
# @option args [Integer] team_ifindex
|
|
669
|
+
# @return [Messages::DoOptionsGetReply]
|
|
670
|
+
# @see Messages::DoOptionsGetRequest
|
|
671
|
+
def do_options_get: (?team_ifindex: ::Integer) -> Messages::DoOptionsGetReply
|
|
672
|
+
|
|
673
|
+
# Get team ports info
|
|
674
|
+
#
|
|
675
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
676
|
+
# @rbs (?team_ifindex: ::Integer) -> Messages::DoPortListGetReply
|
|
677
|
+
# @param [Hash] args
|
|
678
|
+
# @option args [Integer] team_ifindex
|
|
679
|
+
# @return [Messages::DoPortListGetReply]
|
|
680
|
+
# @see Messages::DoPortListGetRequest
|
|
681
|
+
def do_port_list_get: (?team_ifindex: ::Integer) -> Messages::DoPortListGetReply
|
|
682
|
+
|
|
683
|
+
class AsyncOperations
|
|
684
|
+
# @private
|
|
685
|
+
def initialize: () ?{ (?) -> untyped } -> untyped
|
|
686
|
+
|
|
687
|
+
# No operation
|
|
688
|
+
# @rbs () -> ::Nl::Async::Future[Messages::DoNoopReply]
|
|
689
|
+
# @param [Hash] args
|
|
690
|
+
# @return [Nl::Async::Future<Messages::DoNoopReply>]
|
|
691
|
+
# @see Messages::DoNoopRequest
|
|
692
|
+
def do_noop: () -> ::Nl::Async::Future[Messages::DoNoopReply]
|
|
693
|
+
|
|
694
|
+
# Set team options
|
|
695
|
+
#
|
|
696
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
697
|
+
# @rbs (?team_ifindex: ::Integer, ?list_option: (AttributeSets::ItemOption | ::Hash[::Symbol, untyped])) -> ::Nl::Async::Future[Messages::DoOptionsSetReply]
|
|
698
|
+
# @param [Hash] args
|
|
699
|
+
# @option args [Integer] team_ifindex
|
|
700
|
+
# @option args [AttributeSets::ItemOption, Hash<Symbol, Object>] list_option
|
|
701
|
+
# @return [Nl::Async::Future<Messages::DoOptionsSetReply>]
|
|
702
|
+
# @see Messages::DoOptionsSetRequest
|
|
703
|
+
def do_options_set: (?team_ifindex: ::Integer, ?list_option: AttributeSets::ItemOption | ::Hash[::Symbol, untyped]) -> ::Nl::Async::Future[Messages::DoOptionsSetReply]
|
|
704
|
+
|
|
705
|
+
# Get team options info
|
|
706
|
+
#
|
|
707
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
708
|
+
# @rbs (?team_ifindex: ::Integer) -> ::Nl::Async::Future[Messages::DoOptionsGetReply]
|
|
709
|
+
# @param [Hash] args
|
|
710
|
+
# @option args [Integer] team_ifindex
|
|
711
|
+
# @return [Nl::Async::Future<Messages::DoOptionsGetReply>]
|
|
712
|
+
# @see Messages::DoOptionsGetRequest
|
|
713
|
+
def do_options_get: (?team_ifindex: ::Integer) -> ::Nl::Async::Future[Messages::DoOptionsGetReply]
|
|
714
|
+
|
|
715
|
+
# Get team ports info
|
|
716
|
+
#
|
|
717
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
718
|
+
# @rbs (?team_ifindex: ::Integer) -> ::Nl::Async::Future[Messages::DoPortListGetReply]
|
|
719
|
+
# @param [Hash] args
|
|
720
|
+
# @option args [Integer] team_ifindex
|
|
721
|
+
# @return [Nl::Async::Future<Messages::DoPortListGetReply>]
|
|
722
|
+
# @see Messages::DoPortListGetRequest
|
|
723
|
+
def do_port_list_get: (?team_ifindex: ::Integer) -> ::Nl::Async::Future[Messages::DoPortListGetReply]
|
|
724
|
+
end
|
|
725
|
+
|
|
726
|
+
# Returns the asynchronous operation facade for this family.
|
|
727
|
+
# @rbs (?stream_capacity: ::Integer?) -> AsyncOperations
|
|
728
|
+
# @param [::Integer, nil] stream_capacity
|
|
729
|
+
# @return [AsyncOperations]
|
|
730
|
+
def async: (?stream_capacity: ::Integer?) -> AsyncOperations
|
|
731
|
+
end
|
|
732
|
+
end
|
|
733
|
+
end
|