nl-linux 0.2.4 → 0.3.0
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/CHANGELOG.md +2 -0
- data/Rakefile +13 -3
- data/generated/nl/linux/binder.rb +80 -0
- data/generated/nl/linux/conntrack.rb +39 -2
- data/generated/nl/linux/dev_energymodel.rb +106 -0
- data/generated/nl/linux/devlink.rb +751 -0
- data/generated/nl/linux/dpll.rb +712 -55
- data/generated/nl/linux/drm_ras.rb +87 -0
- data/generated/nl/linux/ethtool.rb +1569 -259
- data/generated/nl/linux/fou.rb +82 -13
- data/generated/nl/linux/handshake.rb +92 -0
- data/generated/nl/linux/lockd.rb +50 -0
- data/generated/nl/linux/mptcp_pm.rb +159 -0
- data/generated/nl/linux/net_shaper.rb +123 -0
- data/generated/nl/linux/netdev.rb +374 -0
- data/generated/nl/linux/nfsd.rb +316 -6
- data/generated/nl/linux/nftables.rb +414 -25
- data/generated/nl/linux/nl80211.rb +81 -22
- data/generated/nl/linux/nlctrl.rb +59 -8
- data/generated/nl/linux/ovpn.rb +180 -0
- data/generated/nl/linux/ovs_datapath.rb +55 -6
- data/generated/nl/linux/ovs_flow.rb +63 -20
- data/generated/nl/linux/ovs_packet.rb +115 -4
- data/generated/nl/linux/ovs_vport.rb +55 -6
- data/generated/nl/linux/psp.rb +257 -0
- data/generated/nl/linux/rt_addr.rb +69 -14
- data/generated/nl/linux/rt_link.rb +381 -47
- data/generated/nl/linux/rt_neigh.rb +227 -16
- data/generated/nl/linux/rt_route.rb +92 -49
- data/generated/nl/linux/rt_rule.rb +300 -11
- data/generated/nl/linux/sunrpc_cache.rb +130 -0
- data/generated/nl/linux/tc.rb +161 -52
- data/generated/nl/linux/tcp_metrics.rb +69 -12
- data/generated/nl/linux/team.rb +80 -0
- data/generated/nl/linux/wireguard.rb +99 -7
- data/lib/nl/linux/version.rb +1 -1
- metadata +11 -9
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
|
|
2
|
+
#
|
|
3
|
+
# This file is based on Documentation/netlink/specs/devlink.yaml from Linux v7.2.
|
|
2
4
|
#--
|
|
3
5
|
# frozen_string_literal: true
|
|
4
6
|
# rbs_inline: enabled
|
|
@@ -9,6 +11,7 @@ module Nl; module Linux
|
|
|
9
11
|
class Devlink < ::Nl::Family
|
|
10
12
|
NAME = "devlink"
|
|
11
13
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Genl.new("devlink"))
|
|
14
|
+
MCAST_GROUPS = Ractor.make_shareable({}) #: Hash[::Symbol, ::Nl::McastGroup]
|
|
12
15
|
module Structs
|
|
13
16
|
end
|
|
14
17
|
module AttributeSets
|
|
@@ -2264,6 +2267,13 @@ class Devlink < ::Nl::Family
|
|
|
2264
2267
|
def index; attributes[:"index"]&.value; end
|
|
2265
2268
|
end
|
|
2266
2269
|
# Get devlink instances.
|
|
2270
|
+
class DumpGetRequest < ::Nl::Protocols::Genl::Message
|
|
2271
|
+
TYPE = 1
|
|
2272
|
+
FIXED_HEADER = nil
|
|
2273
|
+
ATTRIBUTE_SET = AttributeSets::Devlink
|
|
2274
|
+
ATTRIBUTES = Ractor.make_shareable(%i[])
|
|
2275
|
+
end
|
|
2276
|
+
# Get devlink instances.
|
|
2267
2277
|
class DumpGetReply < ::Nl::Protocols::Genl::Message
|
|
2268
2278
|
TYPE = 3
|
|
2269
2279
|
FIXED_HEADER = nil
|
|
@@ -2379,6 +2389,8 @@ class Devlink < ::Nl::Family
|
|
|
2379
2389
|
def index; attributes[:"index"]&.value; end
|
|
2380
2390
|
end
|
|
2381
2391
|
# Set devlink port instances.
|
|
2392
|
+
#
|
|
2393
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2382
2394
|
class DoPortSetRequest < ::Nl::Protocols::Genl::Message
|
|
2383
2395
|
TYPE = 6
|
|
2384
2396
|
FIXED_HEADER = nil
|
|
@@ -2410,6 +2422,8 @@ class Devlink < ::Nl::Family
|
|
|
2410
2422
|
def index; attributes[:"index"]&.value; end
|
|
2411
2423
|
end
|
|
2412
2424
|
# Create devlink port instances.
|
|
2425
|
+
#
|
|
2426
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2413
2427
|
class DoPortNewRequest < ::Nl::Protocols::Genl::Message
|
|
2414
2428
|
TYPE = 7
|
|
2415
2429
|
FIXED_HEADER = nil
|
|
@@ -2449,6 +2463,8 @@ class Devlink < ::Nl::Family
|
|
|
2449
2463
|
def index; attributes[:"index"]&.value; end
|
|
2450
2464
|
end
|
|
2451
2465
|
# Create devlink port instances.
|
|
2466
|
+
#
|
|
2467
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2452
2468
|
class DoPortNewReply < ::Nl::Protocols::Genl::Message
|
|
2453
2469
|
TYPE = 7
|
|
2454
2470
|
FIXED_HEADER = nil
|
|
@@ -2472,6 +2488,8 @@ class Devlink < ::Nl::Family
|
|
|
2472
2488
|
def index; attributes[:"index"]&.value; end
|
|
2473
2489
|
end
|
|
2474
2490
|
# Delete devlink port instances.
|
|
2491
|
+
#
|
|
2492
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2475
2493
|
class DoPortDelRequest < ::Nl::Protocols::Genl::Message
|
|
2476
2494
|
TYPE = 8
|
|
2477
2495
|
FIXED_HEADER = nil
|
|
@@ -2495,6 +2513,8 @@ class Devlink < ::Nl::Family
|
|
|
2495
2513
|
def index; attributes[:"index"]&.value; end
|
|
2496
2514
|
end
|
|
2497
2515
|
# Split devlink port instances.
|
|
2516
|
+
#
|
|
2517
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2498
2518
|
class DoPortSplitRequest < ::Nl::Protocols::Genl::Message
|
|
2499
2519
|
TYPE = 9
|
|
2500
2520
|
FIXED_HEADER = nil
|
|
@@ -2522,6 +2542,8 @@ class Devlink < ::Nl::Family
|
|
|
2522
2542
|
def index; attributes[:"index"]&.value; end
|
|
2523
2543
|
end
|
|
2524
2544
|
# Unplit devlink port instances.
|
|
2545
|
+
#
|
|
2546
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2525
2547
|
class DoPortUnsplitRequest < ::Nl::Protocols::Genl::Message
|
|
2526
2548
|
TYPE = 10
|
|
2527
2549
|
FIXED_HEADER = nil
|
|
@@ -2733,6 +2755,8 @@ class Devlink < ::Nl::Family
|
|
|
2733
2755
|
def index; attributes[:"index"]&.value; end
|
|
2734
2756
|
end
|
|
2735
2757
|
# Set shared buffer pool instances.
|
|
2758
|
+
#
|
|
2759
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2736
2760
|
class DoSbPoolSetRequest < ::Nl::Protocols::Genl::Message
|
|
2737
2761
|
TYPE = 16
|
|
2738
2762
|
FIXED_HEADER = nil
|
|
@@ -2880,6 +2904,8 @@ class Devlink < ::Nl::Family
|
|
|
2880
2904
|
def index; attributes[:"index"]&.value; end
|
|
2881
2905
|
end
|
|
2882
2906
|
# Set shared buffer port-pool combinations and threshold.
|
|
2907
|
+
#
|
|
2908
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
2883
2909
|
class DoSbPortPoolSetRequest < ::Nl::Protocols::Genl::Message
|
|
2884
2910
|
TYPE = 20
|
|
2885
2911
|
FIXED_HEADER = nil
|
|
@@ -3039,6 +3065,8 @@ class Devlink < ::Nl::Family
|
|
|
3039
3065
|
def index; attributes[:"index"]&.value; end
|
|
3040
3066
|
end
|
|
3041
3067
|
# Set shared buffer port-TC to pool bindings and threshold.
|
|
3068
|
+
#
|
|
3069
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3042
3070
|
class DoSbTcPoolBindSetRequest < ::Nl::Protocols::Genl::Message
|
|
3043
3071
|
TYPE = 24
|
|
3044
3072
|
FIXED_HEADER = nil
|
|
@@ -3082,6 +3110,8 @@ class Devlink < ::Nl::Family
|
|
|
3082
3110
|
def index; attributes[:"index"]&.value; end
|
|
3083
3111
|
end
|
|
3084
3112
|
# Take occupancy snapshot of shared buffer.
|
|
3113
|
+
#
|
|
3114
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3085
3115
|
class DoSbOccSnapshotRequest < ::Nl::Protocols::Genl::Message
|
|
3086
3116
|
TYPE = 27
|
|
3087
3117
|
FIXED_HEADER = nil
|
|
@@ -3105,6 +3135,8 @@ class Devlink < ::Nl::Family
|
|
|
3105
3135
|
def index; attributes[:"index"]&.value; end
|
|
3106
3136
|
end
|
|
3107
3137
|
# Clear occupancy watermarks of shared buffer.
|
|
3138
|
+
#
|
|
3139
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3108
3140
|
class DoSbOccMaxClearRequest < ::Nl::Protocols::Genl::Message
|
|
3109
3141
|
TYPE = 28
|
|
3110
3142
|
FIXED_HEADER = nil
|
|
@@ -3128,6 +3160,8 @@ class Devlink < ::Nl::Family
|
|
|
3128
3160
|
def index; attributes[:"index"]&.value; end
|
|
3129
3161
|
end
|
|
3130
3162
|
# Get eswitch attributes.
|
|
3163
|
+
#
|
|
3164
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3131
3165
|
class DoEswitchGetRequest < ::Nl::Protocols::Genl::Message
|
|
3132
3166
|
TYPE = 29
|
|
3133
3167
|
FIXED_HEADER = nil
|
|
@@ -3147,6 +3181,8 @@ class Devlink < ::Nl::Family
|
|
|
3147
3181
|
def index; attributes[:"index"]&.value; end
|
|
3148
3182
|
end
|
|
3149
3183
|
# Get eswitch attributes.
|
|
3184
|
+
#
|
|
3185
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3150
3186
|
class DoEswitchGetReply < ::Nl::Protocols::Genl::Message
|
|
3151
3187
|
TYPE = 29
|
|
3152
3188
|
FIXED_HEADER = nil
|
|
@@ -3178,6 +3214,8 @@ class Devlink < ::Nl::Family
|
|
|
3178
3214
|
def index; attributes[:"index"]&.value; end
|
|
3179
3215
|
end
|
|
3180
3216
|
# Set eswitch attributes.
|
|
3217
|
+
#
|
|
3218
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3181
3219
|
class DoEswitchSetRequest < ::Nl::Protocols::Genl::Message
|
|
3182
3220
|
TYPE = 30
|
|
3183
3221
|
FIXED_HEADER = nil
|
|
@@ -3343,6 +3381,8 @@ class Devlink < ::Nl::Family
|
|
|
3343
3381
|
def index; attributes[:"index"]&.value; end
|
|
3344
3382
|
end
|
|
3345
3383
|
# Set dpipe counter attributes.
|
|
3384
|
+
#
|
|
3385
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3346
3386
|
class DoDpipeTableCountersSetRequest < ::Nl::Protocols::Genl::Message
|
|
3347
3387
|
TYPE = 34
|
|
3348
3388
|
FIXED_HEADER = nil
|
|
@@ -3370,6 +3410,8 @@ class Devlink < ::Nl::Family
|
|
|
3370
3410
|
def index; attributes[:"index"]&.value; end
|
|
3371
3411
|
end
|
|
3372
3412
|
# Set resource attributes.
|
|
3413
|
+
#
|
|
3414
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3373
3415
|
class DoResourceSetRequest < ::Nl::Protocols::Genl::Message
|
|
3374
3416
|
TYPE = 35
|
|
3375
3417
|
FIXED_HEADER = nil
|
|
@@ -3497,6 +3539,8 @@ class Devlink < ::Nl::Family
|
|
|
3497
3539
|
def index; attributes[:"index"]&.value; end
|
|
3498
3540
|
end
|
|
3499
3541
|
# Reload devlink.
|
|
3542
|
+
#
|
|
3543
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3500
3544
|
class DoReloadRequest < ::Nl::Protocols::Genl::Message
|
|
3501
3545
|
TYPE = 37
|
|
3502
3546
|
FIXED_HEADER = nil
|
|
@@ -3536,6 +3580,8 @@ class Devlink < ::Nl::Family
|
|
|
3536
3580
|
def index; attributes[:"index"]&.value; end
|
|
3537
3581
|
end
|
|
3538
3582
|
# Reload devlink.
|
|
3583
|
+
#
|
|
3584
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3539
3585
|
class DoReloadReply < ::Nl::Protocols::Genl::Message
|
|
3540
3586
|
TYPE = 37
|
|
3541
3587
|
FIXED_HEADER = nil
|
|
@@ -3647,6 +3693,8 @@ class Devlink < ::Nl::Family
|
|
|
3647
3693
|
def index; attributes[:"index"]&.value; end
|
|
3648
3694
|
end
|
|
3649
3695
|
# Set param instances.
|
|
3696
|
+
#
|
|
3697
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3650
3698
|
class DoParamSetRequest < ::Nl::Protocols::Genl::Message
|
|
3651
3699
|
TYPE = 39
|
|
3652
3700
|
FIXED_HEADER = nil
|
|
@@ -3782,6 +3830,8 @@ class Devlink < ::Nl::Family
|
|
|
3782
3830
|
def index; attributes[:"index"]&.value; end
|
|
3783
3831
|
end
|
|
3784
3832
|
# Create region snapshot.
|
|
3833
|
+
#
|
|
3834
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3785
3835
|
class DoRegionNewRequest < ::Nl::Protocols::Genl::Message
|
|
3786
3836
|
TYPE = 44
|
|
3787
3837
|
FIXED_HEADER = nil
|
|
@@ -3813,6 +3863,8 @@ class Devlink < ::Nl::Family
|
|
|
3813
3863
|
def index; attributes[:"index"]&.value; end
|
|
3814
3864
|
end
|
|
3815
3865
|
# Create region snapshot.
|
|
3866
|
+
#
|
|
3867
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3816
3868
|
class DoRegionNewReply < ::Nl::Protocols::Genl::Message
|
|
3817
3869
|
TYPE = 44
|
|
3818
3870
|
FIXED_HEADER = nil
|
|
@@ -3844,6 +3896,8 @@ class Devlink < ::Nl::Family
|
|
|
3844
3896
|
def index; attributes[:"index"]&.value; end
|
|
3845
3897
|
end
|
|
3846
3898
|
# Delete region snapshot.
|
|
3899
|
+
#
|
|
3900
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3847
3901
|
class DoRegionDelRequest < ::Nl::Protocols::Genl::Message
|
|
3848
3902
|
TYPE = 45
|
|
3849
3903
|
FIXED_HEADER = nil
|
|
@@ -3875,6 +3929,8 @@ class Devlink < ::Nl::Family
|
|
|
3875
3929
|
def index; attributes[:"index"]&.value; end
|
|
3876
3930
|
end
|
|
3877
3931
|
# Read region data.
|
|
3932
|
+
#
|
|
3933
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3878
3934
|
class DumpRegionReadRequest < ::Nl::Protocols::Genl::Message
|
|
3879
3935
|
TYPE = 46
|
|
3880
3936
|
FIXED_HEADER = nil
|
|
@@ -3918,6 +3974,8 @@ class Devlink < ::Nl::Family
|
|
|
3918
3974
|
def index; attributes[:"index"]&.value; end
|
|
3919
3975
|
end
|
|
3920
3976
|
# Read region data.
|
|
3977
|
+
#
|
|
3978
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
3921
3979
|
class DumpRegionReadReply < ::Nl::Protocols::Genl::Message
|
|
3922
3980
|
TYPE = 46
|
|
3923
3981
|
FIXED_HEADER = nil
|
|
@@ -3991,6 +4049,13 @@ class Devlink < ::Nl::Family
|
|
|
3991
4049
|
def index; attributes[:"index"]&.value; end
|
|
3992
4050
|
end
|
|
3993
4051
|
# Get port param instances.
|
|
4052
|
+
class DumpPortParamGetRequest < ::Nl::Protocols::Genl::Message
|
|
4053
|
+
TYPE = 47
|
|
4054
|
+
FIXED_HEADER = nil
|
|
4055
|
+
ATTRIBUTE_SET = AttributeSets::Devlink
|
|
4056
|
+
ATTRIBUTES = Ractor.make_shareable(%i[])
|
|
4057
|
+
end
|
|
4058
|
+
# Get port param instances.
|
|
3994
4059
|
class DumpPortParamGetReply < ::Nl::Protocols::Genl::Message
|
|
3995
4060
|
TYPE = 47
|
|
3996
4061
|
FIXED_HEADER = nil
|
|
@@ -4014,6 +4079,8 @@ class Devlink < ::Nl::Family
|
|
|
4014
4079
|
def index; attributes[:"index"]&.value; end
|
|
4015
4080
|
end
|
|
4016
4081
|
# Set port param instances.
|
|
4082
|
+
#
|
|
4083
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
4017
4084
|
class DoPortParamSetRequest < ::Nl::Protocols::Genl::Message
|
|
4018
4085
|
TYPE = 48
|
|
4019
4086
|
FIXED_HEADER = nil
|
|
@@ -4102,6 +4169,14 @@ class Devlink < ::Nl::Family
|
|
|
4102
4169
|
end
|
|
4103
4170
|
# Get device information, like driver name, hardware and firmware versions
|
|
4104
4171
|
# etc.
|
|
4172
|
+
class DumpInfoGetRequest < ::Nl::Protocols::Genl::Message
|
|
4173
|
+
TYPE = 51
|
|
4174
|
+
FIXED_HEADER = nil
|
|
4175
|
+
ATTRIBUTE_SET = AttributeSets::Devlink
|
|
4176
|
+
ATTRIBUTES = Ractor.make_shareable(%i[])
|
|
4177
|
+
end
|
|
4178
|
+
# Get device information, like driver name, hardware and firmware versions
|
|
4179
|
+
# etc.
|
|
4105
4180
|
class DumpInfoGetReply < ::Nl::Protocols::Genl::Message
|
|
4106
4181
|
TYPE = 51
|
|
4107
4182
|
FIXED_HEADER = nil
|
|
@@ -4249,6 +4324,8 @@ class Devlink < ::Nl::Family
|
|
|
4249
4324
|
def index; attributes[:"index"]&.value; end
|
|
4250
4325
|
end
|
|
4251
4326
|
# Set health reporter instances.
|
|
4327
|
+
#
|
|
4328
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
4252
4329
|
class DoHealthReporterSetRequest < ::Nl::Protocols::Genl::Message
|
|
4253
4330
|
TYPE = 53
|
|
4254
4331
|
FIXED_HEADER = nil
|
|
@@ -4292,6 +4369,8 @@ class Devlink < ::Nl::Family
|
|
|
4292
4369
|
def index; attributes[:"index"]&.value; end
|
|
4293
4370
|
end
|
|
4294
4371
|
# Recover health reporter instances.
|
|
4372
|
+
#
|
|
4373
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
4295
4374
|
class DoHealthReporterRecoverRequest < ::Nl::Protocols::Genl::Message
|
|
4296
4375
|
TYPE = 54
|
|
4297
4376
|
FIXED_HEADER = nil
|
|
@@ -4319,6 +4398,8 @@ class Devlink < ::Nl::Family
|
|
|
4319
4398
|
def index; attributes[:"index"]&.value; end
|
|
4320
4399
|
end
|
|
4321
4400
|
# Diagnose health reporter instances.
|
|
4401
|
+
#
|
|
4402
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
4322
4403
|
class DoHealthReporterDiagnoseRequest < ::Nl::Protocols::Genl::Message
|
|
4323
4404
|
TYPE = 55
|
|
4324
4405
|
FIXED_HEADER = nil
|
|
@@ -4346,6 +4427,8 @@ class Devlink < ::Nl::Family
|
|
|
4346
4427
|
def index; attributes[:"index"]&.value; end
|
|
4347
4428
|
end
|
|
4348
4429
|
# Dump health reporter instances.
|
|
4430
|
+
#
|
|
4431
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
4349
4432
|
class DumpHealthReporterDumpGetRequest < ::Nl::Protocols::Genl::Message
|
|
4350
4433
|
TYPE = 56
|
|
4351
4434
|
FIXED_HEADER = nil
|
|
@@ -4373,6 +4456,8 @@ class Devlink < ::Nl::Family
|
|
|
4373
4456
|
def index; attributes[:"index"]&.value; end
|
|
4374
4457
|
end
|
|
4375
4458
|
# Dump health reporter instances.
|
|
4459
|
+
#
|
|
4460
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
4376
4461
|
class DumpHealthReporterDumpGetReply < ::Nl::Protocols::Genl::Message
|
|
4377
4462
|
TYPE = 56
|
|
4378
4463
|
FIXED_HEADER = nil
|
|
@@ -4384,6 +4469,8 @@ class Devlink < ::Nl::Family
|
|
|
4384
4469
|
def fmsg; attributes[:"fmsg"]&.value; end
|
|
4385
4470
|
end
|
|
4386
4471
|
# Clear dump of health reporter instances.
|
|
4472
|
+
#
|
|
4473
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
4387
4474
|
class DoHealthReporterDumpClearRequest < ::Nl::Protocols::Genl::Message
|
|
4388
4475
|
TYPE = 57
|
|
4389
4476
|
FIXED_HEADER = nil
|
|
@@ -4411,6 +4498,8 @@ class Devlink < ::Nl::Family
|
|
|
4411
4498
|
def index; attributes[:"index"]&.value; end
|
|
4412
4499
|
end
|
|
4413
4500
|
# Flash update devlink instances.
|
|
4501
|
+
#
|
|
4502
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
4414
4503
|
class DoFlashUpdateRequest < ::Nl::Protocols::Genl::Message
|
|
4415
4504
|
TYPE = 58
|
|
4416
4505
|
FIXED_HEADER = nil
|
|
@@ -4530,6 +4619,8 @@ class Devlink < ::Nl::Family
|
|
|
4530
4619
|
def index; attributes[:"index"]&.value; end
|
|
4531
4620
|
end
|
|
4532
4621
|
# Set trap instances.
|
|
4622
|
+
#
|
|
4623
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
4533
4624
|
class DoTrapSetRequest < ::Nl::Protocols::Genl::Message
|
|
4534
4625
|
TYPE = 62
|
|
4535
4626
|
FIXED_HEADER = nil
|
|
@@ -4645,6 +4736,8 @@ class Devlink < ::Nl::Family
|
|
|
4645
4736
|
def index; attributes[:"index"]&.value; end
|
|
4646
4737
|
end
|
|
4647
4738
|
# Set trap group instances.
|
|
4739
|
+
#
|
|
4740
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
4648
4741
|
class DoTrapGroupSetRequest < ::Nl::Protocols::Genl::Message
|
|
4649
4742
|
TYPE = 66
|
|
4650
4743
|
FIXED_HEADER = nil
|
|
@@ -4764,6 +4857,8 @@ class Devlink < ::Nl::Family
|
|
|
4764
4857
|
def index; attributes[:"index"]&.value; end
|
|
4765
4858
|
end
|
|
4766
4859
|
# Get trap policer instances.
|
|
4860
|
+
#
|
|
4861
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
4767
4862
|
class DoTrapPolicerSetRequest < ::Nl::Protocols::Genl::Message
|
|
4768
4863
|
TYPE = 70
|
|
4769
4864
|
FIXED_HEADER = nil
|
|
@@ -4795,6 +4890,8 @@ class Devlink < ::Nl::Family
|
|
|
4795
4890
|
def index; attributes[:"index"]&.value; end
|
|
4796
4891
|
end
|
|
4797
4892
|
# Test health reporter instances.
|
|
4893
|
+
#
|
|
4894
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
4798
4895
|
class DoHealthReporterTestRequest < ::Nl::Protocols::Genl::Message
|
|
4799
4896
|
TYPE = 73
|
|
4800
4897
|
FIXED_HEADER = nil
|
|
@@ -4922,6 +5019,8 @@ class Devlink < ::Nl::Family
|
|
|
4922
5019
|
def index; attributes[:"index"]&.value; end
|
|
4923
5020
|
end
|
|
4924
5021
|
# Set rate instances.
|
|
5022
|
+
#
|
|
5023
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
4925
5024
|
class DoRateSetRequest < ::Nl::Protocols::Genl::Message
|
|
4926
5025
|
TYPE = 75
|
|
4927
5026
|
FIXED_HEADER = nil
|
|
@@ -4969,6 +5068,8 @@ class Devlink < ::Nl::Family
|
|
|
4969
5068
|
def index; attributes[:"index"]&.value; end
|
|
4970
5069
|
end
|
|
4971
5070
|
# Create rate instances.
|
|
5071
|
+
#
|
|
5072
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
4972
5073
|
class DoRateNewRequest < ::Nl::Protocols::Genl::Message
|
|
4973
5074
|
TYPE = 76
|
|
4974
5075
|
FIXED_HEADER = nil
|
|
@@ -5016,6 +5117,8 @@ class Devlink < ::Nl::Family
|
|
|
5016
5117
|
def index; attributes[:"index"]&.value; end
|
|
5017
5118
|
end
|
|
5018
5119
|
# Delete rate instances.
|
|
5120
|
+
#
|
|
5121
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5019
5122
|
class DoRateDelRequest < ::Nl::Protocols::Genl::Message
|
|
5020
5123
|
TYPE = 77
|
|
5021
5124
|
FIXED_HEADER = nil
|
|
@@ -5127,6 +5230,8 @@ class Devlink < ::Nl::Family
|
|
|
5127
5230
|
def index; attributes[:"index"]&.value; end
|
|
5128
5231
|
end
|
|
5129
5232
|
# Set line card instances.
|
|
5233
|
+
#
|
|
5234
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5130
5235
|
class DoLinecardSetRequest < ::Nl::Protocols::Genl::Message
|
|
5131
5236
|
TYPE = 79
|
|
5132
5237
|
FIXED_HEADER = nil
|
|
@@ -5192,6 +5297,13 @@ class Devlink < ::Nl::Family
|
|
|
5192
5297
|
def index; attributes[:"index"]&.value; end
|
|
5193
5298
|
end
|
|
5194
5299
|
# Get device selftest instances.
|
|
5300
|
+
class DumpSelftestsGetRequest < ::Nl::Protocols::Genl::Message
|
|
5301
|
+
TYPE = 82
|
|
5302
|
+
FIXED_HEADER = nil
|
|
5303
|
+
ATTRIBUTE_SET = AttributeSets::Devlink
|
|
5304
|
+
ATTRIBUTES = Ractor.make_shareable(%i[])
|
|
5305
|
+
end
|
|
5306
|
+
# Get device selftest instances.
|
|
5195
5307
|
class DumpSelftestsGetReply < ::Nl::Protocols::Genl::Message
|
|
5196
5308
|
TYPE = 82
|
|
5197
5309
|
FIXED_HEADER = nil
|
|
@@ -5211,6 +5323,8 @@ class Devlink < ::Nl::Family
|
|
|
5211
5323
|
def index; attributes[:"index"]&.value; end
|
|
5212
5324
|
end
|
|
5213
5325
|
# Run device selftest instances.
|
|
5326
|
+
#
|
|
5327
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5214
5328
|
class DoSelftestsRunRequest < ::Nl::Protocols::Genl::Message
|
|
5215
5329
|
TYPE = 83
|
|
5216
5330
|
FIXED_HEADER = nil
|
|
@@ -5257,12 +5371,22 @@ class Devlink < ::Nl::Family
|
|
|
5257
5371
|
def index; attributes[:"index"]&.value; end
|
|
5258
5372
|
end
|
|
5259
5373
|
end
|
|
5374
|
+
module Notifications
|
|
5375
|
+
end
|
|
5376
|
+
NOTIFICATIONS = Ractor.make_shareable({}) #: Hash[::Integer, ::Class]
|
|
5260
5377
|
# Get devlink instances.
|
|
5261
5378
|
#--
|
|
5262
5379
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> Messages::DoGetReply
|
|
5263
5380
|
def do_get(**args)
|
|
5264
5381
|
exchange_message(:"do", Messages::DoGetRequest, Messages::DoGetReply, args)
|
|
5265
5382
|
end
|
|
5383
|
+
# Get devlink instances.
|
|
5384
|
+
#--
|
|
5385
|
+
# @rbs () -> Enumerable[Messages::DumpGetReply]
|
|
5386
|
+
# | () { (Messages::DumpGetReply) -> void } -> void
|
|
5387
|
+
def dump_get(**args, &block)
|
|
5388
|
+
exchange_message(:"dump", Messages::DumpGetRequest, Messages::DumpGetReply, args, &block)
|
|
5389
|
+
end
|
|
5266
5390
|
# Get devlink port instances.
|
|
5267
5391
|
#--
|
|
5268
5392
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?index: ::Integer) -> Messages::DoPortGetReply
|
|
@@ -5277,30 +5401,40 @@ class Devlink < ::Nl::Family
|
|
|
5277
5401
|
exchange_message(:"dump", Messages::DumpPortGetRequest, Messages::DumpPortGetReply, args, &block)
|
|
5278
5402
|
end
|
|
5279
5403
|
# Set devlink port instances.
|
|
5404
|
+
#
|
|
5405
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5280
5406
|
#--
|
|
5281
5407
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?port_type: ::Integer, ?port_function: AttributeSets::DlPortFunction, ?index: ::Integer) -> void
|
|
5282
5408
|
def do_port_set(**args)
|
|
5283
5409
|
exchange_message(:"do", Messages::DoPortSetRequest, nil, args)
|
|
5284
5410
|
end
|
|
5285
5411
|
# Create devlink port instances.
|
|
5412
|
+
#
|
|
5413
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5286
5414
|
#--
|
|
5287
5415
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?port_flavour: ::Integer, ?port_pci_pf_number: ::Integer, ?port_controller_number: ::Integer, ?port_pci_sf_number: ::Integer, ?index: ::Integer) -> Messages::DoPortNewReply
|
|
5288
5416
|
def do_port_new(**args)
|
|
5289
5417
|
exchange_message(:"do", Messages::DoPortNewRequest, Messages::DoPortNewReply, args)
|
|
5290
5418
|
end
|
|
5291
5419
|
# Delete devlink port instances.
|
|
5420
|
+
#
|
|
5421
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5292
5422
|
#--
|
|
5293
5423
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?index: ::Integer) -> void
|
|
5294
5424
|
def do_port_del(**args)
|
|
5295
5425
|
exchange_message(:"do", Messages::DoPortDelRequest, nil, args)
|
|
5296
5426
|
end
|
|
5297
5427
|
# Split devlink port instances.
|
|
5428
|
+
#
|
|
5429
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5298
5430
|
#--
|
|
5299
5431
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?port_split_count: ::Integer, ?index: ::Integer) -> void
|
|
5300
5432
|
def do_port_split(**args)
|
|
5301
5433
|
exchange_message(:"do", Messages::DoPortSplitRequest, nil, args)
|
|
5302
5434
|
end
|
|
5303
5435
|
# Unplit devlink port instances.
|
|
5436
|
+
#
|
|
5437
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5304
5438
|
#--
|
|
5305
5439
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?index: ::Integer) -> void
|
|
5306
5440
|
def do_port_unsplit(**args)
|
|
@@ -5333,6 +5467,8 @@ class Devlink < ::Nl::Family
|
|
|
5333
5467
|
exchange_message(:"dump", Messages::DumpSbPoolGetRequest, Messages::DumpSbPoolGetReply, args, &block)
|
|
5334
5468
|
end
|
|
5335
5469
|
# Set shared buffer pool instances.
|
|
5470
|
+
#
|
|
5471
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5336
5472
|
#--
|
|
5337
5473
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?sb_index: ::Integer, ?sb_pool_index: ::Integer, ?sb_pool_size: ::Integer, ?sb_pool_threshold_type: ::Integer, ?index: ::Integer) -> void
|
|
5338
5474
|
def do_sb_pool_set(**args)
|
|
@@ -5352,6 +5488,8 @@ class Devlink < ::Nl::Family
|
|
|
5352
5488
|
exchange_message(:"dump", Messages::DumpSbPortPoolGetRequest, Messages::DumpSbPortPoolGetReply, args, &block)
|
|
5353
5489
|
end
|
|
5354
5490
|
# Set shared buffer port-pool combinations and threshold.
|
|
5491
|
+
#
|
|
5492
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5355
5493
|
#--
|
|
5356
5494
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?sb_index: ::Integer, ?sb_pool_index: ::Integer, ?sb_threshold: ::Integer, ?index: ::Integer) -> void
|
|
5357
5495
|
def do_sb_port_pool_set(**args)
|
|
@@ -5371,30 +5509,40 @@ class Devlink < ::Nl::Family
|
|
|
5371
5509
|
exchange_message(:"dump", Messages::DumpSbTcPoolBindGetRequest, Messages::DumpSbTcPoolBindGetReply, args, &block)
|
|
5372
5510
|
end
|
|
5373
5511
|
# Set shared buffer port-TC to pool bindings and threshold.
|
|
5512
|
+
#
|
|
5513
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5374
5514
|
#--
|
|
5375
5515
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?sb_index: ::Integer, ?sb_pool_index: ::Integer, ?sb_pool_type: ::Integer, ?sb_threshold: ::Integer, ?sb_tc_index: ::Integer, ?index: ::Integer) -> void
|
|
5376
5516
|
def do_sb_tc_pool_bind_set(**args)
|
|
5377
5517
|
exchange_message(:"do", Messages::DoSbTcPoolBindSetRequest, nil, args)
|
|
5378
5518
|
end
|
|
5379
5519
|
# Take occupancy snapshot of shared buffer.
|
|
5520
|
+
#
|
|
5521
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5380
5522
|
#--
|
|
5381
5523
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?sb_index: ::Integer, ?index: ::Integer) -> void
|
|
5382
5524
|
def do_sb_occ_snapshot(**args)
|
|
5383
5525
|
exchange_message(:"do", Messages::DoSbOccSnapshotRequest, nil, args)
|
|
5384
5526
|
end
|
|
5385
5527
|
# Clear occupancy watermarks of shared buffer.
|
|
5528
|
+
#
|
|
5529
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5386
5530
|
#--
|
|
5387
5531
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?sb_index: ::Integer, ?index: ::Integer) -> void
|
|
5388
5532
|
def do_sb_occ_max_clear(**args)
|
|
5389
5533
|
exchange_message(:"do", Messages::DoSbOccMaxClearRequest, nil, args)
|
|
5390
5534
|
end
|
|
5391
5535
|
# Get eswitch attributes.
|
|
5536
|
+
#
|
|
5537
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5392
5538
|
#--
|
|
5393
5539
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> Messages::DoEswitchGetReply
|
|
5394
5540
|
def do_eswitch_get(**args)
|
|
5395
5541
|
exchange_message(:"do", Messages::DoEswitchGetRequest, Messages::DoEswitchGetReply, args)
|
|
5396
5542
|
end
|
|
5397
5543
|
# Set eswitch attributes.
|
|
5544
|
+
#
|
|
5545
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5398
5546
|
#--
|
|
5399
5547
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?eswitch_mode: ::Integer, ?eswitch_inline_mode: ::Integer, ?eswitch_encap_mode: ::Integer, ?index: ::Integer) -> void
|
|
5400
5548
|
def do_eswitch_set(**args)
|
|
@@ -5419,12 +5567,16 @@ class Devlink < ::Nl::Family
|
|
|
5419
5567
|
exchange_message(:"do", Messages::DoDpipeHeadersGetRequest, Messages::DoDpipeHeadersGetReply, args)
|
|
5420
5568
|
end
|
|
5421
5569
|
# Set dpipe counter attributes.
|
|
5570
|
+
#
|
|
5571
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5422
5572
|
#--
|
|
5423
5573
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?dpipe_table_name: ::String, ?dpipe_table_counters_enabled: ::Integer, ?index: ::Integer) -> void
|
|
5424
5574
|
def do_dpipe_table_counters_set(**args)
|
|
5425
5575
|
exchange_message(:"do", Messages::DoDpipeTableCountersSetRequest, nil, args)
|
|
5426
5576
|
end
|
|
5427
5577
|
# Set resource attributes.
|
|
5578
|
+
#
|
|
5579
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5428
5580
|
#--
|
|
5429
5581
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?resource_id: ::Integer, ?resource_size: ::Integer, ?index: ::Integer) -> void
|
|
5430
5582
|
def do_resource_set(**args)
|
|
@@ -5444,6 +5596,8 @@ class Devlink < ::Nl::Family
|
|
|
5444
5596
|
exchange_message(:"dump", Messages::DumpResourceDumpRequest, Messages::DumpResourceDumpReply, args, &block)
|
|
5445
5597
|
end
|
|
5446
5598
|
# Reload devlink.
|
|
5599
|
+
#
|
|
5600
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5447
5601
|
#--
|
|
5448
5602
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?netns_fd: ::Integer, ?netns_pid: ::Integer, ?netns_id: ::Integer, ?reload_action: ::Integer, ?reload_limits: ::Integer, ?index: ::Integer) -> Messages::DoReloadReply
|
|
5449
5603
|
def do_reload(**args)
|
|
@@ -5463,6 +5617,8 @@ class Devlink < ::Nl::Family
|
|
|
5463
5617
|
exchange_message(:"dump", Messages::DumpParamGetRequest, Messages::DumpParamGetReply, args, &block)
|
|
5464
5618
|
end
|
|
5465
5619
|
# Set param instances.
|
|
5620
|
+
#
|
|
5621
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5466
5622
|
#--
|
|
5467
5623
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?param_name: ::String, ?param_type: ::Integer, ?param_value_cmode: ::Integer, ?param_reset_default: ::Integer, ?index: ::Integer) -> void
|
|
5468
5624
|
def do_param_set(**args)
|
|
@@ -5482,18 +5638,24 @@ class Devlink < ::Nl::Family
|
|
|
5482
5638
|
exchange_message(:"dump", Messages::DumpRegionGetRequest, Messages::DumpRegionGetReply, args, &block)
|
|
5483
5639
|
end
|
|
5484
5640
|
# Create region snapshot.
|
|
5641
|
+
#
|
|
5642
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5485
5643
|
#--
|
|
5486
5644
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?region_name: ::String, ?region_snapshot_id: ::Integer, ?index: ::Integer) -> Messages::DoRegionNewReply
|
|
5487
5645
|
def do_region_new(**args)
|
|
5488
5646
|
exchange_message(:"do", Messages::DoRegionNewRequest, Messages::DoRegionNewReply, args)
|
|
5489
5647
|
end
|
|
5490
5648
|
# Delete region snapshot.
|
|
5649
|
+
#
|
|
5650
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5491
5651
|
#--
|
|
5492
5652
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?region_name: ::String, ?region_snapshot_id: ::Integer, ?index: ::Integer) -> void
|
|
5493
5653
|
def do_region_del(**args)
|
|
5494
5654
|
exchange_message(:"do", Messages::DoRegionDelRequest, nil, args)
|
|
5495
5655
|
end
|
|
5496
5656
|
# Read region data.
|
|
5657
|
+
#
|
|
5658
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5497
5659
|
#--
|
|
5498
5660
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?region_name: ::String, ?region_snapshot_id: ::Integer, ?region_chunk_addr: ::Integer, ?region_chunk_len: ::Integer, ?region_direct: ::Integer, ?index: ::Integer) -> Enumerable[Messages::DumpRegionReadReply]
|
|
5499
5661
|
# | (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?region_name: ::String, ?region_snapshot_id: ::Integer, ?region_chunk_addr: ::Integer, ?region_chunk_len: ::Integer, ?region_direct: ::Integer, ?index: ::Integer) { (Messages::DumpRegionReadReply) -> void } -> void
|
|
@@ -5506,7 +5668,16 @@ class Devlink < ::Nl::Family
|
|
|
5506
5668
|
def do_port_param_get(**args)
|
|
5507
5669
|
exchange_message(:"do", Messages::DoPortParamGetRequest, Messages::DoPortParamGetReply, args)
|
|
5508
5670
|
end
|
|
5671
|
+
# Get port param instances.
|
|
5672
|
+
#--
|
|
5673
|
+
# @rbs () -> Enumerable[Messages::DumpPortParamGetReply]
|
|
5674
|
+
# | () { (Messages::DumpPortParamGetReply) -> void } -> void
|
|
5675
|
+
def dump_port_param_get(**args, &block)
|
|
5676
|
+
exchange_message(:"dump", Messages::DumpPortParamGetRequest, Messages::DumpPortParamGetReply, args, &block)
|
|
5677
|
+
end
|
|
5509
5678
|
# Set port param instances.
|
|
5679
|
+
#
|
|
5680
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5510
5681
|
#--
|
|
5511
5682
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?index: ::Integer) -> void
|
|
5512
5683
|
def do_port_param_set(**args)
|
|
@@ -5519,6 +5690,14 @@ class Devlink < ::Nl::Family
|
|
|
5519
5690
|
def do_info_get(**args)
|
|
5520
5691
|
exchange_message(:"do", Messages::DoInfoGetRequest, Messages::DoInfoGetReply, args)
|
|
5521
5692
|
end
|
|
5693
|
+
# Get device information, like driver name, hardware and firmware versions
|
|
5694
|
+
# etc.
|
|
5695
|
+
#--
|
|
5696
|
+
# @rbs () -> Enumerable[Messages::DumpInfoGetReply]
|
|
5697
|
+
# | () { (Messages::DumpInfoGetReply) -> void } -> void
|
|
5698
|
+
def dump_info_get(**args, &block)
|
|
5699
|
+
exchange_message(:"dump", Messages::DumpInfoGetRequest, Messages::DumpInfoGetReply, args, &block)
|
|
5700
|
+
end
|
|
5522
5701
|
# Get health reporter instances.
|
|
5523
5702
|
#--
|
|
5524
5703
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?health_reporter_name: ::String, ?index: ::Integer) -> Messages::DoHealthReporterGetReply
|
|
@@ -5533,24 +5712,32 @@ class Devlink < ::Nl::Family
|
|
|
5533
5712
|
exchange_message(:"dump", Messages::DumpHealthReporterGetRequest, Messages::DumpHealthReporterGetReply, args, &block)
|
|
5534
5713
|
end
|
|
5535
5714
|
# Set health reporter instances.
|
|
5715
|
+
#
|
|
5716
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5536
5717
|
#--
|
|
5537
5718
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?health_reporter_name: ::String, ?health_reporter_graceful_period: ::Integer, ?health_reporter_auto_recover: ::Integer, ?health_reporter_auto_dump: ::Integer, ?health_reporter_burst_period: ::Integer, ?index: ::Integer) -> void
|
|
5538
5719
|
def do_health_reporter_set(**args)
|
|
5539
5720
|
exchange_message(:"do", Messages::DoHealthReporterSetRequest, nil, args)
|
|
5540
5721
|
end
|
|
5541
5722
|
# Recover health reporter instances.
|
|
5723
|
+
#
|
|
5724
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5542
5725
|
#--
|
|
5543
5726
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?health_reporter_name: ::String, ?index: ::Integer) -> void
|
|
5544
5727
|
def do_health_reporter_recover(**args)
|
|
5545
5728
|
exchange_message(:"do", Messages::DoHealthReporterRecoverRequest, nil, args)
|
|
5546
5729
|
end
|
|
5547
5730
|
# Diagnose health reporter instances.
|
|
5731
|
+
#
|
|
5732
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5548
5733
|
#--
|
|
5549
5734
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?health_reporter_name: ::String, ?index: ::Integer) -> void
|
|
5550
5735
|
def do_health_reporter_diagnose(**args)
|
|
5551
5736
|
exchange_message(:"do", Messages::DoHealthReporterDiagnoseRequest, nil, args)
|
|
5552
5737
|
end
|
|
5553
5738
|
# Dump health reporter instances.
|
|
5739
|
+
#
|
|
5740
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5554
5741
|
#--
|
|
5555
5742
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?health_reporter_name: ::String, ?index: ::Integer) -> Enumerable[Messages::DumpHealthReporterDumpGetReply]
|
|
5556
5743
|
# | (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?health_reporter_name: ::String, ?index: ::Integer) { (Messages::DumpHealthReporterDumpGetReply) -> void } -> void
|
|
@@ -5558,12 +5745,16 @@ class Devlink < ::Nl::Family
|
|
|
5558
5745
|
exchange_message(:"dump", Messages::DumpHealthReporterDumpGetRequest, Messages::DumpHealthReporterDumpGetReply, args, &block)
|
|
5559
5746
|
end
|
|
5560
5747
|
# Clear dump of health reporter instances.
|
|
5748
|
+
#
|
|
5749
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5561
5750
|
#--
|
|
5562
5751
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?health_reporter_name: ::String, ?index: ::Integer) -> void
|
|
5563
5752
|
def do_health_reporter_dump_clear(**args)
|
|
5564
5753
|
exchange_message(:"do", Messages::DoHealthReporterDumpClearRequest, nil, args)
|
|
5565
5754
|
end
|
|
5566
5755
|
# Flash update devlink instances.
|
|
5756
|
+
#
|
|
5757
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5567
5758
|
#--
|
|
5568
5759
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?flash_update_file_name: ::String, ?flash_update_component: ::String, ?flash_update_overwrite_mask: ::Integer, ?index: ::Integer) -> void
|
|
5569
5760
|
def do_flash_update(**args)
|
|
@@ -5583,6 +5774,8 @@ class Devlink < ::Nl::Family
|
|
|
5583
5774
|
exchange_message(:"dump", Messages::DumpTrapGetRequest, Messages::DumpTrapGetReply, args, &block)
|
|
5584
5775
|
end
|
|
5585
5776
|
# Set trap instances.
|
|
5777
|
+
#
|
|
5778
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5586
5779
|
#--
|
|
5587
5780
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?trap_name: ::String, ?trap_action: ::Integer, ?index: ::Integer) -> void
|
|
5588
5781
|
def do_trap_set(**args)
|
|
@@ -5602,6 +5795,8 @@ class Devlink < ::Nl::Family
|
|
|
5602
5795
|
exchange_message(:"dump", Messages::DumpTrapGroupGetRequest, Messages::DumpTrapGroupGetReply, args, &block)
|
|
5603
5796
|
end
|
|
5604
5797
|
# Set trap group instances.
|
|
5798
|
+
#
|
|
5799
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5605
5800
|
#--
|
|
5606
5801
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?trap_action: ::Integer, ?trap_group_name: ::String, ?trap_policer_id: ::Integer, ?index: ::Integer) -> void
|
|
5607
5802
|
def do_trap_group_set(**args)
|
|
@@ -5621,12 +5816,16 @@ class Devlink < ::Nl::Family
|
|
|
5621
5816
|
exchange_message(:"dump", Messages::DumpTrapPolicerGetRequest, Messages::DumpTrapPolicerGetReply, args, &block)
|
|
5622
5817
|
end
|
|
5623
5818
|
# Get trap policer instances.
|
|
5819
|
+
#
|
|
5820
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5624
5821
|
#--
|
|
5625
5822
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?trap_policer_id: ::Integer, ?trap_policer_rate: ::Integer, ?trap_policer_burst: ::Integer, ?index: ::Integer) -> void
|
|
5626
5823
|
def do_trap_policer_set(**args)
|
|
5627
5824
|
exchange_message(:"do", Messages::DoTrapPolicerSetRequest, nil, args)
|
|
5628
5825
|
end
|
|
5629
5826
|
# Test health reporter instances.
|
|
5827
|
+
#
|
|
5828
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5630
5829
|
#--
|
|
5631
5830
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?health_reporter_name: ::String, ?index: ::Integer) -> void
|
|
5632
5831
|
def do_health_reporter_test(**args)
|
|
@@ -5646,18 +5845,24 @@ class Devlink < ::Nl::Family
|
|
|
5646
5845
|
exchange_message(:"dump", Messages::DumpRateGetRequest, Messages::DumpRateGetReply, args, &block)
|
|
5647
5846
|
end
|
|
5648
5847
|
# Set rate instances.
|
|
5848
|
+
#
|
|
5849
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5649
5850
|
#--
|
|
5650
5851
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?rate_tx_share: ::Integer, ?rate_tx_max: ::Integer, ?rate_node_name: ::String, ?rate_parent_node_name: ::String, ?rate_tx_priority: ::Integer, ?rate_tx_weight: ::Integer, ?rate_tc_bws: AttributeSets::DlRateTcBws, ?index: ::Integer) -> void
|
|
5651
5852
|
def do_rate_set(**args)
|
|
5652
5853
|
exchange_message(:"do", Messages::DoRateSetRequest, nil, args)
|
|
5653
5854
|
end
|
|
5654
5855
|
# Create rate instances.
|
|
5856
|
+
#
|
|
5857
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5655
5858
|
#--
|
|
5656
5859
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?rate_tx_share: ::Integer, ?rate_tx_max: ::Integer, ?rate_node_name: ::String, ?rate_parent_node_name: ::String, ?rate_tx_priority: ::Integer, ?rate_tx_weight: ::Integer, ?rate_tc_bws: AttributeSets::DlRateTcBws, ?index: ::Integer) -> void
|
|
5657
5860
|
def do_rate_new(**args)
|
|
5658
5861
|
exchange_message(:"do", Messages::DoRateNewRequest, nil, args)
|
|
5659
5862
|
end
|
|
5660
5863
|
# Delete rate instances.
|
|
5864
|
+
#
|
|
5865
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5661
5866
|
#--
|
|
5662
5867
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?rate_node_name: ::String, ?index: ::Integer) -> void
|
|
5663
5868
|
def do_rate_del(**args)
|
|
@@ -5677,6 +5882,8 @@ class Devlink < ::Nl::Family
|
|
|
5677
5882
|
exchange_message(:"dump", Messages::DumpLinecardGetRequest, Messages::DumpLinecardGetReply, args, &block)
|
|
5678
5883
|
end
|
|
5679
5884
|
# Set line card instances.
|
|
5885
|
+
#
|
|
5886
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5680
5887
|
#--
|
|
5681
5888
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?linecard_index: ::Integer, ?linecard_type: ::String, ?index: ::Integer) -> void
|
|
5682
5889
|
def do_linecard_set(**args)
|
|
@@ -5688,7 +5895,16 @@ class Devlink < ::Nl::Family
|
|
|
5688
5895
|
def do_selftests_get(**args)
|
|
5689
5896
|
exchange_message(:"do", Messages::DoSelftestsGetRequest, Messages::DoSelftestsGetReply, args)
|
|
5690
5897
|
end
|
|
5898
|
+
# Get device selftest instances.
|
|
5899
|
+
#--
|
|
5900
|
+
# @rbs () -> Enumerable[Messages::DumpSelftestsGetReply]
|
|
5901
|
+
# | () { (Messages::DumpSelftestsGetReply) -> void } -> void
|
|
5902
|
+
def dump_selftests_get(**args, &block)
|
|
5903
|
+
exchange_message(:"dump", Messages::DumpSelftestsGetRequest, Messages::DumpSelftestsGetReply, args, &block)
|
|
5904
|
+
end
|
|
5691
5905
|
# Run device selftest instances.
|
|
5906
|
+
#
|
|
5907
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5692
5908
|
#--
|
|
5693
5909
|
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?selftests: AttributeSets::DlSelftestId, ?index: ::Integer) -> void
|
|
5694
5910
|
def do_selftests_run(**args)
|
|
@@ -5700,5 +5916,540 @@ class Devlink < ::Nl::Family
|
|
|
5700
5916
|
def do_notify_filter_set(**args)
|
|
5701
5917
|
exchange_message(:"do", Messages::DoNotifyFilterSetRequest, nil, args)
|
|
5702
5918
|
end
|
|
5919
|
+
class AsyncOperations
|
|
5920
|
+
# :nodoc:
|
|
5921
|
+
def initialize(&exchange)
|
|
5922
|
+
@exchange = exchange
|
|
5923
|
+
end
|
|
5924
|
+
# Get devlink instances.
|
|
5925
|
+
#--
|
|
5926
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoGetReply]
|
|
5927
|
+
def do_get(**args)
|
|
5928
|
+
@exchange.call(:"do", Messages::DoGetRequest, Messages::DoGetReply, args)
|
|
5929
|
+
end
|
|
5930
|
+
# Get devlink instances.
|
|
5931
|
+
#--
|
|
5932
|
+
# @rbs () -> ::Nl::Async::Stream[Messages::DumpGetReply]
|
|
5933
|
+
def dump_get(**args)
|
|
5934
|
+
@exchange.call(:"dump", Messages::DumpGetRequest, Messages::DumpGetReply, args)
|
|
5935
|
+
end
|
|
5936
|
+
# Get devlink port instances.
|
|
5937
|
+
#--
|
|
5938
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoPortGetReply]
|
|
5939
|
+
def do_port_get(**args)
|
|
5940
|
+
@exchange.call(:"do", Messages::DoPortGetRequest, Messages::DoPortGetReply, args)
|
|
5941
|
+
end
|
|
5942
|
+
# Get devlink port instances.
|
|
5943
|
+
#--
|
|
5944
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpPortGetReply]
|
|
5945
|
+
def dump_port_get(**args)
|
|
5946
|
+
@exchange.call(:"dump", Messages::DumpPortGetRequest, Messages::DumpPortGetReply, args)
|
|
5947
|
+
end
|
|
5948
|
+
# Set devlink port instances.
|
|
5949
|
+
#
|
|
5950
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5951
|
+
#--
|
|
5952
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?port_type: ::Integer, ?port_function: AttributeSets::DlPortFunction, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
5953
|
+
def do_port_set(**args)
|
|
5954
|
+
@exchange.call(:"do", Messages::DoPortSetRequest, nil, args)
|
|
5955
|
+
end
|
|
5956
|
+
# Create devlink port instances.
|
|
5957
|
+
#
|
|
5958
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5959
|
+
#--
|
|
5960
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?port_flavour: ::Integer, ?port_pci_pf_number: ::Integer, ?port_controller_number: ::Integer, ?port_pci_sf_number: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoPortNewReply]
|
|
5961
|
+
def do_port_new(**args)
|
|
5962
|
+
@exchange.call(:"do", Messages::DoPortNewRequest, Messages::DoPortNewReply, args)
|
|
5963
|
+
end
|
|
5964
|
+
# Delete devlink port instances.
|
|
5965
|
+
#
|
|
5966
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5967
|
+
#--
|
|
5968
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
5969
|
+
def do_port_del(**args)
|
|
5970
|
+
@exchange.call(:"do", Messages::DoPortDelRequest, nil, args)
|
|
5971
|
+
end
|
|
5972
|
+
# Split devlink port instances.
|
|
5973
|
+
#
|
|
5974
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5975
|
+
#--
|
|
5976
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?port_split_count: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
5977
|
+
def do_port_split(**args)
|
|
5978
|
+
@exchange.call(:"do", Messages::DoPortSplitRequest, nil, args)
|
|
5979
|
+
end
|
|
5980
|
+
# Unplit devlink port instances.
|
|
5981
|
+
#
|
|
5982
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
5983
|
+
#--
|
|
5984
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
5985
|
+
def do_port_unsplit(**args)
|
|
5986
|
+
@exchange.call(:"do", Messages::DoPortUnsplitRequest, nil, args)
|
|
5987
|
+
end
|
|
5988
|
+
# Get shared buffer instances.
|
|
5989
|
+
#--
|
|
5990
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?sb_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoSbGetReply]
|
|
5991
|
+
def do_sb_get(**args)
|
|
5992
|
+
@exchange.call(:"do", Messages::DoSbGetRequest, Messages::DoSbGetReply, args)
|
|
5993
|
+
end
|
|
5994
|
+
# Get shared buffer instances.
|
|
5995
|
+
#--
|
|
5996
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpSbGetReply]
|
|
5997
|
+
def dump_sb_get(**args)
|
|
5998
|
+
@exchange.call(:"dump", Messages::DumpSbGetRequest, Messages::DumpSbGetReply, args)
|
|
5999
|
+
end
|
|
6000
|
+
# Get shared buffer pool instances.
|
|
6001
|
+
#--
|
|
6002
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?sb_index: ::Integer, ?sb_pool_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoSbPoolGetReply]
|
|
6003
|
+
def do_sb_pool_get(**args)
|
|
6004
|
+
@exchange.call(:"do", Messages::DoSbPoolGetRequest, Messages::DoSbPoolGetReply, args)
|
|
6005
|
+
end
|
|
6006
|
+
# Get shared buffer pool instances.
|
|
6007
|
+
#--
|
|
6008
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpSbPoolGetReply]
|
|
6009
|
+
def dump_sb_pool_get(**args)
|
|
6010
|
+
@exchange.call(:"dump", Messages::DumpSbPoolGetRequest, Messages::DumpSbPoolGetReply, args)
|
|
6011
|
+
end
|
|
6012
|
+
# Set shared buffer pool instances.
|
|
6013
|
+
#
|
|
6014
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6015
|
+
#--
|
|
6016
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?sb_index: ::Integer, ?sb_pool_index: ::Integer, ?sb_pool_size: ::Integer, ?sb_pool_threshold_type: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6017
|
+
def do_sb_pool_set(**args)
|
|
6018
|
+
@exchange.call(:"do", Messages::DoSbPoolSetRequest, nil, args)
|
|
6019
|
+
end
|
|
6020
|
+
# Get shared buffer port-pool combinations and threshold.
|
|
6021
|
+
#--
|
|
6022
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?sb_index: ::Integer, ?sb_pool_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoSbPortPoolGetReply]
|
|
6023
|
+
def do_sb_port_pool_get(**args)
|
|
6024
|
+
@exchange.call(:"do", Messages::DoSbPortPoolGetRequest, Messages::DoSbPortPoolGetReply, args)
|
|
6025
|
+
end
|
|
6026
|
+
# Get shared buffer port-pool combinations and threshold.
|
|
6027
|
+
#--
|
|
6028
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpSbPortPoolGetReply]
|
|
6029
|
+
def dump_sb_port_pool_get(**args)
|
|
6030
|
+
@exchange.call(:"dump", Messages::DumpSbPortPoolGetRequest, Messages::DumpSbPortPoolGetReply, args)
|
|
6031
|
+
end
|
|
6032
|
+
# Set shared buffer port-pool combinations and threshold.
|
|
6033
|
+
#
|
|
6034
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6035
|
+
#--
|
|
6036
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?sb_index: ::Integer, ?sb_pool_index: ::Integer, ?sb_threshold: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6037
|
+
def do_sb_port_pool_set(**args)
|
|
6038
|
+
@exchange.call(:"do", Messages::DoSbPortPoolSetRequest, nil, args)
|
|
6039
|
+
end
|
|
6040
|
+
# Get shared buffer port-TC to pool bindings and threshold.
|
|
6041
|
+
#--
|
|
6042
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?sb_index: ::Integer, ?sb_pool_type: ::Integer, ?sb_tc_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoSbTcPoolBindGetReply]
|
|
6043
|
+
def do_sb_tc_pool_bind_get(**args)
|
|
6044
|
+
@exchange.call(:"do", Messages::DoSbTcPoolBindGetRequest, Messages::DoSbTcPoolBindGetReply, args)
|
|
6045
|
+
end
|
|
6046
|
+
# Get shared buffer port-TC to pool bindings and threshold.
|
|
6047
|
+
#--
|
|
6048
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpSbTcPoolBindGetReply]
|
|
6049
|
+
def dump_sb_tc_pool_bind_get(**args)
|
|
6050
|
+
@exchange.call(:"dump", Messages::DumpSbTcPoolBindGetRequest, Messages::DumpSbTcPoolBindGetReply, args)
|
|
6051
|
+
end
|
|
6052
|
+
# Set shared buffer port-TC to pool bindings and threshold.
|
|
6053
|
+
#
|
|
6054
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6055
|
+
#--
|
|
6056
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?sb_index: ::Integer, ?sb_pool_index: ::Integer, ?sb_pool_type: ::Integer, ?sb_threshold: ::Integer, ?sb_tc_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6057
|
+
def do_sb_tc_pool_bind_set(**args)
|
|
6058
|
+
@exchange.call(:"do", Messages::DoSbTcPoolBindSetRequest, nil, args)
|
|
6059
|
+
end
|
|
6060
|
+
# Take occupancy snapshot of shared buffer.
|
|
6061
|
+
#
|
|
6062
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6063
|
+
#--
|
|
6064
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?sb_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6065
|
+
def do_sb_occ_snapshot(**args)
|
|
6066
|
+
@exchange.call(:"do", Messages::DoSbOccSnapshotRequest, nil, args)
|
|
6067
|
+
end
|
|
6068
|
+
# Clear occupancy watermarks of shared buffer.
|
|
6069
|
+
#
|
|
6070
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6071
|
+
#--
|
|
6072
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?sb_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6073
|
+
def do_sb_occ_max_clear(**args)
|
|
6074
|
+
@exchange.call(:"do", Messages::DoSbOccMaxClearRequest, nil, args)
|
|
6075
|
+
end
|
|
6076
|
+
# Get eswitch attributes.
|
|
6077
|
+
#
|
|
6078
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6079
|
+
#--
|
|
6080
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoEswitchGetReply]
|
|
6081
|
+
def do_eswitch_get(**args)
|
|
6082
|
+
@exchange.call(:"do", Messages::DoEswitchGetRequest, Messages::DoEswitchGetReply, args)
|
|
6083
|
+
end
|
|
6084
|
+
# Set eswitch attributes.
|
|
6085
|
+
#
|
|
6086
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6087
|
+
#--
|
|
6088
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?eswitch_mode: ::Integer, ?eswitch_inline_mode: ::Integer, ?eswitch_encap_mode: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6089
|
+
def do_eswitch_set(**args)
|
|
6090
|
+
@exchange.call(:"do", Messages::DoEswitchSetRequest, nil, args)
|
|
6091
|
+
end
|
|
6092
|
+
# Get dpipe table attributes.
|
|
6093
|
+
#--
|
|
6094
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?dpipe_table_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoDpipeTableGetReply]
|
|
6095
|
+
def do_dpipe_table_get(**args)
|
|
6096
|
+
@exchange.call(:"do", Messages::DoDpipeTableGetRequest, Messages::DoDpipeTableGetReply, args)
|
|
6097
|
+
end
|
|
6098
|
+
# Get dpipe entries attributes.
|
|
6099
|
+
#--
|
|
6100
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?dpipe_table_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoDpipeEntriesGetReply]
|
|
6101
|
+
def do_dpipe_entries_get(**args)
|
|
6102
|
+
@exchange.call(:"do", Messages::DoDpipeEntriesGetRequest, Messages::DoDpipeEntriesGetReply, args)
|
|
6103
|
+
end
|
|
6104
|
+
# Get dpipe headers attributes.
|
|
6105
|
+
#--
|
|
6106
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoDpipeHeadersGetReply]
|
|
6107
|
+
def do_dpipe_headers_get(**args)
|
|
6108
|
+
@exchange.call(:"do", Messages::DoDpipeHeadersGetRequest, Messages::DoDpipeHeadersGetReply, args)
|
|
6109
|
+
end
|
|
6110
|
+
# Set dpipe counter attributes.
|
|
6111
|
+
#
|
|
6112
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6113
|
+
#--
|
|
6114
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?dpipe_table_name: ::String, ?dpipe_table_counters_enabled: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6115
|
+
def do_dpipe_table_counters_set(**args)
|
|
6116
|
+
@exchange.call(:"do", Messages::DoDpipeTableCountersSetRequest, nil, args)
|
|
6117
|
+
end
|
|
6118
|
+
# Set resource attributes.
|
|
6119
|
+
#
|
|
6120
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6121
|
+
#--
|
|
6122
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?resource_id: ::Integer, ?resource_size: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6123
|
+
def do_resource_set(**args)
|
|
6124
|
+
@exchange.call(:"do", Messages::DoResourceSetRequest, nil, args)
|
|
6125
|
+
end
|
|
6126
|
+
# Get resource attributes.
|
|
6127
|
+
#--
|
|
6128
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoResourceDumpReply]
|
|
6129
|
+
def do_resource_dump(**args)
|
|
6130
|
+
@exchange.call(:"do", Messages::DoResourceDumpRequest, Messages::DoResourceDumpReply, args)
|
|
6131
|
+
end
|
|
6132
|
+
# Get resource attributes.
|
|
6133
|
+
#--
|
|
6134
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer, ?resource_scope_mask: ::Integer) -> ::Nl::Async::Stream[Messages::DumpResourceDumpReply]
|
|
6135
|
+
def dump_resource_dump(**args)
|
|
6136
|
+
@exchange.call(:"dump", Messages::DumpResourceDumpRequest, Messages::DumpResourceDumpReply, args)
|
|
6137
|
+
end
|
|
6138
|
+
# Reload devlink.
|
|
6139
|
+
#
|
|
6140
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6141
|
+
#--
|
|
6142
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?netns_fd: ::Integer, ?netns_pid: ::Integer, ?netns_id: ::Integer, ?reload_action: ::Integer, ?reload_limits: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoReloadReply]
|
|
6143
|
+
def do_reload(**args)
|
|
6144
|
+
@exchange.call(:"do", Messages::DoReloadRequest, Messages::DoReloadReply, args)
|
|
6145
|
+
end
|
|
6146
|
+
# Get param instances.
|
|
6147
|
+
#--
|
|
6148
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?param_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoParamGetReply]
|
|
6149
|
+
def do_param_get(**args)
|
|
6150
|
+
@exchange.call(:"do", Messages::DoParamGetRequest, Messages::DoParamGetReply, args)
|
|
6151
|
+
end
|
|
6152
|
+
# Get param instances.
|
|
6153
|
+
#--
|
|
6154
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpParamGetReply]
|
|
6155
|
+
def dump_param_get(**args)
|
|
6156
|
+
@exchange.call(:"dump", Messages::DumpParamGetRequest, Messages::DumpParamGetReply, args)
|
|
6157
|
+
end
|
|
6158
|
+
# Set param instances.
|
|
6159
|
+
#
|
|
6160
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6161
|
+
#--
|
|
6162
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?param_name: ::String, ?param_type: ::Integer, ?param_value_cmode: ::Integer, ?param_reset_default: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6163
|
+
def do_param_set(**args)
|
|
6164
|
+
@exchange.call(:"do", Messages::DoParamSetRequest, nil, args)
|
|
6165
|
+
end
|
|
6166
|
+
# Get region instances.
|
|
6167
|
+
#--
|
|
6168
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?region_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoRegionGetReply]
|
|
6169
|
+
def do_region_get(**args)
|
|
6170
|
+
@exchange.call(:"do", Messages::DoRegionGetRequest, Messages::DoRegionGetReply, args)
|
|
6171
|
+
end
|
|
6172
|
+
# Get region instances.
|
|
6173
|
+
#--
|
|
6174
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpRegionGetReply]
|
|
6175
|
+
def dump_region_get(**args)
|
|
6176
|
+
@exchange.call(:"dump", Messages::DumpRegionGetRequest, Messages::DumpRegionGetReply, args)
|
|
6177
|
+
end
|
|
6178
|
+
# Create region snapshot.
|
|
6179
|
+
#
|
|
6180
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6181
|
+
#--
|
|
6182
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?region_name: ::String, ?region_snapshot_id: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoRegionNewReply]
|
|
6183
|
+
def do_region_new(**args)
|
|
6184
|
+
@exchange.call(:"do", Messages::DoRegionNewRequest, Messages::DoRegionNewReply, args)
|
|
6185
|
+
end
|
|
6186
|
+
# Delete region snapshot.
|
|
6187
|
+
#
|
|
6188
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6189
|
+
#--
|
|
6190
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?region_name: ::String, ?region_snapshot_id: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6191
|
+
def do_region_del(**args)
|
|
6192
|
+
@exchange.call(:"do", Messages::DoRegionDelRequest, nil, args)
|
|
6193
|
+
end
|
|
6194
|
+
# Read region data.
|
|
6195
|
+
#
|
|
6196
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6197
|
+
#--
|
|
6198
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?region_name: ::String, ?region_snapshot_id: ::Integer, ?region_chunk_addr: ::Integer, ?region_chunk_len: ::Integer, ?region_direct: ::Integer, ?index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpRegionReadReply]
|
|
6199
|
+
def dump_region_read(**args)
|
|
6200
|
+
@exchange.call(:"dump", Messages::DumpRegionReadRequest, Messages::DumpRegionReadReply, args)
|
|
6201
|
+
end
|
|
6202
|
+
# Get port param instances.
|
|
6203
|
+
#--
|
|
6204
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoPortParamGetReply]
|
|
6205
|
+
def do_port_param_get(**args)
|
|
6206
|
+
@exchange.call(:"do", Messages::DoPortParamGetRequest, Messages::DoPortParamGetReply, args)
|
|
6207
|
+
end
|
|
6208
|
+
# Get port param instances.
|
|
6209
|
+
#--
|
|
6210
|
+
# @rbs () -> ::Nl::Async::Stream[Messages::DumpPortParamGetReply]
|
|
6211
|
+
def dump_port_param_get(**args)
|
|
6212
|
+
@exchange.call(:"dump", Messages::DumpPortParamGetRequest, Messages::DumpPortParamGetReply, args)
|
|
6213
|
+
end
|
|
6214
|
+
# Set port param instances.
|
|
6215
|
+
#
|
|
6216
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6217
|
+
#--
|
|
6218
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6219
|
+
def do_port_param_set(**args)
|
|
6220
|
+
@exchange.call(:"do", Messages::DoPortParamSetRequest, nil, args)
|
|
6221
|
+
end
|
|
6222
|
+
# Get device information, like driver name, hardware and firmware versions
|
|
6223
|
+
# etc.
|
|
6224
|
+
#--
|
|
6225
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoInfoGetReply]
|
|
6226
|
+
def do_info_get(**args)
|
|
6227
|
+
@exchange.call(:"do", Messages::DoInfoGetRequest, Messages::DoInfoGetReply, args)
|
|
6228
|
+
end
|
|
6229
|
+
# Get device information, like driver name, hardware and firmware versions
|
|
6230
|
+
# etc.
|
|
6231
|
+
#--
|
|
6232
|
+
# @rbs () -> ::Nl::Async::Stream[Messages::DumpInfoGetReply]
|
|
6233
|
+
def dump_info_get(**args)
|
|
6234
|
+
@exchange.call(:"dump", Messages::DumpInfoGetRequest, Messages::DumpInfoGetReply, args)
|
|
6235
|
+
end
|
|
6236
|
+
# Get health reporter instances.
|
|
6237
|
+
#--
|
|
6238
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?health_reporter_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoHealthReporterGetReply]
|
|
6239
|
+
def do_health_reporter_get(**args)
|
|
6240
|
+
@exchange.call(:"do", Messages::DoHealthReporterGetRequest, Messages::DoHealthReporterGetReply, args)
|
|
6241
|
+
end
|
|
6242
|
+
# Get health reporter instances.
|
|
6243
|
+
#--
|
|
6244
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpHealthReporterGetReply]
|
|
6245
|
+
def dump_health_reporter_get(**args)
|
|
6246
|
+
@exchange.call(:"dump", Messages::DumpHealthReporterGetRequest, Messages::DumpHealthReporterGetReply, args)
|
|
6247
|
+
end
|
|
6248
|
+
# Set health reporter instances.
|
|
6249
|
+
#
|
|
6250
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6251
|
+
#--
|
|
6252
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?health_reporter_name: ::String, ?health_reporter_graceful_period: ::Integer, ?health_reporter_auto_recover: ::Integer, ?health_reporter_auto_dump: ::Integer, ?health_reporter_burst_period: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6253
|
+
def do_health_reporter_set(**args)
|
|
6254
|
+
@exchange.call(:"do", Messages::DoHealthReporterSetRequest, nil, args)
|
|
6255
|
+
end
|
|
6256
|
+
# Recover health reporter instances.
|
|
6257
|
+
#
|
|
6258
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6259
|
+
#--
|
|
6260
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?health_reporter_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6261
|
+
def do_health_reporter_recover(**args)
|
|
6262
|
+
@exchange.call(:"do", Messages::DoHealthReporterRecoverRequest, nil, args)
|
|
6263
|
+
end
|
|
6264
|
+
# Diagnose health reporter instances.
|
|
6265
|
+
#
|
|
6266
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6267
|
+
#--
|
|
6268
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?health_reporter_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6269
|
+
def do_health_reporter_diagnose(**args)
|
|
6270
|
+
@exchange.call(:"do", Messages::DoHealthReporterDiagnoseRequest, nil, args)
|
|
6271
|
+
end
|
|
6272
|
+
# Dump health reporter instances.
|
|
6273
|
+
#
|
|
6274
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6275
|
+
#--
|
|
6276
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?health_reporter_name: ::String, ?index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpHealthReporterDumpGetReply]
|
|
6277
|
+
def dump_health_reporter_dump_get(**args)
|
|
6278
|
+
@exchange.call(:"dump", Messages::DumpHealthReporterDumpGetRequest, Messages::DumpHealthReporterDumpGetReply, args)
|
|
6279
|
+
end
|
|
6280
|
+
# Clear dump of health reporter instances.
|
|
6281
|
+
#
|
|
6282
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6283
|
+
#--
|
|
6284
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?health_reporter_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6285
|
+
def do_health_reporter_dump_clear(**args)
|
|
6286
|
+
@exchange.call(:"do", Messages::DoHealthReporterDumpClearRequest, nil, args)
|
|
6287
|
+
end
|
|
6288
|
+
# Flash update devlink instances.
|
|
6289
|
+
#
|
|
6290
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6291
|
+
#--
|
|
6292
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?flash_update_file_name: ::String, ?flash_update_component: ::String, ?flash_update_overwrite_mask: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6293
|
+
def do_flash_update(**args)
|
|
6294
|
+
@exchange.call(:"do", Messages::DoFlashUpdateRequest, nil, args)
|
|
6295
|
+
end
|
|
6296
|
+
# Get trap instances.
|
|
6297
|
+
#--
|
|
6298
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?trap_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoTrapGetReply]
|
|
6299
|
+
def do_trap_get(**args)
|
|
6300
|
+
@exchange.call(:"do", Messages::DoTrapGetRequest, Messages::DoTrapGetReply, args)
|
|
6301
|
+
end
|
|
6302
|
+
# Get trap instances.
|
|
6303
|
+
#--
|
|
6304
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpTrapGetReply]
|
|
6305
|
+
def dump_trap_get(**args)
|
|
6306
|
+
@exchange.call(:"dump", Messages::DumpTrapGetRequest, Messages::DumpTrapGetReply, args)
|
|
6307
|
+
end
|
|
6308
|
+
# Set trap instances.
|
|
6309
|
+
#
|
|
6310
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6311
|
+
#--
|
|
6312
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?trap_name: ::String, ?trap_action: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6313
|
+
def do_trap_set(**args)
|
|
6314
|
+
@exchange.call(:"do", Messages::DoTrapSetRequest, nil, args)
|
|
6315
|
+
end
|
|
6316
|
+
# Get trap group instances.
|
|
6317
|
+
#--
|
|
6318
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?trap_group_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoTrapGroupGetReply]
|
|
6319
|
+
def do_trap_group_get(**args)
|
|
6320
|
+
@exchange.call(:"do", Messages::DoTrapGroupGetRequest, Messages::DoTrapGroupGetReply, args)
|
|
6321
|
+
end
|
|
6322
|
+
# Get trap group instances.
|
|
6323
|
+
#--
|
|
6324
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpTrapGroupGetReply]
|
|
6325
|
+
def dump_trap_group_get(**args)
|
|
6326
|
+
@exchange.call(:"dump", Messages::DumpTrapGroupGetRequest, Messages::DumpTrapGroupGetReply, args)
|
|
6327
|
+
end
|
|
6328
|
+
# Set trap group instances.
|
|
6329
|
+
#
|
|
6330
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6331
|
+
#--
|
|
6332
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?trap_action: ::Integer, ?trap_group_name: ::String, ?trap_policer_id: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6333
|
+
def do_trap_group_set(**args)
|
|
6334
|
+
@exchange.call(:"do", Messages::DoTrapGroupSetRequest, nil, args)
|
|
6335
|
+
end
|
|
6336
|
+
# Get trap policer instances.
|
|
6337
|
+
#--
|
|
6338
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?trap_policer_id: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoTrapPolicerGetReply]
|
|
6339
|
+
def do_trap_policer_get(**args)
|
|
6340
|
+
@exchange.call(:"do", Messages::DoTrapPolicerGetRequest, Messages::DoTrapPolicerGetReply, args)
|
|
6341
|
+
end
|
|
6342
|
+
# Get trap policer instances.
|
|
6343
|
+
#--
|
|
6344
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpTrapPolicerGetReply]
|
|
6345
|
+
def dump_trap_policer_get(**args)
|
|
6346
|
+
@exchange.call(:"dump", Messages::DumpTrapPolicerGetRequest, Messages::DumpTrapPolicerGetReply, args)
|
|
6347
|
+
end
|
|
6348
|
+
# Get trap policer instances.
|
|
6349
|
+
#
|
|
6350
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6351
|
+
#--
|
|
6352
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?trap_policer_id: ::Integer, ?trap_policer_rate: ::Integer, ?trap_policer_burst: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6353
|
+
def do_trap_policer_set(**args)
|
|
6354
|
+
@exchange.call(:"do", Messages::DoTrapPolicerSetRequest, nil, args)
|
|
6355
|
+
end
|
|
6356
|
+
# Test health reporter instances.
|
|
6357
|
+
#
|
|
6358
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6359
|
+
#--
|
|
6360
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?health_reporter_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6361
|
+
def do_health_reporter_test(**args)
|
|
6362
|
+
@exchange.call(:"do", Messages::DoHealthReporterTestRequest, nil, args)
|
|
6363
|
+
end
|
|
6364
|
+
# Get rate instances.
|
|
6365
|
+
#--
|
|
6366
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?rate_node_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoRateGetReply]
|
|
6367
|
+
def do_rate_get(**args)
|
|
6368
|
+
@exchange.call(:"do", Messages::DoRateGetRequest, Messages::DoRateGetReply, args)
|
|
6369
|
+
end
|
|
6370
|
+
# Get rate instances.
|
|
6371
|
+
#--
|
|
6372
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpRateGetReply]
|
|
6373
|
+
def dump_rate_get(**args)
|
|
6374
|
+
@exchange.call(:"dump", Messages::DumpRateGetRequest, Messages::DumpRateGetReply, args)
|
|
6375
|
+
end
|
|
6376
|
+
# Set rate instances.
|
|
6377
|
+
#
|
|
6378
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6379
|
+
#--
|
|
6380
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?rate_tx_share: ::Integer, ?rate_tx_max: ::Integer, ?rate_node_name: ::String, ?rate_parent_node_name: ::String, ?rate_tx_priority: ::Integer, ?rate_tx_weight: ::Integer, ?rate_tc_bws: AttributeSets::DlRateTcBws, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6381
|
+
def do_rate_set(**args)
|
|
6382
|
+
@exchange.call(:"do", Messages::DoRateSetRequest, nil, args)
|
|
6383
|
+
end
|
|
6384
|
+
# Create rate instances.
|
|
6385
|
+
#
|
|
6386
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6387
|
+
#--
|
|
6388
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?rate_tx_share: ::Integer, ?rate_tx_max: ::Integer, ?rate_node_name: ::String, ?rate_parent_node_name: ::String, ?rate_tx_priority: ::Integer, ?rate_tx_weight: ::Integer, ?rate_tc_bws: AttributeSets::DlRateTcBws, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6389
|
+
def do_rate_new(**args)
|
|
6390
|
+
@exchange.call(:"do", Messages::DoRateNewRequest, nil, args)
|
|
6391
|
+
end
|
|
6392
|
+
# Delete rate instances.
|
|
6393
|
+
#
|
|
6394
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6395
|
+
#--
|
|
6396
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?rate_node_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6397
|
+
def do_rate_del(**args)
|
|
6398
|
+
@exchange.call(:"do", Messages::DoRateDelRequest, nil, args)
|
|
6399
|
+
end
|
|
6400
|
+
# Get line card instances.
|
|
6401
|
+
#--
|
|
6402
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?linecard_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoLinecardGetReply]
|
|
6403
|
+
def do_linecard_get(**args)
|
|
6404
|
+
@exchange.call(:"do", Messages::DoLinecardGetRequest, Messages::DoLinecardGetReply, args)
|
|
6405
|
+
end
|
|
6406
|
+
# Get line card instances.
|
|
6407
|
+
#--
|
|
6408
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Stream[Messages::DumpLinecardGetReply]
|
|
6409
|
+
def dump_linecard_get(**args)
|
|
6410
|
+
@exchange.call(:"dump", Messages::DumpLinecardGetRequest, Messages::DumpLinecardGetReply, args)
|
|
6411
|
+
end
|
|
6412
|
+
# Set line card instances.
|
|
6413
|
+
#
|
|
6414
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6415
|
+
#--
|
|
6416
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?linecard_index: ::Integer, ?linecard_type: ::String, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6417
|
+
def do_linecard_set(**args)
|
|
6418
|
+
@exchange.call(:"do", Messages::DoLinecardSetRequest, nil, args)
|
|
6419
|
+
end
|
|
6420
|
+
# Get device selftest instances.
|
|
6421
|
+
#--
|
|
6422
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?index: ::Integer) -> ::Nl::Async::Future[Messages::DoSelftestsGetReply]
|
|
6423
|
+
def do_selftests_get(**args)
|
|
6424
|
+
@exchange.call(:"do", Messages::DoSelftestsGetRequest, Messages::DoSelftestsGetReply, args)
|
|
6425
|
+
end
|
|
6426
|
+
# Get device selftest instances.
|
|
6427
|
+
#--
|
|
6428
|
+
# @rbs () -> ::Nl::Async::Stream[Messages::DumpSelftestsGetReply]
|
|
6429
|
+
def dump_selftests_get(**args)
|
|
6430
|
+
@exchange.call(:"dump", Messages::DumpSelftestsGetRequest, Messages::DumpSelftestsGetReply, args)
|
|
6431
|
+
end
|
|
6432
|
+
# Run device selftest instances.
|
|
6433
|
+
#
|
|
6434
|
+
# Requires CAP_NET_ADMIN in the initial user namespace.
|
|
6435
|
+
#--
|
|
6436
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?selftests: AttributeSets::DlSelftestId, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6437
|
+
def do_selftests_run(**args)
|
|
6438
|
+
@exchange.call(:"do", Messages::DoSelftestsRunRequest, nil, args)
|
|
6439
|
+
end
|
|
6440
|
+
# Set notification messages socket filter.
|
|
6441
|
+
#--
|
|
6442
|
+
# @rbs (?bus_name: ::String, ?dev_name: ::String, ?port_index: ::Integer, ?index: ::Integer) -> ::Nl::Async::Future[void]
|
|
6443
|
+
def do_notify_filter_set(**args)
|
|
6444
|
+
@exchange.call(:"do", Messages::DoNotifyFilterSetRequest, nil, args)
|
|
6445
|
+
end
|
|
6446
|
+
end
|
|
6447
|
+
# Returns the asynchronous operation facade for this family.
|
|
6448
|
+
#--
|
|
6449
|
+
# @rbs (?stream_capacity: ::Integer?) -> AsyncOperations
|
|
6450
|
+
def async(stream_capacity: nil)
|
|
6451
|
+
return @async_operations ||= build_async_facade(AsyncOperations) if stream_capacity.nil?
|
|
6452
|
+
build_async_facade(AsyncOperations, stream_capacity:)
|
|
6453
|
+
end
|
|
5703
6454
|
end
|
|
5704
6455
|
end; end
|