Improvements for binapi-generator and support VPP 19.04 in statsclient
[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.2.0"
28         // VersionCrc is the CRC of this module.
29         VersionCrc = 0x672de521
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         NameFilterValid uint8
439         NameFilter      []byte `struc:"[49]byte"`
440 }
441
442 func (*SwInterfaceDump) GetMessageName() string {
443         return "sw_interface_dump"
444 }
445 func (*SwInterfaceDump) GetCrcString() string {
446         return "63f5e3b7"
447 }
448 func (*SwInterfaceDump) GetMessageType() api.MessageType {
449         return api.RequestMessage
450 }
451
452 // SwInterfaceEvent represents VPP binary API message 'sw_interface_event'.
453 type SwInterfaceEvent struct {
454         PID         uint32
455         SwIfIndex   uint32
456         AdminUpDown uint8
457         LinkUpDown  uint8
458         Deleted     uint8
459 }
460
461 func (*SwInterfaceEvent) GetMessageName() string {
462         return "sw_interface_event"
463 }
464 func (*SwInterfaceEvent) GetCrcString() string {
465         return "bf9938e4"
466 }
467 func (*SwInterfaceEvent) GetMessageType() api.MessageType {
468         return api.EventMessage
469 }
470
471 // SwInterfaceGetMacAddress represents VPP binary API message 'sw_interface_get_mac_address'.
472 type SwInterfaceGetMacAddress struct {
473         SwIfIndex uint32
474 }
475
476 func (*SwInterfaceGetMacAddress) GetMessageName() string {
477         return "sw_interface_get_mac_address"
478 }
479 func (*SwInterfaceGetMacAddress) GetCrcString() string {
480         return "529cb13f"
481 }
482 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType {
483         return api.RequestMessage
484 }
485
486 // SwInterfaceGetMacAddressReply represents VPP binary API message 'sw_interface_get_mac_address_reply'.
487 type SwInterfaceGetMacAddressReply struct {
488         Retval     int32
489         MacAddress []byte `struc:"[6]byte"`
490 }
491
492 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
493         return "sw_interface_get_mac_address_reply"
494 }
495 func (*SwInterfaceGetMacAddressReply) GetCrcString() string {
496         return "8ea538d3"
497 }
498 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType {
499         return api.ReplyMessage
500 }
501
502 // SwInterfaceGetTable represents VPP binary API message 'sw_interface_get_table'.
503 type SwInterfaceGetTable struct {
504         SwIfIndex uint32
505         IsIPv6    uint8
506 }
507
508 func (*SwInterfaceGetTable) GetMessageName() string {
509         return "sw_interface_get_table"
510 }
511 func (*SwInterfaceGetTable) GetCrcString() string {
512         return "6b7bcd0a"
513 }
514 func (*SwInterfaceGetTable) GetMessageType() api.MessageType {
515         return api.RequestMessage
516 }
517
518 // SwInterfaceGetTableReply represents VPP binary API message 'sw_interface_get_table_reply'.
519 type SwInterfaceGetTableReply struct {
520         Retval int32
521         VrfID  uint32
522 }
523
524 func (*SwInterfaceGetTableReply) GetMessageName() string {
525         return "sw_interface_get_table_reply"
526 }
527 func (*SwInterfaceGetTableReply) GetCrcString() string {
528         return "a6eb0109"
529 }
530 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType {
531         return api.ReplyMessage
532 }
533
534 // SwInterfaceRxPlacementDetails represents VPP binary API message 'sw_interface_rx_placement_details'.
535 type SwInterfaceRxPlacementDetails struct {
536         SwIfIndex uint32
537         QueueID   uint32
538         WorkerID  uint32
539         Mode      uint8
540 }
541
542 func (*SwInterfaceRxPlacementDetails) GetMessageName() string {
543         return "sw_interface_rx_placement_details"
544 }
545 func (*SwInterfaceRxPlacementDetails) GetCrcString() string {
546         return "0e9e33f4"
547 }
548 func (*SwInterfaceRxPlacementDetails) GetMessageType() api.MessageType {
549         return api.RequestMessage
550 }
551
552 // SwInterfaceRxPlacementDump represents VPP binary API message 'sw_interface_rx_placement_dump'.
553 type SwInterfaceRxPlacementDump struct {
554         SwIfIndex uint32
555 }
556
557 func (*SwInterfaceRxPlacementDump) GetMessageName() string {
558         return "sw_interface_rx_placement_dump"
559 }
560 func (*SwInterfaceRxPlacementDump) GetCrcString() string {
561         return "529cb13f"
562 }
563 func (*SwInterfaceRxPlacementDump) GetMessageType() api.MessageType {
564         return api.RequestMessage
565 }
566
567 // SwInterfaceSetFlags represents VPP binary API message 'sw_interface_set_flags'.
568 type SwInterfaceSetFlags struct {
569         SwIfIndex   uint32
570         AdminUpDown uint8
571 }
572
573 func (*SwInterfaceSetFlags) GetMessageName() string {
574         return "sw_interface_set_flags"
575 }
576 func (*SwInterfaceSetFlags) GetCrcString() string {
577         return "555485f5"
578 }
579 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType {
580         return api.RequestMessage
581 }
582
583 // SwInterfaceSetFlagsReply represents VPP binary API message 'sw_interface_set_flags_reply'.
584 type SwInterfaceSetFlagsReply struct {
585         Retval int32
586 }
587
588 func (*SwInterfaceSetFlagsReply) GetMessageName() string {
589         return "sw_interface_set_flags_reply"
590 }
591 func (*SwInterfaceSetFlagsReply) GetCrcString() string {
592         return "e8d4e804"
593 }
594 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType {
595         return api.ReplyMessage
596 }
597
598 // SwInterfaceSetIPDirectedBroadcast represents VPP binary API message 'sw_interface_set_ip_directed_broadcast'.
599 type SwInterfaceSetIPDirectedBroadcast struct {
600         SwIfIndex uint32
601         Enable    uint8
602 }
603
604 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageName() string {
605         return "sw_interface_set_ip_directed_broadcast"
606 }
607 func (*SwInterfaceSetIPDirectedBroadcast) GetCrcString() string {
608         return "a36fadc0"
609 }
610 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageType() api.MessageType {
611         return api.RequestMessage
612 }
613
614 // SwInterfaceSetIPDirectedBroadcastReply represents VPP binary API message 'sw_interface_set_ip_directed_broadcast_reply'.
615 type SwInterfaceSetIPDirectedBroadcastReply struct {
616         Retval int32
617 }
618
619 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageName() string {
620         return "sw_interface_set_ip_directed_broadcast_reply"
621 }
622 func (*SwInterfaceSetIPDirectedBroadcastReply) GetCrcString() string {
623         return "e8d4e804"
624 }
625 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageType() api.MessageType {
626         return api.ReplyMessage
627 }
628
629 // SwInterfaceSetMacAddress represents VPP binary API message 'sw_interface_set_mac_address'.
630 type SwInterfaceSetMacAddress struct {
631         SwIfIndex  uint32
632         MacAddress []byte `struc:"[6]byte"`
633 }
634
635 func (*SwInterfaceSetMacAddress) GetMessageName() string {
636         return "sw_interface_set_mac_address"
637 }
638 func (*SwInterfaceSetMacAddress) GetCrcString() string {
639         return "eed5dfca"
640 }
641 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType {
642         return api.RequestMessage
643 }
644
645 // SwInterfaceSetMacAddressReply represents VPP binary API message 'sw_interface_set_mac_address_reply'.
646 type SwInterfaceSetMacAddressReply struct {
647         Retval int32
648 }
649
650 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
651         return "sw_interface_set_mac_address_reply"
652 }
653 func (*SwInterfaceSetMacAddressReply) GetCrcString() string {
654         return "e8d4e804"
655 }
656 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType {
657         return api.ReplyMessage
658 }
659
660 // SwInterfaceSetMtu represents VPP binary API message 'sw_interface_set_mtu'.
661 type SwInterfaceSetMtu struct {
662         SwIfIndex uint32
663         Mtu       []uint32 `struc:"[4]uint32"`
664 }
665
666 func (*SwInterfaceSetMtu) GetMessageName() string {
667         return "sw_interface_set_mtu"
668 }
669 func (*SwInterfaceSetMtu) GetCrcString() string {
670         return "d0008db8"
671 }
672 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType {
673         return api.RequestMessage
674 }
675
676 // SwInterfaceSetMtuReply represents VPP binary API message 'sw_interface_set_mtu_reply'.
677 type SwInterfaceSetMtuReply struct {
678         Retval int32
679 }
680
681 func (*SwInterfaceSetMtuReply) GetMessageName() string {
682         return "sw_interface_set_mtu_reply"
683 }
684 func (*SwInterfaceSetMtuReply) GetCrcString() string {
685         return "e8d4e804"
686 }
687 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType {
688         return api.ReplyMessage
689 }
690
691 // SwInterfaceSetRxMode represents VPP binary API message 'sw_interface_set_rx_mode'.
692 type SwInterfaceSetRxMode struct {
693         SwIfIndex    uint32
694         QueueIDValid uint8
695         QueueID      uint32
696         Mode         uint8
697 }
698
699 func (*SwInterfaceSetRxMode) GetMessageName() string {
700         return "sw_interface_set_rx_mode"
701 }
702 func (*SwInterfaceSetRxMode) GetCrcString() string {
703         return "2a1cc58c"
704 }
705 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType {
706         return api.RequestMessage
707 }
708
709 // SwInterfaceSetRxModeReply represents VPP binary API message 'sw_interface_set_rx_mode_reply'.
710 type SwInterfaceSetRxModeReply struct {
711         Retval int32
712 }
713
714 func (*SwInterfaceSetRxModeReply) GetMessageName() string {
715         return "sw_interface_set_rx_mode_reply"
716 }
717 func (*SwInterfaceSetRxModeReply) GetCrcString() string {
718         return "e8d4e804"
719 }
720 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType {
721         return api.ReplyMessage
722 }
723
724 // SwInterfaceSetRxPlacement represents VPP binary API message 'sw_interface_set_rx_placement'.
725 type SwInterfaceSetRxPlacement struct {
726         SwIfIndex uint32
727         QueueID   uint32
728         WorkerID  uint32
729         IsMain    uint8
730 }
731
732 func (*SwInterfaceSetRxPlacement) GetMessageName() string {
733         return "sw_interface_set_rx_placement"
734 }
735 func (*SwInterfaceSetRxPlacement) GetCrcString() string {
736         return "4ef4377d"
737 }
738 func (*SwInterfaceSetRxPlacement) GetMessageType() api.MessageType {
739         return api.RequestMessage
740 }
741
742 // SwInterfaceSetRxPlacementReply represents VPP binary API message 'sw_interface_set_rx_placement_reply'.
743 type SwInterfaceSetRxPlacementReply struct {
744         Retval int32
745 }
746
747 func (*SwInterfaceSetRxPlacementReply) GetMessageName() string {
748         return "sw_interface_set_rx_placement_reply"
749 }
750 func (*SwInterfaceSetRxPlacementReply) GetCrcString() string {
751         return "e8d4e804"
752 }
753 func (*SwInterfaceSetRxPlacementReply) GetMessageType() api.MessageType {
754         return api.ReplyMessage
755 }
756
757 // SwInterfaceSetTable represents VPP binary API message 'sw_interface_set_table'.
758 type SwInterfaceSetTable struct {
759         SwIfIndex uint32
760         IsIPv6    uint8
761         VrfID     uint32
762 }
763
764 func (*SwInterfaceSetTable) GetMessageName() string {
765         return "sw_interface_set_table"
766 }
767 func (*SwInterfaceSetTable) GetCrcString() string {
768         return "acb25d89"
769 }
770 func (*SwInterfaceSetTable) GetMessageType() api.MessageType {
771         return api.RequestMessage
772 }
773
774 // SwInterfaceSetTableReply represents VPP binary API message 'sw_interface_set_table_reply'.
775 type SwInterfaceSetTableReply struct {
776         Retval int32
777 }
778
779 func (*SwInterfaceSetTableReply) GetMessageName() string {
780         return "sw_interface_set_table_reply"
781 }
782 func (*SwInterfaceSetTableReply) GetCrcString() string {
783         return "e8d4e804"
784 }
785 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType {
786         return api.ReplyMessage
787 }
788
789 // SwInterfaceSetUnnumbered represents VPP binary API message 'sw_interface_set_unnumbered'.
790 type SwInterfaceSetUnnumbered struct {
791         SwIfIndex           uint32
792         UnnumberedSwIfIndex uint32
793         IsAdd               uint8
794 }
795
796 func (*SwInterfaceSetUnnumbered) GetMessageName() string {
797         return "sw_interface_set_unnumbered"
798 }
799 func (*SwInterfaceSetUnnumbered) GetCrcString() string {
800         return "a2c1bbda"
801 }
802 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType {
803         return api.RequestMessage
804 }
805
806 // SwInterfaceSetUnnumberedReply represents VPP binary API message 'sw_interface_set_unnumbered_reply'.
807 type SwInterfaceSetUnnumberedReply struct {
808         Retval int32
809 }
810
811 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
812         return "sw_interface_set_unnumbered_reply"
813 }
814 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string {
815         return "e8d4e804"
816 }
817 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType {
818         return api.ReplyMessage
819 }
820
821 // SwInterfaceTagAddDel represents VPP binary API message 'sw_interface_tag_add_del'.
822 type SwInterfaceTagAddDel struct {
823         IsAdd     uint8
824         SwIfIndex uint32
825         Tag       []byte `struc:"[64]byte"`
826 }
827
828 func (*SwInterfaceTagAddDel) GetMessageName() string {
829         return "sw_interface_tag_add_del"
830 }
831 func (*SwInterfaceTagAddDel) GetCrcString() string {
832         return "14cc636c"
833 }
834 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType {
835         return api.RequestMessage
836 }
837
838 // SwInterfaceTagAddDelReply represents VPP binary API message 'sw_interface_tag_add_del_reply'.
839 type SwInterfaceTagAddDelReply struct {
840         Retval int32
841 }
842
843 func (*SwInterfaceTagAddDelReply) GetMessageName() string {
844         return "sw_interface_tag_add_del_reply"
845 }
846 func (*SwInterfaceTagAddDelReply) GetCrcString() string {
847         return "e8d4e804"
848 }
849 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType {
850         return api.ReplyMessage
851 }
852
853 // WantInterfaceEvents represents VPP binary API message 'want_interface_events'.
854 type WantInterfaceEvents struct {
855         EnableDisable uint32
856         PID           uint32
857 }
858
859 func (*WantInterfaceEvents) GetMessageName() string {
860         return "want_interface_events"
861 }
862 func (*WantInterfaceEvents) GetCrcString() string {
863         return "476f5a08"
864 }
865 func (*WantInterfaceEvents) GetMessageType() api.MessageType {
866         return api.RequestMessage
867 }
868
869 // WantInterfaceEventsReply represents VPP binary API message 'want_interface_events_reply'.
870 type WantInterfaceEventsReply struct {
871         Retval int32
872 }
873
874 func (*WantInterfaceEventsReply) GetMessageName() string {
875         return "want_interface_events_reply"
876 }
877 func (*WantInterfaceEventsReply) GetCrcString() string {
878         return "e8d4e804"
879 }
880 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType {
881         return api.ReplyMessage
882 }
883
884 func init() {
885         api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "interface.CollectDetailedInterfaceStats")
886         api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "interface.CollectDetailedInterfaceStatsReply")
887         api.RegisterMessage((*CreateLoopback)(nil), "interface.CreateLoopback")
888         api.RegisterMessage((*CreateLoopbackInstance)(nil), "interface.CreateLoopbackInstance")
889         api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "interface.CreateLoopbackInstanceReply")
890         api.RegisterMessage((*CreateLoopbackReply)(nil), "interface.CreateLoopbackReply")
891         api.RegisterMessage((*CreateSubif)(nil), "interface.CreateSubif")
892         api.RegisterMessage((*CreateSubifReply)(nil), "interface.CreateSubifReply")
893         api.RegisterMessage((*CreateVlanSubif)(nil), "interface.CreateVlanSubif")
894         api.RegisterMessage((*CreateVlanSubifReply)(nil), "interface.CreateVlanSubifReply")
895         api.RegisterMessage((*DeleteLoopback)(nil), "interface.DeleteLoopback")
896         api.RegisterMessage((*DeleteLoopbackReply)(nil), "interface.DeleteLoopbackReply")
897         api.RegisterMessage((*DeleteSubif)(nil), "interface.DeleteSubif")
898         api.RegisterMessage((*DeleteSubifReply)(nil), "interface.DeleteSubifReply")
899         api.RegisterMessage((*HwInterfaceSetMtu)(nil), "interface.HwInterfaceSetMtu")
900         api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "interface.HwInterfaceSetMtuReply")
901         api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface.InterfaceNameRenumber")
902         api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface.InterfaceNameRenumberReply")
903         api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "interface.SwInterfaceAddDelAddress")
904         api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "interface.SwInterfaceAddDelAddressReply")
905         api.RegisterMessage((*SwInterfaceClearStats)(nil), "interface.SwInterfaceClearStats")
906         api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "interface.SwInterfaceClearStatsReply")
907         api.RegisterMessage((*SwInterfaceDetails)(nil), "interface.SwInterfaceDetails")
908         api.RegisterMessage((*SwInterfaceDump)(nil), "interface.SwInterfaceDump")
909         api.RegisterMessage((*SwInterfaceEvent)(nil), "interface.SwInterfaceEvent")
910         api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "interface.SwInterfaceGetMacAddress")
911         api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "interface.SwInterfaceGetMacAddressReply")
912         api.RegisterMessage((*SwInterfaceGetTable)(nil), "interface.SwInterfaceGetTable")
913         api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "interface.SwInterfaceGetTableReply")
914         api.RegisterMessage((*SwInterfaceRxPlacementDetails)(nil), "interface.SwInterfaceRxPlacementDetails")
915         api.RegisterMessage((*SwInterfaceRxPlacementDump)(nil), "interface.SwInterfaceRxPlacementDump")
916         api.RegisterMessage((*SwInterfaceSetFlags)(nil), "interface.SwInterfaceSetFlags")
917         api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "interface.SwInterfaceSetFlagsReply")
918         api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcast)(nil), "interface.SwInterfaceSetIPDirectedBroadcast")
919         api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcastReply)(nil), "interface.SwInterfaceSetIPDirectedBroadcastReply")
920         api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "interface.SwInterfaceSetMacAddress")
921         api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "interface.SwInterfaceSetMacAddressReply")
922         api.RegisterMessage((*SwInterfaceSetMtu)(nil), "interface.SwInterfaceSetMtu")
923         api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "interface.SwInterfaceSetMtuReply")
924         api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "interface.SwInterfaceSetRxMode")
925         api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "interface.SwInterfaceSetRxModeReply")
926         api.RegisterMessage((*SwInterfaceSetRxPlacement)(nil), "interface.SwInterfaceSetRxPlacement")
927         api.RegisterMessage((*SwInterfaceSetRxPlacementReply)(nil), "interface.SwInterfaceSetRxPlacementReply")
928         api.RegisterMessage((*SwInterfaceSetTable)(nil), "interface.SwInterfaceSetTable")
929         api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "interface.SwInterfaceSetTableReply")
930         api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "interface.SwInterfaceSetUnnumbered")
931         api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "interface.SwInterfaceSetUnnumberedReply")
932         api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "interface.SwInterfaceTagAddDel")
933         api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "interface.SwInterfaceTagAddDelReply")
934         api.RegisterMessage((*WantInterfaceEvents)(nil), "interface.WantInterfaceEvents")
935         api.RegisterMessage((*WantInterfaceEventsReply)(nil), "interface.WantInterfaceEventsReply")
936 }
937
938 // Messages returns list of all messages in this module.
939 func AllMessages() []api.Message {
940         return []api.Message{
941                 (*CollectDetailedInterfaceStats)(nil),
942                 (*CollectDetailedInterfaceStatsReply)(nil),
943                 (*CreateLoopback)(nil),
944                 (*CreateLoopbackInstance)(nil),
945                 (*CreateLoopbackInstanceReply)(nil),
946                 (*CreateLoopbackReply)(nil),
947                 (*CreateSubif)(nil),
948                 (*CreateSubifReply)(nil),
949                 (*CreateVlanSubif)(nil),
950                 (*CreateVlanSubifReply)(nil),
951                 (*DeleteLoopback)(nil),
952                 (*DeleteLoopbackReply)(nil),
953                 (*DeleteSubif)(nil),
954                 (*DeleteSubifReply)(nil),
955                 (*HwInterfaceSetMtu)(nil),
956                 (*HwInterfaceSetMtuReply)(nil),
957                 (*InterfaceNameRenumber)(nil),
958                 (*InterfaceNameRenumberReply)(nil),
959                 (*SwInterfaceAddDelAddress)(nil),
960                 (*SwInterfaceAddDelAddressReply)(nil),
961                 (*SwInterfaceClearStats)(nil),
962                 (*SwInterfaceClearStatsReply)(nil),
963                 (*SwInterfaceDetails)(nil),
964                 (*SwInterfaceDump)(nil),
965                 (*SwInterfaceEvent)(nil),
966                 (*SwInterfaceGetMacAddress)(nil),
967                 (*SwInterfaceGetMacAddressReply)(nil),
968                 (*SwInterfaceGetTable)(nil),
969                 (*SwInterfaceGetTableReply)(nil),
970                 (*SwInterfaceRxPlacementDetails)(nil),
971                 (*SwInterfaceRxPlacementDump)(nil),
972                 (*SwInterfaceSetFlags)(nil),
973                 (*SwInterfaceSetFlagsReply)(nil),
974                 (*SwInterfaceSetIPDirectedBroadcast)(nil),
975                 (*SwInterfaceSetIPDirectedBroadcastReply)(nil),
976                 (*SwInterfaceSetMacAddress)(nil),
977                 (*SwInterfaceSetMacAddressReply)(nil),
978                 (*SwInterfaceSetMtu)(nil),
979                 (*SwInterfaceSetMtuReply)(nil),
980                 (*SwInterfaceSetRxMode)(nil),
981                 (*SwInterfaceSetRxModeReply)(nil),
982                 (*SwInterfaceSetRxPlacement)(nil),
983                 (*SwInterfaceSetRxPlacementReply)(nil),
984                 (*SwInterfaceSetTable)(nil),
985                 (*SwInterfaceSetTableReply)(nil),
986                 (*SwInterfaceSetUnnumbered)(nil),
987                 (*SwInterfaceSetUnnumberedReply)(nil),
988                 (*SwInterfaceTagAddDel)(nil),
989                 (*SwInterfaceTagAddDelReply)(nil),
990                 (*WantInterfaceEvents)(nil),
991                 (*WantInterfaceEventsReply)(nil),
992         }
993 }
994
995 // RPCService represents RPC service API for interface module.
996 type RPCService interface {
997         DumpSwInterface(ctx context.Context, in *SwInterfaceDump) (RPCService_DumpSwInterfaceClient, error)
998         DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) (RPCService_DumpSwInterfaceRxPlacementClient, error)
999         CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error)
1000         CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error)
1001         CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error)
1002         CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error)
1003         CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error)
1004         DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error)
1005         DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error)
1006         HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error)
1007         InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error)
1008         SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error)
1009         SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
1010         SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
1011         SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
1012         SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
1013         SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error)
1014         SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
1015         SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
1016         SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
1017         SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error)
1018         SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
1019         SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
1020         SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
1021         WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error)
1022 }
1023
1024 type serviceClient struct {
1025         ch api.Channel
1026 }
1027
1028 func NewServiceClient(ch api.Channel) RPCService {
1029         return &serviceClient{ch}
1030 }
1031
1032 func (c *serviceClient) DumpSwInterface(ctx context.Context, in *SwInterfaceDump) (RPCService_DumpSwInterfaceClient, error) {
1033         stream := c.ch.SendMultiRequest(in)
1034         x := &serviceClient_DumpSwInterfaceClient{stream}
1035         return x, nil
1036 }
1037
1038 type RPCService_DumpSwInterfaceClient interface {
1039         Recv() (*SwInterfaceDetails, error)
1040 }
1041
1042 type serviceClient_DumpSwInterfaceClient struct {
1043         api.MultiRequestCtx
1044 }
1045
1046 func (c *serviceClient_DumpSwInterfaceClient) Recv() (*SwInterfaceDetails, error) {
1047         m := new(SwInterfaceDetails)
1048         stop, err := c.MultiRequestCtx.ReceiveReply(m)
1049         if err != nil {
1050                 return nil, err
1051         }
1052         if stop {
1053                 return nil, io.EOF
1054         }
1055         return m, nil
1056 }
1057
1058 func (c *serviceClient) DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) (RPCService_DumpSwInterfaceRxPlacementClient, error) {
1059         stream := c.ch.SendMultiRequest(in)
1060         x := &serviceClient_DumpSwInterfaceRxPlacementClient{stream}
1061         return x, nil
1062 }
1063
1064 type RPCService_DumpSwInterfaceRxPlacementClient interface {
1065         Recv() (*SwInterfaceRxPlacementDetails, error)
1066 }
1067
1068 type serviceClient_DumpSwInterfaceRxPlacementClient struct {
1069         api.MultiRequestCtx
1070 }
1071
1072 func (c *serviceClient_DumpSwInterfaceRxPlacementClient) Recv() (*SwInterfaceRxPlacementDetails, error) {
1073         m := new(SwInterfaceRxPlacementDetails)
1074         stop, err := c.MultiRequestCtx.ReceiveReply(m)
1075         if err != nil {
1076                 return nil, err
1077         }
1078         if stop {
1079                 return nil, io.EOF
1080         }
1081         return m, nil
1082 }
1083
1084 func (c *serviceClient) CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error) {
1085         out := new(CollectDetailedInterfaceStatsReply)
1086         err := c.ch.SendRequest(in).ReceiveReply(out)
1087         if err != nil {
1088                 return nil, err
1089         }
1090         return out, nil
1091 }
1092
1093 func (c *serviceClient) CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error) {
1094         out := new(CreateLoopbackReply)
1095         err := c.ch.SendRequest(in).ReceiveReply(out)
1096         if err != nil {
1097                 return nil, err
1098         }
1099         return out, nil
1100 }
1101
1102 func (c *serviceClient) CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error) {
1103         out := new(CreateLoopbackInstanceReply)
1104         err := c.ch.SendRequest(in).ReceiveReply(out)
1105         if err != nil {
1106                 return nil, err
1107         }
1108         return out, nil
1109 }
1110
1111 func (c *serviceClient) CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error) {
1112         out := new(CreateSubifReply)
1113         err := c.ch.SendRequest(in).ReceiveReply(out)
1114         if err != nil {
1115                 return nil, err
1116         }
1117         return out, nil
1118 }
1119
1120 func (c *serviceClient) CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error) {
1121         out := new(CreateVlanSubifReply)
1122         err := c.ch.SendRequest(in).ReceiveReply(out)
1123         if err != nil {
1124                 return nil, err
1125         }
1126         return out, nil
1127 }
1128
1129 func (c *serviceClient) DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error) {
1130         out := new(DeleteLoopbackReply)
1131         err := c.ch.SendRequest(in).ReceiveReply(out)
1132         if err != nil {
1133                 return nil, err
1134         }
1135         return out, nil
1136 }
1137
1138 func (c *serviceClient) DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error) {
1139         out := new(DeleteSubifReply)
1140         err := c.ch.SendRequest(in).ReceiveReply(out)
1141         if err != nil {
1142                 return nil, err
1143         }
1144         return out, nil
1145 }
1146
1147 func (c *serviceClient) HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error) {
1148         out := new(HwInterfaceSetMtuReply)
1149         err := c.ch.SendRequest(in).ReceiveReply(out)
1150         if err != nil {
1151                 return nil, err
1152         }
1153         return out, nil
1154 }
1155
1156 func (c *serviceClient) InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error) {
1157         out := new(InterfaceNameRenumberReply)
1158         err := c.ch.SendRequest(in).ReceiveReply(out)
1159         if err != nil {
1160                 return nil, err
1161         }
1162         return out, nil
1163 }
1164
1165 func (c *serviceClient) SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error) {
1166         out := new(SwInterfaceAddDelAddressReply)
1167         err := c.ch.SendRequest(in).ReceiveReply(out)
1168         if err != nil {
1169                 return nil, err
1170         }
1171         return out, nil
1172 }
1173
1174 func (c *serviceClient) SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error) {
1175         out := new(SwInterfaceClearStatsReply)
1176         err := c.ch.SendRequest(in).ReceiveReply(out)
1177         if err != nil {
1178                 return nil, err
1179         }
1180         return out, nil
1181 }
1182
1183 func (c *serviceClient) SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error) {
1184         out := new(SwInterfaceGetMacAddressReply)
1185         err := c.ch.SendRequest(in).ReceiveReply(out)
1186         if err != nil {
1187                 return nil, err
1188         }
1189         return out, nil
1190 }
1191
1192 func (c *serviceClient) SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error) {
1193         out := new(SwInterfaceGetTableReply)
1194         err := c.ch.SendRequest(in).ReceiveReply(out)
1195         if err != nil {
1196                 return nil, err
1197         }
1198         return out, nil
1199 }
1200
1201 func (c *serviceClient) SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error) {
1202         out := new(SwInterfaceSetFlagsReply)
1203         err := c.ch.SendRequest(in).ReceiveReply(out)
1204         if err != nil {
1205                 return nil, err
1206         }
1207         return out, nil
1208 }
1209
1210 func (c *serviceClient) SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error) {
1211         out := new(SwInterfaceSetIPDirectedBroadcastReply)
1212         err := c.ch.SendRequest(in).ReceiveReply(out)
1213         if err != nil {
1214                 return nil, err
1215         }
1216         return out, nil
1217 }
1218
1219 func (c *serviceClient) SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error) {
1220         out := new(SwInterfaceSetMacAddressReply)
1221         err := c.ch.SendRequest(in).ReceiveReply(out)
1222         if err != nil {
1223                 return nil, err
1224         }
1225         return out, nil
1226 }
1227
1228 func (c *serviceClient) SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error) {
1229         out := new(SwInterfaceSetMtuReply)
1230         err := c.ch.SendRequest(in).ReceiveReply(out)
1231         if err != nil {
1232                 return nil, err
1233         }
1234         return out, nil
1235 }
1236
1237 func (c *serviceClient) SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error) {
1238         out := new(SwInterfaceSetRxModeReply)
1239         err := c.ch.SendRequest(in).ReceiveReply(out)
1240         if err != nil {
1241                 return nil, err
1242         }
1243         return out, nil
1244 }
1245
1246 func (c *serviceClient) SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error) {
1247         out := new(SwInterfaceSetRxPlacementReply)
1248         err := c.ch.SendRequest(in).ReceiveReply(out)
1249         if err != nil {
1250                 return nil, err
1251         }
1252         return out, nil
1253 }
1254
1255 func (c *serviceClient) SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error) {
1256         out := new(SwInterfaceSetTableReply)
1257         err := c.ch.SendRequest(in).ReceiveReply(out)
1258         if err != nil {
1259                 return nil, err
1260         }
1261         return out, nil
1262 }
1263
1264 func (c *serviceClient) SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error) {
1265         out := new(SwInterfaceSetUnnumberedReply)
1266         err := c.ch.SendRequest(in).ReceiveReply(out)
1267         if err != nil {
1268                 return nil, err
1269         }
1270         return out, nil
1271 }
1272
1273 func (c *serviceClient) SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error) {
1274         out := new(SwInterfaceTagAddDelReply)
1275         err := c.ch.SendRequest(in).ReceiveReply(out)
1276         if err != nil {
1277                 return nil, err
1278         }
1279         return out, nil
1280 }
1281
1282 func (c *serviceClient) WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error) {
1283         out := new(WantInterfaceEventsReply)
1284         err := c.ch.SendRequest(in).ReceiveReply(out)
1285         if err != nil {
1286                 return nil, err
1287         }
1288         return out, nil
1289 }
1290
1291 // This is a compile-time assertion to ensure that this generated file
1292 // is compatible with the GoVPP api package it is being compiled against.
1293 // A compilation error at this line likely means your copy of the
1294 // GoVPP api package needs to be updated.
1295 const _ = api.GoVppAPIPackageIsVersion1 // please upgrade the GoVPP api package
1296
1297 // Reference imports to suppress errors if they are not otherwise used.
1298 var _ = api.RegisterMessage
1299 var _ = bytes.NewBuffer
1300 var _ = context.Background
1301 var _ = io.Copy
1302 var _ = strconv.Itoa
1303 var _ = struc.Pack