Fix compatibility with latest master (20.01-rc0)
[govpp.git] / examples / binapi / interfaces / interfaces.ba.go
1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2 // source: /usr/share/vpp/api/core/interface.api.json
3
4 /*
5 Package interfaces is a generated VPP binary API for 'interface' module.
6
7 It consists of:
8           1 alias
9          51 messages
10          25 services
11 */
12 package interfaces
13
14 import (
15         bytes "bytes"
16         context "context"
17         api "git.fd.io/govpp.git/api"
18         struc "github.com/lunixbochs/struc"
19         io "io"
20         strconv "strconv"
21 )
22
23 const (
24         // ModuleName is the name of this module.
25         ModuleName = "interface"
26         // APIVersion is the API version of this module.
27         APIVersion = "2.3.1"
28         // VersionCrc is the CRC of this module.
29         VersionCrc = 0x6aab37be
30 )
31
32 // InterfaceIndex represents VPP binary API alias 'interface_index'.
33 type InterfaceIndex uint32
34
35 // CollectDetailedInterfaceStats represents VPP binary API message 'collect_detailed_interface_stats'.
36 type CollectDetailedInterfaceStats struct {
37         SwIfIndex     uint32
38         EnableDisable uint8
39 }
40
41 func (*CollectDetailedInterfaceStats) GetMessageName() string {
42         return "collect_detailed_interface_stats"
43 }
44 func (*CollectDetailedInterfaceStats) GetCrcString() string {
45         return "69d24598"
46 }
47 func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType {
48         return api.RequestMessage
49 }
50
51 // CollectDetailedInterfaceStatsReply represents VPP binary API message 'collect_detailed_interface_stats_reply'.
52 type CollectDetailedInterfaceStatsReply struct {
53         Retval int32
54 }
55
56 func (*CollectDetailedInterfaceStatsReply) GetMessageName() string {
57         return "collect_detailed_interface_stats_reply"
58 }
59 func (*CollectDetailedInterfaceStatsReply) GetCrcString() string {
60         return "e8d4e804"
61 }
62 func (*CollectDetailedInterfaceStatsReply) GetMessageType() api.MessageType {
63         return api.ReplyMessage
64 }
65
66 // CreateLoopback represents VPP binary API message 'create_loopback'.
67 type CreateLoopback struct {
68         MacAddress []byte `struc:"[6]byte"`
69 }
70
71 func (*CreateLoopback) GetMessageName() string {
72         return "create_loopback"
73 }
74 func (*CreateLoopback) GetCrcString() string {
75         return "3b54129c"
76 }
77 func (*CreateLoopback) GetMessageType() api.MessageType {
78         return api.RequestMessage
79 }
80
81 // CreateLoopbackInstance represents VPP binary API message 'create_loopback_instance'.
82 type CreateLoopbackInstance struct {
83         MacAddress   []byte `struc:"[6]byte"`
84         IsSpecified  uint8
85         UserInstance uint32
86 }
87
88 func (*CreateLoopbackInstance) GetMessageName() string {
89         return "create_loopback_instance"
90 }
91 func (*CreateLoopbackInstance) GetCrcString() string {
92         return "7bbd53b6"
93 }
94 func (*CreateLoopbackInstance) GetMessageType() api.MessageType {
95         return api.RequestMessage
96 }
97
98 // CreateLoopbackInstanceReply represents VPP binary API message 'create_loopback_instance_reply'.
99 type CreateLoopbackInstanceReply struct {
100         Retval    int32
101         SwIfIndex uint32
102 }
103
104 func (*CreateLoopbackInstanceReply) GetMessageName() string {
105         return "create_loopback_instance_reply"
106 }
107 func (*CreateLoopbackInstanceReply) GetCrcString() string {
108         return "fda5941f"
109 }
110 func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType {
111         return api.ReplyMessage
112 }
113
114 // CreateLoopbackReply represents VPP binary API message 'create_loopback_reply'.
115 type CreateLoopbackReply struct {
116         Retval    int32
117         SwIfIndex uint32
118 }
119
120 func (*CreateLoopbackReply) GetMessageName() string {
121         return "create_loopback_reply"
122 }
123 func (*CreateLoopbackReply) GetCrcString() string {
124         return "fda5941f"
125 }
126 func (*CreateLoopbackReply) GetMessageType() api.MessageType {
127         return api.ReplyMessage
128 }
129
130 // CreateSubif represents VPP binary API message 'create_subif'.
131 type CreateSubif struct {
132         SwIfIndex      uint32
133         SubID          uint32
134         NoTags         uint8
135         OneTag         uint8
136         TwoTags        uint8
137         Dot1ad         uint8
138         ExactMatch     uint8
139         DefaultSub     uint8
140         OuterVlanIDAny uint8
141         InnerVlanIDAny uint8
142         OuterVlanID    uint16
143         InnerVlanID    uint16
144 }
145
146 func (*CreateSubif) GetMessageName() string {
147         return "create_subif"
148 }
149 func (*CreateSubif) GetCrcString() string {
150         return "86cfe408"
151 }
152 func (*CreateSubif) GetMessageType() api.MessageType {
153         return api.RequestMessage
154 }
155
156 // CreateSubifReply represents VPP binary API message 'create_subif_reply'.
157 type CreateSubifReply struct {
158         Retval    int32
159         SwIfIndex uint32
160 }
161
162 func (*CreateSubifReply) GetMessageName() string {
163         return "create_subif_reply"
164 }
165 func (*CreateSubifReply) GetCrcString() string {
166         return "fda5941f"
167 }
168 func (*CreateSubifReply) GetMessageType() api.MessageType {
169         return api.ReplyMessage
170 }
171
172 // CreateVlanSubif represents VPP binary API message 'create_vlan_subif'.
173 type CreateVlanSubif struct {
174         SwIfIndex uint32
175         VlanID    uint32
176 }
177
178 func (*CreateVlanSubif) GetMessageName() string {
179         return "create_vlan_subif"
180 }
181 func (*CreateVlanSubif) GetCrcString() string {
182         return "70cadeda"
183 }
184 func (*CreateVlanSubif) GetMessageType() api.MessageType {
185         return api.RequestMessage
186 }
187
188 // CreateVlanSubifReply represents VPP binary API message 'create_vlan_subif_reply'.
189 type CreateVlanSubifReply struct {
190         Retval    int32
191         SwIfIndex uint32
192 }
193
194 func (*CreateVlanSubifReply) GetMessageName() string {
195         return "create_vlan_subif_reply"
196 }
197 func (*CreateVlanSubifReply) GetCrcString() string {
198         return "fda5941f"
199 }
200 func (*CreateVlanSubifReply) GetMessageType() api.MessageType {
201         return api.ReplyMessage
202 }
203
204 // DeleteLoopback represents VPP binary API message 'delete_loopback'.
205 type DeleteLoopback struct {
206         SwIfIndex uint32
207 }
208
209 func (*DeleteLoopback) GetMessageName() string {
210         return "delete_loopback"
211 }
212 func (*DeleteLoopback) GetCrcString() string {
213         return "529cb13f"
214 }
215 func (*DeleteLoopback) GetMessageType() api.MessageType {
216         return api.RequestMessage
217 }
218
219 // DeleteLoopbackReply represents VPP binary API message 'delete_loopback_reply'.
220 type DeleteLoopbackReply struct {
221         Retval int32
222 }
223
224 func (*DeleteLoopbackReply) GetMessageName() string {
225         return "delete_loopback_reply"
226 }
227 func (*DeleteLoopbackReply) GetCrcString() string {
228         return "e8d4e804"
229 }
230 func (*DeleteLoopbackReply) GetMessageType() api.MessageType {
231         return api.ReplyMessage
232 }
233
234 // DeleteSubif represents VPP binary API message 'delete_subif'.
235 type DeleteSubif struct {
236         SwIfIndex uint32
237 }
238
239 func (*DeleteSubif) GetMessageName() string {
240         return "delete_subif"
241 }
242 func (*DeleteSubif) GetCrcString() string {
243         return "529cb13f"
244 }
245 func (*DeleteSubif) GetMessageType() api.MessageType {
246         return api.RequestMessage
247 }
248
249 // DeleteSubifReply represents VPP binary API message 'delete_subif_reply'.
250 type DeleteSubifReply struct {
251         Retval int32
252 }
253
254 func (*DeleteSubifReply) GetMessageName() string {
255         return "delete_subif_reply"
256 }
257 func (*DeleteSubifReply) GetCrcString() string {
258         return "e8d4e804"
259 }
260 func (*DeleteSubifReply) GetMessageType() api.MessageType {
261         return api.ReplyMessage
262 }
263
264 // HwInterfaceSetMtu represents VPP binary API message 'hw_interface_set_mtu'.
265 type HwInterfaceSetMtu struct {
266         SwIfIndex uint32
267         Mtu       uint16
268 }
269
270 func (*HwInterfaceSetMtu) GetMessageName() string {
271         return "hw_interface_set_mtu"
272 }
273 func (*HwInterfaceSetMtu) GetCrcString() string {
274         return "132da1e7"
275 }
276 func (*HwInterfaceSetMtu) GetMessageType() api.MessageType {
277         return api.RequestMessage
278 }
279
280 // HwInterfaceSetMtuReply represents VPP binary API message 'hw_interface_set_mtu_reply'.
281 type HwInterfaceSetMtuReply struct {
282         Retval int32
283 }
284
285 func (*HwInterfaceSetMtuReply) GetMessageName() string {
286         return "hw_interface_set_mtu_reply"
287 }
288 func (*HwInterfaceSetMtuReply) GetCrcString() string {
289         return "e8d4e804"
290 }
291 func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType {
292         return api.ReplyMessage
293 }
294
295 // InterfaceNameRenumber represents VPP binary API message 'interface_name_renumber'.
296 type InterfaceNameRenumber struct {
297         SwIfIndex          uint32
298         NewShowDevInstance uint32
299 }
300
301 func (*InterfaceNameRenumber) GetMessageName() string {
302         return "interface_name_renumber"
303 }
304 func (*InterfaceNameRenumber) GetCrcString() string {
305         return "39194269"
306 }
307 func (*InterfaceNameRenumber) GetMessageType() api.MessageType {
308         return api.RequestMessage
309 }
310
311 // InterfaceNameRenumberReply represents VPP binary API message 'interface_name_renumber_reply'.
312 type InterfaceNameRenumberReply struct {
313         Retval int32
314 }
315
316 func (*InterfaceNameRenumberReply) GetMessageName() string {
317         return "interface_name_renumber_reply"
318 }
319 func (*InterfaceNameRenumberReply) GetCrcString() string {
320         return "e8d4e804"
321 }
322 func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType {
323         return api.ReplyMessage
324 }
325
326 // SwInterfaceAddDelAddress represents VPP binary API message 'sw_interface_add_del_address'.
327 type SwInterfaceAddDelAddress struct {
328         SwIfIndex     uint32
329         IsAdd         uint8
330         IsIPv6        uint8
331         DelAll        uint8
332         AddressLength uint8
333         Address       []byte `struc:"[16]byte"`
334 }
335
336 func (*SwInterfaceAddDelAddress) GetMessageName() string {
337         return "sw_interface_add_del_address"
338 }
339 func (*SwInterfaceAddDelAddress) GetCrcString() string {
340         return "7b583179"
341 }
342 func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType {
343         return api.RequestMessage
344 }
345
346 // SwInterfaceAddDelAddressReply represents VPP binary API message 'sw_interface_add_del_address_reply'.
347 type SwInterfaceAddDelAddressReply struct {
348         Retval int32
349 }
350
351 func (*SwInterfaceAddDelAddressReply) GetMessageName() string {
352         return "sw_interface_add_del_address_reply"
353 }
354 func (*SwInterfaceAddDelAddressReply) GetCrcString() string {
355         return "e8d4e804"
356 }
357 func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType {
358         return api.ReplyMessage
359 }
360
361 // SwInterfaceClearStats represents VPP binary API message 'sw_interface_clear_stats'.
362 type SwInterfaceClearStats struct {
363         SwIfIndex uint32
364 }
365
366 func (*SwInterfaceClearStats) GetMessageName() string {
367         return "sw_interface_clear_stats"
368 }
369 func (*SwInterfaceClearStats) GetCrcString() string {
370         return "529cb13f"
371 }
372 func (*SwInterfaceClearStats) GetMessageType() api.MessageType {
373         return api.RequestMessage
374 }
375
376 // SwInterfaceClearStatsReply represents VPP binary API message 'sw_interface_clear_stats_reply'.
377 type SwInterfaceClearStatsReply struct {
378         Retval int32
379 }
380
381 func (*SwInterfaceClearStatsReply) GetMessageName() string {
382         return "sw_interface_clear_stats_reply"
383 }
384 func (*SwInterfaceClearStatsReply) GetCrcString() string {
385         return "e8d4e804"
386 }
387 func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType {
388         return api.ReplyMessage
389 }
390
391 // SwInterfaceDetails represents VPP binary API message 'sw_interface_details'.
392 type SwInterfaceDetails struct {
393         SwIfIndex         uint32
394         SupSwIfIndex      uint32
395         L2AddressLength   uint32
396         L2Address         []byte `struc:"[8]byte"`
397         InterfaceName     []byte `struc:"[64]byte"`
398         AdminUpDown       uint8
399         LinkUpDown        uint8
400         LinkDuplex        uint8
401         LinkSpeed         uint32
402         LinkMtu           uint16
403         Mtu               []uint32 `struc:"[4]uint32"`
404         SubID             uint32
405         SubDot1ad         uint8
406         SubDot1ah         uint8
407         SubNumberOfTags   uint8
408         SubOuterVlanID    uint16
409         SubInnerVlanID    uint16
410         SubExactMatch     uint8
411         SubDefault        uint8
412         SubOuterVlanIDAny uint8
413         SubInnerVlanIDAny uint8
414         VtrOp             uint32
415         VtrPushDot1q      uint32
416         VtrTag1           uint32
417         VtrTag2           uint32
418         Tag               []byte `struc:"[64]byte"`
419         OuterTag          uint16
420         BDmac             []byte `struc:"[6]byte"`
421         BSmac             []byte `struc:"[6]byte"`
422         BVlanid           uint16
423         ISid              uint32
424 }
425
426 func (*SwInterfaceDetails) GetMessageName() string {
427         return "sw_interface_details"
428 }
429 func (*SwInterfaceDetails) GetCrcString() string {
430         return "e4ee7eb6"
431 }
432 func (*SwInterfaceDetails) GetMessageType() api.MessageType {
433         return api.ReplyMessage
434 }
435
436 // SwInterfaceDump represents VPP binary API message 'sw_interface_dump'.
437 type SwInterfaceDump struct {
438         SwIfIndex       InterfaceIndex
439         NameFilterValid uint8
440         NameFilter      []byte `struc:"[49]byte"`
441 }
442
443 func (*SwInterfaceDump) GetMessageName() string {
444         return "sw_interface_dump"
445 }
446 func (*SwInterfaceDump) GetCrcString() string {
447         return "052753c5"
448 }
449 func (*SwInterfaceDump) GetMessageType() api.MessageType {
450         return api.RequestMessage
451 }
452
453 // SwInterfaceEvent represents VPP binary API message 'sw_interface_event'.
454 type SwInterfaceEvent struct {
455         PID         uint32
456         SwIfIndex   uint32
457         AdminUpDown uint8
458         LinkUpDown  uint8
459         Deleted     uint8
460 }
461
462 func (*SwInterfaceEvent) GetMessageName() string {
463         return "sw_interface_event"
464 }
465 func (*SwInterfaceEvent) GetCrcString() string {
466         return "bf9938e4"
467 }
468 func (*SwInterfaceEvent) GetMessageType() api.MessageType {
469         return api.EventMessage
470 }
471
472 // SwInterfaceGetMacAddress represents VPP binary API message 'sw_interface_get_mac_address'.
473 type SwInterfaceGetMacAddress struct {
474         SwIfIndex uint32
475 }
476
477 func (*SwInterfaceGetMacAddress) GetMessageName() string {
478         return "sw_interface_get_mac_address"
479 }
480 func (*SwInterfaceGetMacAddress) GetCrcString() string {
481         return "529cb13f"
482 }
483 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType {
484         return api.RequestMessage
485 }
486
487 // SwInterfaceGetMacAddressReply represents VPP binary API message 'sw_interface_get_mac_address_reply'.
488 type SwInterfaceGetMacAddressReply struct {
489         Retval     int32
490         MacAddress []byte `struc:"[6]byte"`
491 }
492
493 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
494         return "sw_interface_get_mac_address_reply"
495 }
496 func (*SwInterfaceGetMacAddressReply) GetCrcString() string {
497         return "8ea538d3"
498 }
499 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType {
500         return api.ReplyMessage
501 }
502
503 // SwInterfaceGetTable represents VPP binary API message 'sw_interface_get_table'.
504 type SwInterfaceGetTable struct {
505         SwIfIndex uint32
506         IsIPv6    uint8
507 }
508
509 func (*SwInterfaceGetTable) GetMessageName() string {
510         return "sw_interface_get_table"
511 }
512 func (*SwInterfaceGetTable) GetCrcString() string {
513         return "6b7bcd0a"
514 }
515 func (*SwInterfaceGetTable) GetMessageType() api.MessageType {
516         return api.RequestMessage
517 }
518
519 // SwInterfaceGetTableReply represents VPP binary API message 'sw_interface_get_table_reply'.
520 type SwInterfaceGetTableReply struct {
521         Retval int32
522         VrfID  uint32
523 }
524
525 func (*SwInterfaceGetTableReply) GetMessageName() string {
526         return "sw_interface_get_table_reply"
527 }
528 func (*SwInterfaceGetTableReply) GetCrcString() string {
529         return "a6eb0109"
530 }
531 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType {
532         return api.ReplyMessage
533 }
534
535 // SwInterfaceRxPlacementDetails represents VPP binary API message 'sw_interface_rx_placement_details'.
536 type SwInterfaceRxPlacementDetails struct {
537         SwIfIndex uint32
538         QueueID   uint32
539         WorkerID  uint32
540         Mode      uint8
541 }
542
543 func (*SwInterfaceRxPlacementDetails) GetMessageName() string {
544         return "sw_interface_rx_placement_details"
545 }
546 func (*SwInterfaceRxPlacementDetails) GetCrcString() string {
547         return "0e9e33f4"
548 }
549 func (*SwInterfaceRxPlacementDetails) GetMessageType() api.MessageType {
550         return api.RequestMessage
551 }
552
553 // SwInterfaceRxPlacementDump represents VPP binary API message 'sw_interface_rx_placement_dump'.
554 type SwInterfaceRxPlacementDump struct {
555         SwIfIndex uint32
556 }
557
558 func (*SwInterfaceRxPlacementDump) GetMessageName() string {
559         return "sw_interface_rx_placement_dump"
560 }
561 func (*SwInterfaceRxPlacementDump) GetCrcString() string {
562         return "529cb13f"
563 }
564 func (*SwInterfaceRxPlacementDump) GetMessageType() api.MessageType {
565         return api.RequestMessage
566 }
567
568 // SwInterfaceSetFlags represents VPP binary API message 'sw_interface_set_flags'.
569 type SwInterfaceSetFlags struct {
570         SwIfIndex   uint32
571         AdminUpDown uint8
572 }
573
574 func (*SwInterfaceSetFlags) GetMessageName() string {
575         return "sw_interface_set_flags"
576 }
577 func (*SwInterfaceSetFlags) GetCrcString() string {
578         return "555485f5"
579 }
580 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType {
581         return api.RequestMessage
582 }
583
584 // SwInterfaceSetFlagsReply represents VPP binary API message 'sw_interface_set_flags_reply'.
585 type SwInterfaceSetFlagsReply struct {
586         Retval int32
587 }
588
589 func (*SwInterfaceSetFlagsReply) GetMessageName() string {
590         return "sw_interface_set_flags_reply"
591 }
592 func (*SwInterfaceSetFlagsReply) GetCrcString() string {
593         return "e8d4e804"
594 }
595 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType {
596         return api.ReplyMessage
597 }
598
599 // SwInterfaceSetIPDirectedBroadcast represents VPP binary API message 'sw_interface_set_ip_directed_broadcast'.
600 type SwInterfaceSetIPDirectedBroadcast struct {
601         SwIfIndex uint32
602         Enable    uint8
603 }
604
605 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageName() string {
606         return "sw_interface_set_ip_directed_broadcast"
607 }
608 func (*SwInterfaceSetIPDirectedBroadcast) GetCrcString() string {
609         return "a36fadc0"
610 }
611 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageType() api.MessageType {
612         return api.RequestMessage
613 }
614
615 // SwInterfaceSetIPDirectedBroadcastReply represents VPP binary API message 'sw_interface_set_ip_directed_broadcast_reply'.
616 type SwInterfaceSetIPDirectedBroadcastReply struct {
617         Retval int32
618 }
619
620 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageName() string {
621         return "sw_interface_set_ip_directed_broadcast_reply"
622 }
623 func (*SwInterfaceSetIPDirectedBroadcastReply) GetCrcString() string {
624         return "e8d4e804"
625 }
626 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageType() api.MessageType {
627         return api.ReplyMessage
628 }
629
630 // SwInterfaceSetMacAddress represents VPP binary API message 'sw_interface_set_mac_address'.
631 type SwInterfaceSetMacAddress struct {
632         SwIfIndex  uint32
633         MacAddress []byte `struc:"[6]byte"`
634 }
635
636 func (*SwInterfaceSetMacAddress) GetMessageName() string {
637         return "sw_interface_set_mac_address"
638 }
639 func (*SwInterfaceSetMacAddress) GetCrcString() string {
640         return "eed5dfca"
641 }
642 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType {
643         return api.RequestMessage
644 }
645
646 // SwInterfaceSetMacAddressReply represents VPP binary API message 'sw_interface_set_mac_address_reply'.
647 type SwInterfaceSetMacAddressReply struct {
648         Retval int32
649 }
650
651 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
652         return "sw_interface_set_mac_address_reply"
653 }
654 func (*SwInterfaceSetMacAddressReply) GetCrcString() string {
655         return "e8d4e804"
656 }
657 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType {
658         return api.ReplyMessage
659 }
660
661 // SwInterfaceSetMtu represents VPP binary API message 'sw_interface_set_mtu'.
662 type SwInterfaceSetMtu struct {
663         SwIfIndex uint32
664         Mtu       []uint32 `struc:"[4]uint32"`
665 }
666
667 func (*SwInterfaceSetMtu) GetMessageName() string {
668         return "sw_interface_set_mtu"
669 }
670 func (*SwInterfaceSetMtu) GetCrcString() string {
671         return "d0008db8"
672 }
673 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType {
674         return api.RequestMessage
675 }
676
677 // SwInterfaceSetMtuReply represents VPP binary API message 'sw_interface_set_mtu_reply'.
678 type SwInterfaceSetMtuReply struct {
679         Retval int32
680 }
681
682 func (*SwInterfaceSetMtuReply) GetMessageName() string {
683         return "sw_interface_set_mtu_reply"
684 }
685 func (*SwInterfaceSetMtuReply) GetCrcString() string {
686         return "e8d4e804"
687 }
688 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType {
689         return api.ReplyMessage
690 }
691
692 // SwInterfaceSetRxMode represents VPP binary API message 'sw_interface_set_rx_mode'.
693 type SwInterfaceSetRxMode struct {
694         SwIfIndex    uint32
695         QueueIDValid uint8
696         QueueID      uint32
697         Mode         uint8
698 }
699
700 func (*SwInterfaceSetRxMode) GetMessageName() string {
701         return "sw_interface_set_rx_mode"
702 }
703 func (*SwInterfaceSetRxMode) GetCrcString() string {
704         return "2a1cc58c"
705 }
706 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType {
707         return api.RequestMessage
708 }
709
710 // SwInterfaceSetRxModeReply represents VPP binary API message 'sw_interface_set_rx_mode_reply'.
711 type SwInterfaceSetRxModeReply struct {
712         Retval int32
713 }
714
715 func (*SwInterfaceSetRxModeReply) GetMessageName() string {
716         return "sw_interface_set_rx_mode_reply"
717 }
718 func (*SwInterfaceSetRxModeReply) GetCrcString() string {
719         return "e8d4e804"
720 }
721 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType {
722         return api.ReplyMessage
723 }
724
725 // SwInterfaceSetRxPlacement represents VPP binary API message 'sw_interface_set_rx_placement'.
726 type SwInterfaceSetRxPlacement struct {
727         SwIfIndex uint32
728         QueueID   uint32
729         WorkerID  uint32
730         IsMain    uint8
731 }
732
733 func (*SwInterfaceSetRxPlacement) GetMessageName() string {
734         return "sw_interface_set_rx_placement"
735 }
736 func (*SwInterfaceSetRxPlacement) GetCrcString() string {
737         return "4ef4377d"
738 }
739 func (*SwInterfaceSetRxPlacement) GetMessageType() api.MessageType {
740         return api.RequestMessage
741 }
742
743 // SwInterfaceSetRxPlacementReply represents VPP binary API message 'sw_interface_set_rx_placement_reply'.
744 type SwInterfaceSetRxPlacementReply struct {
745         Retval int32
746 }
747
748 func (*SwInterfaceSetRxPlacementReply) GetMessageName() string {
749         return "sw_interface_set_rx_placement_reply"
750 }
751 func (*SwInterfaceSetRxPlacementReply) GetCrcString() string {
752         return "e8d4e804"
753 }
754 func (*SwInterfaceSetRxPlacementReply) GetMessageType() api.MessageType {
755         return api.ReplyMessage
756 }
757
758 // SwInterfaceSetTable represents VPP binary API message 'sw_interface_set_table'.
759 type SwInterfaceSetTable struct {
760         SwIfIndex uint32
761         IsIPv6    uint8
762         VrfID     uint32
763 }
764
765 func (*SwInterfaceSetTable) GetMessageName() string {
766         return "sw_interface_set_table"
767 }
768 func (*SwInterfaceSetTable) GetCrcString() string {
769         return "acb25d89"
770 }
771 func (*SwInterfaceSetTable) GetMessageType() api.MessageType {
772         return api.RequestMessage
773 }
774
775 // SwInterfaceSetTableReply represents VPP binary API message 'sw_interface_set_table_reply'.
776 type SwInterfaceSetTableReply struct {
777         Retval int32
778 }
779
780 func (*SwInterfaceSetTableReply) GetMessageName() string {
781         return "sw_interface_set_table_reply"
782 }
783 func (*SwInterfaceSetTableReply) GetCrcString() string {
784         return "e8d4e804"
785 }
786 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType {
787         return api.ReplyMessage
788 }
789
790 // SwInterfaceSetUnnumbered represents VPP binary API message 'sw_interface_set_unnumbered'.
791 type SwInterfaceSetUnnumbered struct {
792         SwIfIndex           uint32
793         UnnumberedSwIfIndex uint32
794         IsAdd               uint8
795 }
796
797 func (*SwInterfaceSetUnnumbered) GetMessageName() string {
798         return "sw_interface_set_unnumbered"
799 }
800 func (*SwInterfaceSetUnnumbered) GetCrcString() string {
801         return "a2c1bbda"
802 }
803 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType {
804         return api.RequestMessage
805 }
806
807 // SwInterfaceSetUnnumberedReply represents VPP binary API message 'sw_interface_set_unnumbered_reply'.
808 type SwInterfaceSetUnnumberedReply struct {
809         Retval int32
810 }
811
812 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
813         return "sw_interface_set_unnumbered_reply"
814 }
815 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string {
816         return "e8d4e804"
817 }
818 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType {
819         return api.ReplyMessage
820 }
821
822 // SwInterfaceTagAddDel represents VPP binary API message 'sw_interface_tag_add_del'.
823 type SwInterfaceTagAddDel struct {
824         IsAdd     uint8
825         SwIfIndex uint32
826         Tag       []byte `struc:"[64]byte"`
827 }
828
829 func (*SwInterfaceTagAddDel) GetMessageName() string {
830         return "sw_interface_tag_add_del"
831 }
832 func (*SwInterfaceTagAddDel) GetCrcString() string {
833         return "14cc636c"
834 }
835 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType {
836         return api.RequestMessage
837 }
838
839 // SwInterfaceTagAddDelReply represents VPP binary API message 'sw_interface_tag_add_del_reply'.
840 type SwInterfaceTagAddDelReply struct {
841         Retval int32
842 }
843
844 func (*SwInterfaceTagAddDelReply) GetMessageName() string {
845         return "sw_interface_tag_add_del_reply"
846 }
847 func (*SwInterfaceTagAddDelReply) GetCrcString() string {
848         return "e8d4e804"
849 }
850 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType {
851         return api.ReplyMessage
852 }
853
854 // WantInterfaceEvents represents VPP binary API message 'want_interface_events'.
855 type WantInterfaceEvents struct {
856         EnableDisable uint32
857         PID           uint32
858 }
859
860 func (*WantInterfaceEvents) GetMessageName() string {
861         return "want_interface_events"
862 }
863 func (*WantInterfaceEvents) GetCrcString() string {
864         return "476f5a08"
865 }
866 func (*WantInterfaceEvents) GetMessageType() api.MessageType {
867         return api.RequestMessage
868 }
869
870 // WantInterfaceEventsReply represents VPP binary API message 'want_interface_events_reply'.
871 type WantInterfaceEventsReply struct {
872         Retval int32
873 }
874
875 func (*WantInterfaceEventsReply) GetMessageName() string {
876         return "want_interface_events_reply"
877 }
878 func (*WantInterfaceEventsReply) GetCrcString() string {
879         return "e8d4e804"
880 }
881 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType {
882         return api.ReplyMessage
883 }
884
885 func init() {
886         api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "interface.CollectDetailedInterfaceStats")
887         api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "interface.CollectDetailedInterfaceStatsReply")
888         api.RegisterMessage((*CreateLoopback)(nil), "interface.CreateLoopback")
889         api.RegisterMessage((*CreateLoopbackInstance)(nil), "interface.CreateLoopbackInstance")
890         api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "interface.CreateLoopbackInstanceReply")
891         api.RegisterMessage((*CreateLoopbackReply)(nil), "interface.CreateLoopbackReply")
892         api.RegisterMessage((*CreateSubif)(nil), "interface.CreateSubif")
893         api.RegisterMessage((*CreateSubifReply)(nil), "interface.CreateSubifReply")
894         api.RegisterMessage((*CreateVlanSubif)(nil), "interface.CreateVlanSubif")
895         api.RegisterMessage((*CreateVlanSubifReply)(nil), "interface.CreateVlanSubifReply")
896         api.RegisterMessage((*DeleteLoopback)(nil), "interface.DeleteLoopback")
897         api.RegisterMessage((*DeleteLoopbackReply)(nil), "interface.DeleteLoopbackReply")
898         api.RegisterMessage((*DeleteSubif)(nil), "interface.DeleteSubif")
899         api.RegisterMessage((*DeleteSubifReply)(nil), "interface.DeleteSubifReply")
900         api.RegisterMessage((*HwInterfaceSetMtu)(nil), "interface.HwInterfaceSetMtu")
901         api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "interface.HwInterfaceSetMtuReply")
902         api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface.InterfaceNameRenumber")
903         api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface.InterfaceNameRenumberReply")
904         api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "interface.SwInterfaceAddDelAddress")
905         api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "interface.SwInterfaceAddDelAddressReply")
906         api.RegisterMessage((*SwInterfaceClearStats)(nil), "interface.SwInterfaceClearStats")
907         api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "interface.SwInterfaceClearStatsReply")
908         api.RegisterMessage((*SwInterfaceDetails)(nil), "interface.SwInterfaceDetails")
909         api.RegisterMessage((*SwInterfaceDump)(nil), "interface.SwInterfaceDump")
910         api.RegisterMessage((*SwInterfaceEvent)(nil), "interface.SwInterfaceEvent")
911         api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "interface.SwInterfaceGetMacAddress")
912         api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "interface.SwInterfaceGetMacAddressReply")
913         api.RegisterMessage((*SwInterfaceGetTable)(nil), "interface.SwInterfaceGetTable")
914         api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "interface.SwInterfaceGetTableReply")
915         api.RegisterMessage((*SwInterfaceRxPlacementDetails)(nil), "interface.SwInterfaceRxPlacementDetails")
916         api.RegisterMessage((*SwInterfaceRxPlacementDump)(nil), "interface.SwInterfaceRxPlacementDump")
917         api.RegisterMessage((*SwInterfaceSetFlags)(nil), "interface.SwInterfaceSetFlags")
918         api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "interface.SwInterfaceSetFlagsReply")
919         api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcast)(nil), "interface.SwInterfaceSetIPDirectedBroadcast")
920         api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcastReply)(nil), "interface.SwInterfaceSetIPDirectedBroadcastReply")
921         api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "interface.SwInterfaceSetMacAddress")
922         api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "interface.SwInterfaceSetMacAddressReply")
923         api.RegisterMessage((*SwInterfaceSetMtu)(nil), "interface.SwInterfaceSetMtu")
924         api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "interface.SwInterfaceSetMtuReply")
925         api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "interface.SwInterfaceSetRxMode")
926         api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "interface.SwInterfaceSetRxModeReply")
927         api.RegisterMessage((*SwInterfaceSetRxPlacement)(nil), "interface.SwInterfaceSetRxPlacement")
928         api.RegisterMessage((*SwInterfaceSetRxPlacementReply)(nil), "interface.SwInterfaceSetRxPlacementReply")
929         api.RegisterMessage((*SwInterfaceSetTable)(nil), "interface.SwInterfaceSetTable")
930         api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "interface.SwInterfaceSetTableReply")
931         api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "interface.SwInterfaceSetUnnumbered")
932         api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "interface.SwInterfaceSetUnnumberedReply")
933         api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "interface.SwInterfaceTagAddDel")
934         api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "interface.SwInterfaceTagAddDelReply")
935         api.RegisterMessage((*WantInterfaceEvents)(nil), "interface.WantInterfaceEvents")
936         api.RegisterMessage((*WantInterfaceEventsReply)(nil), "interface.WantInterfaceEventsReply")
937 }
938
939 // Messages returns list of all messages in this module.
940 func AllMessages() []api.Message {
941         return []api.Message{
942                 (*CollectDetailedInterfaceStats)(nil),
943                 (*CollectDetailedInterfaceStatsReply)(nil),
944                 (*CreateLoopback)(nil),
945                 (*CreateLoopbackInstance)(nil),
946                 (*CreateLoopbackInstanceReply)(nil),
947                 (*CreateLoopbackReply)(nil),
948                 (*CreateSubif)(nil),
949                 (*CreateSubifReply)(nil),
950                 (*CreateVlanSubif)(nil),
951                 (*CreateVlanSubifReply)(nil),
952                 (*DeleteLoopback)(nil),
953                 (*DeleteLoopbackReply)(nil),
954                 (*DeleteSubif)(nil),
955                 (*DeleteSubifReply)(nil),
956                 (*HwInterfaceSetMtu)(nil),
957                 (*HwInterfaceSetMtuReply)(nil),
958                 (*InterfaceNameRenumber)(nil),
959                 (*InterfaceNameRenumberReply)(nil),
960                 (*SwInterfaceAddDelAddress)(nil),
961                 (*SwInterfaceAddDelAddressReply)(nil),
962                 (*SwInterfaceClearStats)(nil),
963                 (*SwInterfaceClearStatsReply)(nil),
964                 (*SwInterfaceDetails)(nil),
965                 (*SwInterfaceDump)(nil),
966                 (*SwInterfaceEvent)(nil),
967                 (*SwInterfaceGetMacAddress)(nil),
968                 (*SwInterfaceGetMacAddressReply)(nil),
969                 (*SwInterfaceGetTable)(nil),
970                 (*SwInterfaceGetTableReply)(nil),
971                 (*SwInterfaceRxPlacementDetails)(nil),
972                 (*SwInterfaceRxPlacementDump)(nil),
973                 (*SwInterfaceSetFlags)(nil),
974                 (*SwInterfaceSetFlagsReply)(nil),
975                 (*SwInterfaceSetIPDirectedBroadcast)(nil),
976                 (*SwInterfaceSetIPDirectedBroadcastReply)(nil),
977                 (*SwInterfaceSetMacAddress)(nil),
978                 (*SwInterfaceSetMacAddressReply)(nil),
979                 (*SwInterfaceSetMtu)(nil),
980                 (*SwInterfaceSetMtuReply)(nil),
981                 (*SwInterfaceSetRxMode)(nil),
982                 (*SwInterfaceSetRxModeReply)(nil),
983                 (*SwInterfaceSetRxPlacement)(nil),
984                 (*SwInterfaceSetRxPlacementReply)(nil),
985                 (*SwInterfaceSetTable)(nil),
986                 (*SwInterfaceSetTableReply)(nil),
987                 (*SwInterfaceSetUnnumbered)(nil),
988                 (*SwInterfaceSetUnnumberedReply)(nil),
989                 (*SwInterfaceTagAddDel)(nil),
990                 (*SwInterfaceTagAddDelReply)(nil),
991                 (*WantInterfaceEvents)(nil),
992                 (*WantInterfaceEventsReply)(nil),
993         }
994 }
995
996 // RPCService represents RPC service API for interface module.
997 type RPCService interface {
998         DumpSwInterface(ctx context.Context, in *SwInterfaceDump) (RPCService_DumpSwInterfaceClient, error)
999         DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) (RPCService_DumpSwInterfaceRxPlacementClient, error)
1000         CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error)
1001         CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error)
1002         CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error)
1003         CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error)
1004         CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error)
1005         DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error)
1006         DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error)
1007         HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error)
1008         InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error)
1009         SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error)
1010         SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
1011         SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
1012         SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
1013         SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
1014         SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error)
1015         SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
1016         SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
1017         SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
1018         SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error)
1019         SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
1020         SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
1021         SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
1022         WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error)
1023 }
1024
1025 type serviceClient struct {
1026         ch api.Channel
1027 }
1028
1029 func NewServiceClient(ch api.Channel) RPCService {
1030         return &serviceClient{ch}
1031 }
1032
1033 func (c *serviceClient) DumpSwInterface(ctx context.Context, in *SwInterfaceDump) (RPCService_DumpSwInterfaceClient, error) {
1034         stream := c.ch.SendMultiRequest(in)
1035         x := &serviceClient_DumpSwInterfaceClient{stream}
1036         return x, nil
1037 }
1038
1039 type RPCService_DumpSwInterfaceClient interface {
1040         Recv() (*SwInterfaceDetails, error)
1041 }
1042
1043 type serviceClient_DumpSwInterfaceClient struct {
1044         api.MultiRequestCtx
1045 }
1046
1047 func (c *serviceClient_DumpSwInterfaceClient) Recv() (*SwInterfaceDetails, error) {
1048         m := new(SwInterfaceDetails)
1049         stop, err := c.MultiRequestCtx.ReceiveReply(m)
1050         if err != nil {
1051                 return nil, err
1052         }
1053         if stop {
1054                 return nil, io.EOF
1055         }
1056         return m, nil
1057 }
1058
1059 func (c *serviceClient) DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) (RPCService_DumpSwInterfaceRxPlacementClient, error) {
1060         stream := c.ch.SendMultiRequest(in)
1061         x := &serviceClient_DumpSwInterfaceRxPlacementClient{stream}
1062         return x, nil
1063 }
1064
1065 type RPCService_DumpSwInterfaceRxPlacementClient interface {
1066         Recv() (*SwInterfaceRxPlacementDetails, error)
1067 }
1068
1069 type serviceClient_DumpSwInterfaceRxPlacementClient struct {
1070         api.MultiRequestCtx
1071 }
1072
1073 func (c *serviceClient_DumpSwInterfaceRxPlacementClient) Recv() (*SwInterfaceRxPlacementDetails, error) {
1074         m := new(SwInterfaceRxPlacementDetails)
1075         stop, err := c.MultiRequestCtx.ReceiveReply(m)
1076         if err != nil {
1077                 return nil, err
1078         }
1079         if stop {
1080                 return nil, io.EOF
1081         }
1082         return m, nil
1083 }
1084
1085 func (c *serviceClient) CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error) {
1086         out := new(CollectDetailedInterfaceStatsReply)
1087         err := c.ch.SendRequest(in).ReceiveReply(out)
1088         if err != nil {
1089                 return nil, err
1090         }
1091         return out, nil
1092 }
1093
1094 func (c *serviceClient) CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error) {
1095         out := new(CreateLoopbackReply)
1096         err := c.ch.SendRequest(in).ReceiveReply(out)
1097         if err != nil {
1098                 return nil, err
1099         }
1100         return out, nil
1101 }
1102
1103 func (c *serviceClient) CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error) {
1104         out := new(CreateLoopbackInstanceReply)
1105         err := c.ch.SendRequest(in).ReceiveReply(out)
1106         if err != nil {
1107                 return nil, err
1108         }
1109         return out, nil
1110 }
1111
1112 func (c *serviceClient) CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error) {
1113         out := new(CreateSubifReply)
1114         err := c.ch.SendRequest(in).ReceiveReply(out)
1115         if err != nil {
1116                 return nil, err
1117         }
1118         return out, nil
1119 }
1120
1121 func (c *serviceClient) CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error) {
1122         out := new(CreateVlanSubifReply)
1123         err := c.ch.SendRequest(in).ReceiveReply(out)
1124         if err != nil {
1125                 return nil, err
1126         }
1127         return out, nil
1128 }
1129
1130 func (c *serviceClient) DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error) {
1131         out := new(DeleteLoopbackReply)
1132         err := c.ch.SendRequest(in).ReceiveReply(out)
1133         if err != nil {
1134                 return nil, err
1135         }
1136         return out, nil
1137 }
1138
1139 func (c *serviceClient) DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error) {
1140         out := new(DeleteSubifReply)
1141         err := c.ch.SendRequest(in).ReceiveReply(out)
1142         if err != nil {
1143                 return nil, err
1144         }
1145         return out, nil
1146 }
1147
1148 func (c *serviceClient) HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error) {
1149         out := new(HwInterfaceSetMtuReply)
1150         err := c.ch.SendRequest(in).ReceiveReply(out)
1151         if err != nil {
1152                 return nil, err
1153         }
1154         return out, nil
1155 }
1156
1157 func (c *serviceClient) InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error) {
1158         out := new(InterfaceNameRenumberReply)
1159         err := c.ch.SendRequest(in).ReceiveReply(out)
1160         if err != nil {
1161                 return nil, err
1162         }
1163         return out, nil
1164 }
1165
1166 func (c *serviceClient) SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error) {
1167         out := new(SwInterfaceAddDelAddressReply)
1168         err := c.ch.SendRequest(in).ReceiveReply(out)
1169         if err != nil {
1170                 return nil, err
1171         }
1172         return out, nil
1173 }
1174
1175 func (c *serviceClient) SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error) {
1176         out := new(SwInterfaceClearStatsReply)
1177         err := c.ch.SendRequest(in).ReceiveReply(out)
1178         if err != nil {
1179                 return nil, err
1180         }
1181         return out, nil
1182 }
1183
1184 func (c *serviceClient) SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error) {
1185         out := new(SwInterfaceGetMacAddressReply)
1186         err := c.ch.SendRequest(in).ReceiveReply(out)
1187         if err != nil {
1188                 return nil, err
1189         }
1190         return out, nil
1191 }
1192
1193 func (c *serviceClient) SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error) {
1194         out := new(SwInterfaceGetTableReply)
1195         err := c.ch.SendRequest(in).ReceiveReply(out)
1196         if err != nil {
1197                 return nil, err
1198         }
1199         return out, nil
1200 }
1201
1202 func (c *serviceClient) SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error) {
1203         out := new(SwInterfaceSetFlagsReply)
1204         err := c.ch.SendRequest(in).ReceiveReply(out)
1205         if err != nil {
1206                 return nil, err
1207         }
1208         return out, nil
1209 }
1210
1211 func (c *serviceClient) SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error) {
1212         out := new(SwInterfaceSetIPDirectedBroadcastReply)
1213         err := c.ch.SendRequest(in).ReceiveReply(out)
1214         if err != nil {
1215                 return nil, err
1216         }
1217         return out, nil
1218 }
1219
1220 func (c *serviceClient) SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error) {
1221         out := new(SwInterfaceSetMacAddressReply)
1222         err := c.ch.SendRequest(in).ReceiveReply(out)
1223         if err != nil {
1224                 return nil, err
1225         }
1226         return out, nil
1227 }
1228
1229 func (c *serviceClient) SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error) {
1230         out := new(SwInterfaceSetMtuReply)
1231         err := c.ch.SendRequest(in).ReceiveReply(out)
1232         if err != nil {
1233                 return nil, err
1234         }
1235         return out, nil
1236 }
1237
1238 func (c *serviceClient) SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error) {
1239         out := new(SwInterfaceSetRxModeReply)
1240         err := c.ch.SendRequest(in).ReceiveReply(out)
1241         if err != nil {
1242                 return nil, err
1243         }
1244         return out, nil
1245 }
1246
1247 func (c *serviceClient) SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error) {
1248         out := new(SwInterfaceSetRxPlacementReply)
1249         err := c.ch.SendRequest(in).ReceiveReply(out)
1250         if err != nil {
1251                 return nil, err
1252         }
1253         return out, nil
1254 }
1255
1256 func (c *serviceClient) SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error) {
1257         out := new(SwInterfaceSetTableReply)
1258         err := c.ch.SendRequest(in).ReceiveReply(out)
1259         if err != nil {
1260                 return nil, err
1261         }
1262         return out, nil
1263 }
1264
1265 func (c *serviceClient) SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error) {
1266         out := new(SwInterfaceSetUnnumberedReply)
1267         err := c.ch.SendRequest(in).ReceiveReply(out)
1268         if err != nil {
1269                 return nil, err
1270         }
1271         return out, nil
1272 }
1273
1274 func (c *serviceClient) SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error) {
1275         out := new(SwInterfaceTagAddDelReply)
1276         err := c.ch.SendRequest(in).ReceiveReply(out)
1277         if err != nil {
1278                 return nil, err
1279         }
1280         return out, nil
1281 }
1282
1283 func (c *serviceClient) WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error) {
1284         out := new(WantInterfaceEventsReply)
1285         err := c.ch.SendRequest(in).ReceiveReply(out)
1286         if err != nil {
1287                 return nil, err
1288         }
1289         return out, nil
1290 }
1291
1292 // This is a compile-time assertion to ensure that this generated file
1293 // is compatible with the GoVPP api package it is being compiled against.
1294 // A compilation error at this line likely means your copy of the
1295 // GoVPP api package needs to be updated.
1296 const _ = api.GoVppAPIPackageIsVersion1 // please upgrade the GoVPP api package
1297
1298 // Reference imports to suppress errors if they are not otherwise used.
1299 var _ = api.RegisterMessage
1300 var _ = bytes.NewBuffer
1301 var _ = context.Background
1302 var _ = io.Copy
1303 var _ = strconv.Itoa
1304 var _ = struc.Pack