aboutsummaryrefslogtreecommitdiffstats
path: root/examples/bin_api/interface.api.json
blob: 7636e182470745bf42401641ea8283c76fe5e528 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
{
    "types" : [
        ["vlib_counter",
            ["u64", "packets"],
            ["u64", "bytes"],
            {"crc" : "0x62db67f0"}
        ],
        ["vnet_combined_counter",
            ["u32", "sw_if_index"],
            ["u64", "rx_packets"],
            ["u64", "rx_bytes"],
            ["u64", "tx_packets"],
            ["u64", "tx_bytes"],
            {"crc" : "0x0f3c951b"}
        ],
        ["vnet_simple_counter",
            ["u32", "sw_if_index"],
            ["u64", "drop"],
            ["u64", "punt"],
            ["u64", "rx_ip4"],
            ["u64", "rx_ip6"],
            ["u64", "rx_no_buffer"],
            ["u64", "rx_miss"],
            ["u64", "rx_error"],
            ["u64", "tx_error"],
            ["u64", "rx_mpls"],
            {"crc" : "0x84763938"}
        ]
    ],
    "messages" : [
        ["sw_interface_set_flags",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u32", "sw_if_index"],
            ["u8", "admin_up_down"],
            {"crc" : "0xf890584a"}
        ],
        ["sw_interface_set_flags_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            {"crc" : "0xdfbf3afa"}
        ],
        ["sw_interface_set_mtu",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u32", "sw_if_index"],
            ["u16", "mtu"],
            {"crc" : "0x535dab1d"}
        ],
        ["sw_interface_set_mtu_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            {"crc" : "0x0cc22552"}
        ],
        ["sw_interface_event",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "pid"],
            ["u32", "sw_if_index"],
            ["u8", "admin_up_down"],
            ["u8", "link_up_down"],
            ["u8", "deleted"],
            {"crc" : "0xbf7f46f2"}
        ],
        ["want_interface_events",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u32", "enable_disable"],
            ["u32", "pid"],
            {"crc" : "0xa0cbf57e"}
        ],
        ["want_interface_events_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            {"crc" : "0x33788c73"}
        ],
        ["sw_interface_details",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["u32", "sw_if_index"],
            ["u32", "sup_sw_if_index"],
            ["u32", "l2_address_length"],
            ["u8", "l2_address", 8],
            ["u8", "interface_name", 64],
            ["u8", "admin_up_down"],
            ["u8", "link_up_down"],
            ["u8", "link_duplex"],
            ["u8", "link_speed"],
            ["u16", "link_mtu"],
            ["u32", "sub_id"],
            ["u8", "sub_dot1ad"],
            ["u8", "sub_dot1ah"],
            ["u8", "sub_number_of_tags"],
            ["u16", "sub_outer_vlan_id"],
            ["u16", "sub_inner_vlan_id"],
            ["u8", "sub_exact_match"],
            ["u8", "sub_default"],
            ["u8", "sub_outer_vlan_id_any"],
            ["u8", "sub_inner_vlan_id_any"],
            ["u32", "vtr_op"],
            ["u32", "vtr_push_dot1q"],
            ["u32", "vtr_tag1"],
            ["u32", "vtr_tag2"],
            ["u8", "tag", 64],
            ["u16", "outer_tag"],
            ["u8", "b_dmac", 6],
            ["u8", "b_smac", 6],
            ["u16", "b_vlanid"],
            ["u32", "i_sid"],
            {"crc" : "0xe2d855bb"}
        ],
        ["sw_interface_dump",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u8", "name_filter_valid"],
            ["u8", "name_filter", 49],
            {"crc" : "0x9a2f9d4d"}
        ],
        ["sw_interface_add_del_address",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u32", "sw_if_index"],
            ["u8", "is_add"],
            ["u8", "is_ipv6"],
            ["u8", "del_all"],
            ["u8", "address_length"],
            ["u8", "address", 16],
            {"crc" : "0x4e24d2df"}
        ],
        ["sw_interface_add_del_address_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            {"crc" : "0xabe29452"}
        ],
        ["sw_interface_set_table",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u32", "sw_if_index"],
            ["u8", "is_ipv6"],
            ["u32", "vrf_id"],
            {"crc" : "0xa94df510"}
        ],
        ["sw_interface_set_table_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            {"crc" : "0x99df273c"}
        ],
        ["sw_interface_get_table",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u32", "sw_if_index"],
            ["u8", "is_ipv6"],
            {"crc" : "0xf5a1d557"}
        ],
        ["sw_interface_get_table_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            ["u32", "vrf_id"],
            {"crc" : "0xab44111d"}
        ],
        ["vnet_interface_simple_counters",
            ["u16", "_vl_msg_id"],
            ["u8", "vnet_counter_type"],
            ["u32", "first_sw_if_index"],
            ["u32", "count"],
            ["u64", "data", 0, "count"],
            {"crc" : "0x302f0983"}
        ],
        ["vnet_interface_combined_counters",
            ["u16", "_vl_msg_id"],
            ["u8", "vnet_counter_type"],
            ["u32", "first_sw_if_index"],
            ["u32", "count"],
            ["vl_api_vlib_counter_t", "data", 0, "count"],
            {"crc" : "0xd82426e3"}
        ],
        ["vnet_per_interface_simple_counters",
            ["u16", "_vl_msg_id"],
            ["u32", "count"],
            ["u32", "timestamp"],
            ["vl_api_vnet_simple_counter_t", "data", 0, "count"],
            {"crc" : "0x7df05633"}
        ],
        ["vnet_per_interface_combined_counters",
            ["u16", "_vl_msg_id"],
            ["u32", "count"],
            ["u32", "timestamp"],
            ["vl_api_vnet_combined_counter_t", "data", 0, "count"],
            {"crc" : "0xbf35dfbe"}
        ],
        ["sw_interface_set_unnumbered",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u32", "sw_if_index"],
            ["u32", "unnumbered_sw_if_index"],
            ["u8", "is_add"],
            {"crc" : "0xee0047b0"}
        ],
        ["sw_interface_set_unnumbered_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            {"crc" : "0x5b2275e1"}
        ],
        ["sw_interface_clear_stats",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u32", "sw_if_index"],
            {"crc" : "0x9600fd50"}
        ],
        ["sw_interface_clear_stats_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            {"crc" : "0x21f50dd9"}
        ],
        ["sw_interface_tag_add_del",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u8", "is_add"],
            ["u32", "sw_if_index"],
            ["u8", "tag", 64],
            {"crc" : "0x50ae8d92"}
        ],
        ["sw_interface_tag_add_del_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            {"crc" : "0x761cbcb0"}
        ],
        ["sw_interface_set_mac_address",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u32", "sw_if_index"],
            ["u8", "mac_address", 6],
            {"crc" : "0xe4f22660"}
        ],
        ["sw_interface_set_mac_address_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            {"crc" : "0x9dc8a452"}
        ],
        ["sw_interface_set_rx_mode",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u32", "sw_if_index"],
            ["u8", "queue_id_valid"],
            ["u32", "queue_id"],
            ["u8", "mode"],
            {"crc" : "0xc5aa8dda"}
        ],
        ["sw_interface_set_rx_mode_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            {"crc" : "0x5fc3e318"}
        ],
        ["interface_name_renumber",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u32", "sw_if_index"],
            ["u32", "new_show_dev_instance"],
            {"crc" : "0x11b7bcec"}
        ],
        ["interface_name_renumber_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            {"crc" : "0x31594963"}
        ],
        ["create_subif",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u32", "sw_if_index"],
            ["u32", "sub_id"],
            ["u8", "no_tags"],
            ["u8", "one_tag"],
            ["u8", "two_tags"],
            ["u8", "dot1ad"],
            ["u8", "exact_match"],
            ["u8", "default_sub"],
            ["u8", "outer_vlan_id_any"],
            ["u8", "inner_vlan_id_any"],
            ["u16", "outer_vlan_id"],
            ["u16", "inner_vlan_id"],
            {"crc" : "0x150e6757"}
        ],
        ["create_subif_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            ["u32", "sw_if_index"],
            {"crc" : "0x92272bcb"}
        ],
        ["create_vlan_subif",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u32", "sw_if_index"],
            ["u32", "vlan_id"],
            {"crc" : "0xaf9ae1e9"}
        ],
        ["create_vlan_subif_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            ["u32", "sw_if_index"],
            {"crc" : "0x8f36b888"}
        ],
        ["delete_subif",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u32", "sw_if_index"],
            {"crc" : "0x6038f848"}
        ],
        ["delete_subif_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            {"crc" : "0x9d6015dc"}
        ],
        ["create_loopback",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u8", "mac_address", 6],
            {"crc" : "0xb2602de5"}
        ],
        ["create_loopback_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            ["u32", "sw_if_index"],
            {"crc" : "0x9520f804"}
        ],
        ["create_loopback_instance",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u8", "mac_address", 6],
            ["u8", "is_specified"],
            ["u32", "user_instance"],
            {"crc" : "0x967694f1"}
        ],
        ["create_loopback_instance_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            ["u32", "sw_if_index"],
            {"crc" : "0xd52c63b6"}
        ],
        ["delete_loopback",
            ["u16", "_vl_msg_id"],
            ["u32", "client_index"],
            ["u32", "context"],
            ["u32", "sw_if_index"],
            {"crc" : "0xded428b0"}
        ],
        ["delete_loopback_reply",
            ["u16", "_vl_msg_id"],
            ["u32", "context"],
            ["i32", "retval"],
            {"crc" : "0xc91dafa5"}
        ]
    ],
    "vl_api_version" :"0x2a74f256"
}