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