1 // Code generated by GoVPP's binapi-generator. DO NOT EDIT.
2 // source: /usr/share/vpp/api/core/interface.api.json
5 Package interfaces is a generated VPP binary API for 'interface' module.
17 api "git.fd.io/govpp.git/api"
18 struc "github.com/lunixbochs/struc"
24 // ModuleName is the name of this module.
25 ModuleName = "interface"
26 // APIVersion is the API version of this module.
28 // VersionCrc is the CRC of this module.
29 VersionCrc = 0x6aab37be
32 // InterfaceIndex represents VPP binary API alias 'interface_index'.
33 type InterfaceIndex uint32
35 // CollectDetailedInterfaceStats represents VPP binary API message 'collect_detailed_interface_stats'.
36 type CollectDetailedInterfaceStats struct {
41 func (*CollectDetailedInterfaceStats) GetMessageName() string {
42 return "collect_detailed_interface_stats"
44 func (*CollectDetailedInterfaceStats) GetCrcString() string {
47 func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType {
48 return api.RequestMessage
51 // CollectDetailedInterfaceStatsReply represents VPP binary API message 'collect_detailed_interface_stats_reply'.
52 type CollectDetailedInterfaceStatsReply struct {
56 func (*CollectDetailedInterfaceStatsReply) GetMessageName() string {
57 return "collect_detailed_interface_stats_reply"
59 func (*CollectDetailedInterfaceStatsReply) GetCrcString() string {
62 func (*CollectDetailedInterfaceStatsReply) GetMessageType() api.MessageType {
63 return api.ReplyMessage
66 // CreateLoopback represents VPP binary API message 'create_loopback'.
67 type CreateLoopback struct {
68 MacAddress []byte `struc:"[6]byte"`
71 func (*CreateLoopback) GetMessageName() string {
72 return "create_loopback"
74 func (*CreateLoopback) GetCrcString() string {
77 func (*CreateLoopback) GetMessageType() api.MessageType {
78 return api.RequestMessage
81 // CreateLoopbackInstance represents VPP binary API message 'create_loopback_instance'.
82 type CreateLoopbackInstance struct {
83 MacAddress []byte `struc:"[6]byte"`
88 func (*CreateLoopbackInstance) GetMessageName() string {
89 return "create_loopback_instance"
91 func (*CreateLoopbackInstance) GetCrcString() string {
94 func (*CreateLoopbackInstance) GetMessageType() api.MessageType {
95 return api.RequestMessage
98 // CreateLoopbackInstanceReply represents VPP binary API message 'create_loopback_instance_reply'.
99 type CreateLoopbackInstanceReply struct {
104 func (*CreateLoopbackInstanceReply) GetMessageName() string {
105 return "create_loopback_instance_reply"
107 func (*CreateLoopbackInstanceReply) GetCrcString() string {
110 func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType {
111 return api.ReplyMessage
114 // CreateLoopbackReply represents VPP binary API message 'create_loopback_reply'.
115 type CreateLoopbackReply struct {
120 func (*CreateLoopbackReply) GetMessageName() string {
121 return "create_loopback_reply"
123 func (*CreateLoopbackReply) GetCrcString() string {
126 func (*CreateLoopbackReply) GetMessageType() api.MessageType {
127 return api.ReplyMessage
130 // CreateSubif represents VPP binary API message 'create_subif'.
131 type CreateSubif struct {
146 func (*CreateSubif) GetMessageName() string {
147 return "create_subif"
149 func (*CreateSubif) GetCrcString() string {
152 func (*CreateSubif) GetMessageType() api.MessageType {
153 return api.RequestMessage
156 // CreateSubifReply represents VPP binary API message 'create_subif_reply'.
157 type CreateSubifReply struct {
162 func (*CreateSubifReply) GetMessageName() string {
163 return "create_subif_reply"
165 func (*CreateSubifReply) GetCrcString() string {
168 func (*CreateSubifReply) GetMessageType() api.MessageType {
169 return api.ReplyMessage
172 // CreateVlanSubif represents VPP binary API message 'create_vlan_subif'.
173 type CreateVlanSubif struct {
178 func (*CreateVlanSubif) GetMessageName() string {
179 return "create_vlan_subif"
181 func (*CreateVlanSubif) GetCrcString() string {
184 func (*CreateVlanSubif) GetMessageType() api.MessageType {
185 return api.RequestMessage
188 // CreateVlanSubifReply represents VPP binary API message 'create_vlan_subif_reply'.
189 type CreateVlanSubifReply struct {
194 func (*CreateVlanSubifReply) GetMessageName() string {
195 return "create_vlan_subif_reply"
197 func (*CreateVlanSubifReply) GetCrcString() string {
200 func (*CreateVlanSubifReply) GetMessageType() api.MessageType {
201 return api.ReplyMessage
204 // DeleteLoopback represents VPP binary API message 'delete_loopback'.
205 type DeleteLoopback struct {
209 func (*DeleteLoopback) GetMessageName() string {
210 return "delete_loopback"
212 func (*DeleteLoopback) GetCrcString() string {
215 func (*DeleteLoopback) GetMessageType() api.MessageType {
216 return api.RequestMessage
219 // DeleteLoopbackReply represents VPP binary API message 'delete_loopback_reply'.
220 type DeleteLoopbackReply struct {
224 func (*DeleteLoopbackReply) GetMessageName() string {
225 return "delete_loopback_reply"
227 func (*DeleteLoopbackReply) GetCrcString() string {
230 func (*DeleteLoopbackReply) GetMessageType() api.MessageType {
231 return api.ReplyMessage
234 // DeleteSubif represents VPP binary API message 'delete_subif'.
235 type DeleteSubif struct {
239 func (*DeleteSubif) GetMessageName() string {
240 return "delete_subif"
242 func (*DeleteSubif) GetCrcString() string {
245 func (*DeleteSubif) GetMessageType() api.MessageType {
246 return api.RequestMessage
249 // DeleteSubifReply represents VPP binary API message 'delete_subif_reply'.
250 type DeleteSubifReply struct {
254 func (*DeleteSubifReply) GetMessageName() string {
255 return "delete_subif_reply"
257 func (*DeleteSubifReply) GetCrcString() string {
260 func (*DeleteSubifReply) GetMessageType() api.MessageType {
261 return api.ReplyMessage
264 // HwInterfaceSetMtu represents VPP binary API message 'hw_interface_set_mtu'.
265 type HwInterfaceSetMtu struct {
270 func (*HwInterfaceSetMtu) GetMessageName() string {
271 return "hw_interface_set_mtu"
273 func (*HwInterfaceSetMtu) GetCrcString() string {
276 func (*HwInterfaceSetMtu) GetMessageType() api.MessageType {
277 return api.RequestMessage
280 // HwInterfaceSetMtuReply represents VPP binary API message 'hw_interface_set_mtu_reply'.
281 type HwInterfaceSetMtuReply struct {
285 func (*HwInterfaceSetMtuReply) GetMessageName() string {
286 return "hw_interface_set_mtu_reply"
288 func (*HwInterfaceSetMtuReply) GetCrcString() string {
291 func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType {
292 return api.ReplyMessage
295 // InterfaceNameRenumber represents VPP binary API message 'interface_name_renumber'.
296 type InterfaceNameRenumber struct {
298 NewShowDevInstance uint32
301 func (*InterfaceNameRenumber) GetMessageName() string {
302 return "interface_name_renumber"
304 func (*InterfaceNameRenumber) GetCrcString() string {
307 func (*InterfaceNameRenumber) GetMessageType() api.MessageType {
308 return api.RequestMessage
311 // InterfaceNameRenumberReply represents VPP binary API message 'interface_name_renumber_reply'.
312 type InterfaceNameRenumberReply struct {
316 func (*InterfaceNameRenumberReply) GetMessageName() string {
317 return "interface_name_renumber_reply"
319 func (*InterfaceNameRenumberReply) GetCrcString() string {
322 func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType {
323 return api.ReplyMessage
326 // SwInterfaceAddDelAddress represents VPP binary API message 'sw_interface_add_del_address'.
327 type SwInterfaceAddDelAddress struct {
333 Address []byte `struc:"[16]byte"`
336 func (*SwInterfaceAddDelAddress) GetMessageName() string {
337 return "sw_interface_add_del_address"
339 func (*SwInterfaceAddDelAddress) GetCrcString() string {
342 func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType {
343 return api.RequestMessage
346 // SwInterfaceAddDelAddressReply represents VPP binary API message 'sw_interface_add_del_address_reply'.
347 type SwInterfaceAddDelAddressReply struct {
351 func (*SwInterfaceAddDelAddressReply) GetMessageName() string {
352 return "sw_interface_add_del_address_reply"
354 func (*SwInterfaceAddDelAddressReply) GetCrcString() string {
357 func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType {
358 return api.ReplyMessage
361 // SwInterfaceClearStats represents VPP binary API message 'sw_interface_clear_stats'.
362 type SwInterfaceClearStats struct {
366 func (*SwInterfaceClearStats) GetMessageName() string {
367 return "sw_interface_clear_stats"
369 func (*SwInterfaceClearStats) GetCrcString() string {
372 func (*SwInterfaceClearStats) GetMessageType() api.MessageType {
373 return api.RequestMessage
376 // SwInterfaceClearStatsReply represents VPP binary API message 'sw_interface_clear_stats_reply'.
377 type SwInterfaceClearStatsReply struct {
381 func (*SwInterfaceClearStatsReply) GetMessageName() string {
382 return "sw_interface_clear_stats_reply"
384 func (*SwInterfaceClearStatsReply) GetCrcString() string {
387 func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType {
388 return api.ReplyMessage
391 // SwInterfaceDetails represents VPP binary API message 'sw_interface_details'.
392 type SwInterfaceDetails struct {
395 L2AddressLength uint32
396 L2Address []byte `struc:"[8]byte"`
397 InterfaceName []byte `struc:"[64]byte"`
403 Mtu []uint32 `struc:"[4]uint32"`
407 SubNumberOfTags uint8
408 SubOuterVlanID uint16
409 SubInnerVlanID uint16
412 SubOuterVlanIDAny uint8
413 SubInnerVlanIDAny uint8
418 Tag []byte `struc:"[64]byte"`
420 BDmac []byte `struc:"[6]byte"`
421 BSmac []byte `struc:"[6]byte"`
426 func (*SwInterfaceDetails) GetMessageName() string {
427 return "sw_interface_details"
429 func (*SwInterfaceDetails) GetCrcString() string {
432 func (*SwInterfaceDetails) GetMessageType() api.MessageType {
433 return api.ReplyMessage
436 // SwInterfaceDump represents VPP binary API message 'sw_interface_dump'.
437 type SwInterfaceDump struct {
438 SwIfIndex InterfaceIndex
439 NameFilterValid uint8
440 NameFilter []byte `struc:"[49]byte"`
443 func (*SwInterfaceDump) GetMessageName() string {
444 return "sw_interface_dump"
446 func (*SwInterfaceDump) GetCrcString() string {
449 func (*SwInterfaceDump) GetMessageType() api.MessageType {
450 return api.RequestMessage
453 // SwInterfaceEvent represents VPP binary API message 'sw_interface_event'.
454 type SwInterfaceEvent struct {
462 func (*SwInterfaceEvent) GetMessageName() string {
463 return "sw_interface_event"
465 func (*SwInterfaceEvent) GetCrcString() string {
468 func (*SwInterfaceEvent) GetMessageType() api.MessageType {
469 return api.EventMessage
472 // SwInterfaceGetMacAddress represents VPP binary API message 'sw_interface_get_mac_address'.
473 type SwInterfaceGetMacAddress struct {
477 func (*SwInterfaceGetMacAddress) GetMessageName() string {
478 return "sw_interface_get_mac_address"
480 func (*SwInterfaceGetMacAddress) GetCrcString() string {
483 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType {
484 return api.RequestMessage
487 // SwInterfaceGetMacAddressReply represents VPP binary API message 'sw_interface_get_mac_address_reply'.
488 type SwInterfaceGetMacAddressReply struct {
490 MacAddress []byte `struc:"[6]byte"`
493 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
494 return "sw_interface_get_mac_address_reply"
496 func (*SwInterfaceGetMacAddressReply) GetCrcString() string {
499 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType {
500 return api.ReplyMessage
503 // SwInterfaceGetTable represents VPP binary API message 'sw_interface_get_table'.
504 type SwInterfaceGetTable struct {
509 func (*SwInterfaceGetTable) GetMessageName() string {
510 return "sw_interface_get_table"
512 func (*SwInterfaceGetTable) GetCrcString() string {
515 func (*SwInterfaceGetTable) GetMessageType() api.MessageType {
516 return api.RequestMessage
519 // SwInterfaceGetTableReply represents VPP binary API message 'sw_interface_get_table_reply'.
520 type SwInterfaceGetTableReply struct {
525 func (*SwInterfaceGetTableReply) GetMessageName() string {
526 return "sw_interface_get_table_reply"
528 func (*SwInterfaceGetTableReply) GetCrcString() string {
531 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType {
532 return api.ReplyMessage
535 // SwInterfaceRxPlacementDetails represents VPP binary API message 'sw_interface_rx_placement_details'.
536 type SwInterfaceRxPlacementDetails struct {
543 func (*SwInterfaceRxPlacementDetails) GetMessageName() string {
544 return "sw_interface_rx_placement_details"
546 func (*SwInterfaceRxPlacementDetails) GetCrcString() string {
549 func (*SwInterfaceRxPlacementDetails) GetMessageType() api.MessageType {
550 return api.RequestMessage
553 // SwInterfaceRxPlacementDump represents VPP binary API message 'sw_interface_rx_placement_dump'.
554 type SwInterfaceRxPlacementDump struct {
558 func (*SwInterfaceRxPlacementDump) GetMessageName() string {
559 return "sw_interface_rx_placement_dump"
561 func (*SwInterfaceRxPlacementDump) GetCrcString() string {
564 func (*SwInterfaceRxPlacementDump) GetMessageType() api.MessageType {
565 return api.RequestMessage
568 // SwInterfaceSetFlags represents VPP binary API message 'sw_interface_set_flags'.
569 type SwInterfaceSetFlags struct {
574 func (*SwInterfaceSetFlags) GetMessageName() string {
575 return "sw_interface_set_flags"
577 func (*SwInterfaceSetFlags) GetCrcString() string {
580 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType {
581 return api.RequestMessage
584 // SwInterfaceSetFlagsReply represents VPP binary API message 'sw_interface_set_flags_reply'.
585 type SwInterfaceSetFlagsReply struct {
589 func (*SwInterfaceSetFlagsReply) GetMessageName() string {
590 return "sw_interface_set_flags_reply"
592 func (*SwInterfaceSetFlagsReply) GetCrcString() string {
595 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType {
596 return api.ReplyMessage
599 // SwInterfaceSetIPDirectedBroadcast represents VPP binary API message 'sw_interface_set_ip_directed_broadcast'.
600 type SwInterfaceSetIPDirectedBroadcast struct {
605 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageName() string {
606 return "sw_interface_set_ip_directed_broadcast"
608 func (*SwInterfaceSetIPDirectedBroadcast) GetCrcString() string {
611 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageType() api.MessageType {
612 return api.RequestMessage
615 // SwInterfaceSetIPDirectedBroadcastReply represents VPP binary API message 'sw_interface_set_ip_directed_broadcast_reply'.
616 type SwInterfaceSetIPDirectedBroadcastReply struct {
620 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageName() string {
621 return "sw_interface_set_ip_directed_broadcast_reply"
623 func (*SwInterfaceSetIPDirectedBroadcastReply) GetCrcString() string {
626 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageType() api.MessageType {
627 return api.ReplyMessage
630 // SwInterfaceSetMacAddress represents VPP binary API message 'sw_interface_set_mac_address'.
631 type SwInterfaceSetMacAddress struct {
633 MacAddress []byte `struc:"[6]byte"`
636 func (*SwInterfaceSetMacAddress) GetMessageName() string {
637 return "sw_interface_set_mac_address"
639 func (*SwInterfaceSetMacAddress) GetCrcString() string {
642 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType {
643 return api.RequestMessage
646 // SwInterfaceSetMacAddressReply represents VPP binary API message 'sw_interface_set_mac_address_reply'.
647 type SwInterfaceSetMacAddressReply struct {
651 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
652 return "sw_interface_set_mac_address_reply"
654 func (*SwInterfaceSetMacAddressReply) GetCrcString() string {
657 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType {
658 return api.ReplyMessage
661 // SwInterfaceSetMtu represents VPP binary API message 'sw_interface_set_mtu'.
662 type SwInterfaceSetMtu struct {
664 Mtu []uint32 `struc:"[4]uint32"`
667 func (*SwInterfaceSetMtu) GetMessageName() string {
668 return "sw_interface_set_mtu"
670 func (*SwInterfaceSetMtu) GetCrcString() string {
673 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType {
674 return api.RequestMessage
677 // SwInterfaceSetMtuReply represents VPP binary API message 'sw_interface_set_mtu_reply'.
678 type SwInterfaceSetMtuReply struct {
682 func (*SwInterfaceSetMtuReply) GetMessageName() string {
683 return "sw_interface_set_mtu_reply"
685 func (*SwInterfaceSetMtuReply) GetCrcString() string {
688 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType {
689 return api.ReplyMessage
692 // SwInterfaceSetRxMode represents VPP binary API message 'sw_interface_set_rx_mode'.
693 type SwInterfaceSetRxMode struct {
700 func (*SwInterfaceSetRxMode) GetMessageName() string {
701 return "sw_interface_set_rx_mode"
703 func (*SwInterfaceSetRxMode) GetCrcString() string {
706 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType {
707 return api.RequestMessage
710 // SwInterfaceSetRxModeReply represents VPP binary API message 'sw_interface_set_rx_mode_reply'.
711 type SwInterfaceSetRxModeReply struct {
715 func (*SwInterfaceSetRxModeReply) GetMessageName() string {
716 return "sw_interface_set_rx_mode_reply"
718 func (*SwInterfaceSetRxModeReply) GetCrcString() string {
721 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType {
722 return api.ReplyMessage
725 // SwInterfaceSetRxPlacement represents VPP binary API message 'sw_interface_set_rx_placement'.
726 type SwInterfaceSetRxPlacement struct {
733 func (*SwInterfaceSetRxPlacement) GetMessageName() string {
734 return "sw_interface_set_rx_placement"
736 func (*SwInterfaceSetRxPlacement) GetCrcString() string {
739 func (*SwInterfaceSetRxPlacement) GetMessageType() api.MessageType {
740 return api.RequestMessage
743 // SwInterfaceSetRxPlacementReply represents VPP binary API message 'sw_interface_set_rx_placement_reply'.
744 type SwInterfaceSetRxPlacementReply struct {
748 func (*SwInterfaceSetRxPlacementReply) GetMessageName() string {
749 return "sw_interface_set_rx_placement_reply"
751 func (*SwInterfaceSetRxPlacementReply) GetCrcString() string {
754 func (*SwInterfaceSetRxPlacementReply) GetMessageType() api.MessageType {
755 return api.ReplyMessage
758 // SwInterfaceSetTable represents VPP binary API message 'sw_interface_set_table'.
759 type SwInterfaceSetTable struct {
765 func (*SwInterfaceSetTable) GetMessageName() string {
766 return "sw_interface_set_table"
768 func (*SwInterfaceSetTable) GetCrcString() string {
771 func (*SwInterfaceSetTable) GetMessageType() api.MessageType {
772 return api.RequestMessage
775 // SwInterfaceSetTableReply represents VPP binary API message 'sw_interface_set_table_reply'.
776 type SwInterfaceSetTableReply struct {
780 func (*SwInterfaceSetTableReply) GetMessageName() string {
781 return "sw_interface_set_table_reply"
783 func (*SwInterfaceSetTableReply) GetCrcString() string {
786 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType {
787 return api.ReplyMessage
790 // SwInterfaceSetUnnumbered represents VPP binary API message 'sw_interface_set_unnumbered'.
791 type SwInterfaceSetUnnumbered struct {
793 UnnumberedSwIfIndex uint32
797 func (*SwInterfaceSetUnnumbered) GetMessageName() string {
798 return "sw_interface_set_unnumbered"
800 func (*SwInterfaceSetUnnumbered) GetCrcString() string {
803 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType {
804 return api.RequestMessage
807 // SwInterfaceSetUnnumberedReply represents VPP binary API message 'sw_interface_set_unnumbered_reply'.
808 type SwInterfaceSetUnnumberedReply struct {
812 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
813 return "sw_interface_set_unnumbered_reply"
815 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string {
818 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType {
819 return api.ReplyMessage
822 // SwInterfaceTagAddDel represents VPP binary API message 'sw_interface_tag_add_del'.
823 type SwInterfaceTagAddDel struct {
826 Tag []byte `struc:"[64]byte"`
829 func (*SwInterfaceTagAddDel) GetMessageName() string {
830 return "sw_interface_tag_add_del"
832 func (*SwInterfaceTagAddDel) GetCrcString() string {
835 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType {
836 return api.RequestMessage
839 // SwInterfaceTagAddDelReply represents VPP binary API message 'sw_interface_tag_add_del_reply'.
840 type SwInterfaceTagAddDelReply struct {
844 func (*SwInterfaceTagAddDelReply) GetMessageName() string {
845 return "sw_interface_tag_add_del_reply"
847 func (*SwInterfaceTagAddDelReply) GetCrcString() string {
850 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType {
851 return api.ReplyMessage
854 // WantInterfaceEvents represents VPP binary API message 'want_interface_events'.
855 type WantInterfaceEvents struct {
860 func (*WantInterfaceEvents) GetMessageName() string {
861 return "want_interface_events"
863 func (*WantInterfaceEvents) GetCrcString() string {
866 func (*WantInterfaceEvents) GetMessageType() api.MessageType {
867 return api.RequestMessage
870 // WantInterfaceEventsReply represents VPP binary API message 'want_interface_events_reply'.
871 type WantInterfaceEventsReply struct {
875 func (*WantInterfaceEventsReply) GetMessageName() string {
876 return "want_interface_events_reply"
878 func (*WantInterfaceEventsReply) GetCrcString() string {
881 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType {
882 return api.ReplyMessage
886 api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "interface.CollectDetailedInterfaceStats")
887 api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "interface.CollectDetailedInterfaceStatsReply")
888 api.RegisterMessage((*CreateLoopback)(nil), "interface.CreateLoopback")
889 api.RegisterMessage((*CreateLoopbackInstance)(nil), "interface.CreateLoopbackInstance")
890 api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "interface.CreateLoopbackInstanceReply")
891 api.RegisterMessage((*CreateLoopbackReply)(nil), "interface.CreateLoopbackReply")
892 api.RegisterMessage((*CreateSubif)(nil), "interface.CreateSubif")
893 api.RegisterMessage((*CreateSubifReply)(nil), "interface.CreateSubifReply")
894 api.RegisterMessage((*CreateVlanSubif)(nil), "interface.CreateVlanSubif")
895 api.RegisterMessage((*CreateVlanSubifReply)(nil), "interface.CreateVlanSubifReply")
896 api.RegisterMessage((*DeleteLoopback)(nil), "interface.DeleteLoopback")
897 api.RegisterMessage((*DeleteLoopbackReply)(nil), "interface.DeleteLoopbackReply")
898 api.RegisterMessage((*DeleteSubif)(nil), "interface.DeleteSubif")
899 api.RegisterMessage((*DeleteSubifReply)(nil), "interface.DeleteSubifReply")
900 api.RegisterMessage((*HwInterfaceSetMtu)(nil), "interface.HwInterfaceSetMtu")
901 api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "interface.HwInterfaceSetMtuReply")
902 api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface.InterfaceNameRenumber")
903 api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface.InterfaceNameRenumberReply")
904 api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "interface.SwInterfaceAddDelAddress")
905 api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "interface.SwInterfaceAddDelAddressReply")
906 api.RegisterMessage((*SwInterfaceClearStats)(nil), "interface.SwInterfaceClearStats")
907 api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "interface.SwInterfaceClearStatsReply")
908 api.RegisterMessage((*SwInterfaceDetails)(nil), "interface.SwInterfaceDetails")
909 api.RegisterMessage((*SwInterfaceDump)(nil), "interface.SwInterfaceDump")
910 api.RegisterMessage((*SwInterfaceEvent)(nil), "interface.SwInterfaceEvent")
911 api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "interface.SwInterfaceGetMacAddress")
912 api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "interface.SwInterfaceGetMacAddressReply")
913 api.RegisterMessage((*SwInterfaceGetTable)(nil), "interface.SwInterfaceGetTable")
914 api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "interface.SwInterfaceGetTableReply")
915 api.RegisterMessage((*SwInterfaceRxPlacementDetails)(nil), "interface.SwInterfaceRxPlacementDetails")
916 api.RegisterMessage((*SwInterfaceRxPlacementDump)(nil), "interface.SwInterfaceRxPlacementDump")
917 api.RegisterMessage((*SwInterfaceSetFlags)(nil), "interface.SwInterfaceSetFlags")
918 api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "interface.SwInterfaceSetFlagsReply")
919 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcast)(nil), "interface.SwInterfaceSetIPDirectedBroadcast")
920 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcastReply)(nil), "interface.SwInterfaceSetIPDirectedBroadcastReply")
921 api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "interface.SwInterfaceSetMacAddress")
922 api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "interface.SwInterfaceSetMacAddressReply")
923 api.RegisterMessage((*SwInterfaceSetMtu)(nil), "interface.SwInterfaceSetMtu")
924 api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "interface.SwInterfaceSetMtuReply")
925 api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "interface.SwInterfaceSetRxMode")
926 api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "interface.SwInterfaceSetRxModeReply")
927 api.RegisterMessage((*SwInterfaceSetRxPlacement)(nil), "interface.SwInterfaceSetRxPlacement")
928 api.RegisterMessage((*SwInterfaceSetRxPlacementReply)(nil), "interface.SwInterfaceSetRxPlacementReply")
929 api.RegisterMessage((*SwInterfaceSetTable)(nil), "interface.SwInterfaceSetTable")
930 api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "interface.SwInterfaceSetTableReply")
931 api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "interface.SwInterfaceSetUnnumbered")
932 api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "interface.SwInterfaceSetUnnumberedReply")
933 api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "interface.SwInterfaceTagAddDel")
934 api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "interface.SwInterfaceTagAddDelReply")
935 api.RegisterMessage((*WantInterfaceEvents)(nil), "interface.WantInterfaceEvents")
936 api.RegisterMessage((*WantInterfaceEventsReply)(nil), "interface.WantInterfaceEventsReply")
939 // Messages returns list of all messages in this module.
940 func AllMessages() []api.Message {
941 return []api.Message{
942 (*CollectDetailedInterfaceStats)(nil),
943 (*CollectDetailedInterfaceStatsReply)(nil),
944 (*CreateLoopback)(nil),
945 (*CreateLoopbackInstance)(nil),
946 (*CreateLoopbackInstanceReply)(nil),
947 (*CreateLoopbackReply)(nil),
949 (*CreateSubifReply)(nil),
950 (*CreateVlanSubif)(nil),
951 (*CreateVlanSubifReply)(nil),
952 (*DeleteLoopback)(nil),
953 (*DeleteLoopbackReply)(nil),
955 (*DeleteSubifReply)(nil),
956 (*HwInterfaceSetMtu)(nil),
957 (*HwInterfaceSetMtuReply)(nil),
958 (*InterfaceNameRenumber)(nil),
959 (*InterfaceNameRenumberReply)(nil),
960 (*SwInterfaceAddDelAddress)(nil),
961 (*SwInterfaceAddDelAddressReply)(nil),
962 (*SwInterfaceClearStats)(nil),
963 (*SwInterfaceClearStatsReply)(nil),
964 (*SwInterfaceDetails)(nil),
965 (*SwInterfaceDump)(nil),
966 (*SwInterfaceEvent)(nil),
967 (*SwInterfaceGetMacAddress)(nil),
968 (*SwInterfaceGetMacAddressReply)(nil),
969 (*SwInterfaceGetTable)(nil),
970 (*SwInterfaceGetTableReply)(nil),
971 (*SwInterfaceRxPlacementDetails)(nil),
972 (*SwInterfaceRxPlacementDump)(nil),
973 (*SwInterfaceSetFlags)(nil),
974 (*SwInterfaceSetFlagsReply)(nil),
975 (*SwInterfaceSetIPDirectedBroadcast)(nil),
976 (*SwInterfaceSetIPDirectedBroadcastReply)(nil),
977 (*SwInterfaceSetMacAddress)(nil),
978 (*SwInterfaceSetMacAddressReply)(nil),
979 (*SwInterfaceSetMtu)(nil),
980 (*SwInterfaceSetMtuReply)(nil),
981 (*SwInterfaceSetRxMode)(nil),
982 (*SwInterfaceSetRxModeReply)(nil),
983 (*SwInterfaceSetRxPlacement)(nil),
984 (*SwInterfaceSetRxPlacementReply)(nil),
985 (*SwInterfaceSetTable)(nil),
986 (*SwInterfaceSetTableReply)(nil),
987 (*SwInterfaceSetUnnumbered)(nil),
988 (*SwInterfaceSetUnnumberedReply)(nil),
989 (*SwInterfaceTagAddDel)(nil),
990 (*SwInterfaceTagAddDelReply)(nil),
991 (*WantInterfaceEvents)(nil),
992 (*WantInterfaceEventsReply)(nil),
996 // RPCService represents RPC service API for interface module.
997 type RPCService interface {
998 DumpSwInterface(ctx context.Context, in *SwInterfaceDump) (RPCService_DumpSwInterfaceClient, error)
999 DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) (RPCService_DumpSwInterfaceRxPlacementClient, error)
1000 CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error)
1001 CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error)
1002 CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error)
1003 CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error)
1004 CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error)
1005 DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error)
1006 DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error)
1007 HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error)
1008 InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error)
1009 SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error)
1010 SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
1011 SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
1012 SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
1013 SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
1014 SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error)
1015 SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
1016 SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
1017 SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
1018 SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error)
1019 SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
1020 SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
1021 SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
1022 WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error)
1025 type serviceClient struct {
1029 func NewServiceClient(ch api.Channel) RPCService {
1030 return &serviceClient{ch}
1033 func (c *serviceClient) DumpSwInterface(ctx context.Context, in *SwInterfaceDump) (RPCService_DumpSwInterfaceClient, error) {
1034 stream := c.ch.SendMultiRequest(in)
1035 x := &serviceClient_DumpSwInterfaceClient{stream}
1039 type RPCService_DumpSwInterfaceClient interface {
1040 Recv() (*SwInterfaceDetails, error)
1043 type serviceClient_DumpSwInterfaceClient struct {
1047 func (c *serviceClient_DumpSwInterfaceClient) Recv() (*SwInterfaceDetails, error) {
1048 m := new(SwInterfaceDetails)
1049 stop, err := c.MultiRequestCtx.ReceiveReply(m)
1059 func (c *serviceClient) DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) (RPCService_DumpSwInterfaceRxPlacementClient, error) {
1060 stream := c.ch.SendMultiRequest(in)
1061 x := &serviceClient_DumpSwInterfaceRxPlacementClient{stream}
1065 type RPCService_DumpSwInterfaceRxPlacementClient interface {
1066 Recv() (*SwInterfaceRxPlacementDetails, error)
1069 type serviceClient_DumpSwInterfaceRxPlacementClient struct {
1073 func (c *serviceClient_DumpSwInterfaceRxPlacementClient) Recv() (*SwInterfaceRxPlacementDetails, error) {
1074 m := new(SwInterfaceRxPlacementDetails)
1075 stop, err := c.MultiRequestCtx.ReceiveReply(m)
1085 func (c *serviceClient) CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error) {
1086 out := new(CollectDetailedInterfaceStatsReply)
1087 err := c.ch.SendRequest(in).ReceiveReply(out)
1094 func (c *serviceClient) CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error) {
1095 out := new(CreateLoopbackReply)
1096 err := c.ch.SendRequest(in).ReceiveReply(out)
1103 func (c *serviceClient) CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error) {
1104 out := new(CreateLoopbackInstanceReply)
1105 err := c.ch.SendRequest(in).ReceiveReply(out)
1112 func (c *serviceClient) CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error) {
1113 out := new(CreateSubifReply)
1114 err := c.ch.SendRequest(in).ReceiveReply(out)
1121 func (c *serviceClient) CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error) {
1122 out := new(CreateVlanSubifReply)
1123 err := c.ch.SendRequest(in).ReceiveReply(out)
1130 func (c *serviceClient) DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error) {
1131 out := new(DeleteLoopbackReply)
1132 err := c.ch.SendRequest(in).ReceiveReply(out)
1139 func (c *serviceClient) DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error) {
1140 out := new(DeleteSubifReply)
1141 err := c.ch.SendRequest(in).ReceiveReply(out)
1148 func (c *serviceClient) HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error) {
1149 out := new(HwInterfaceSetMtuReply)
1150 err := c.ch.SendRequest(in).ReceiveReply(out)
1157 func (c *serviceClient) InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error) {
1158 out := new(InterfaceNameRenumberReply)
1159 err := c.ch.SendRequest(in).ReceiveReply(out)
1166 func (c *serviceClient) SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error) {
1167 out := new(SwInterfaceAddDelAddressReply)
1168 err := c.ch.SendRequest(in).ReceiveReply(out)
1175 func (c *serviceClient) SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error) {
1176 out := new(SwInterfaceClearStatsReply)
1177 err := c.ch.SendRequest(in).ReceiveReply(out)
1184 func (c *serviceClient) SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error) {
1185 out := new(SwInterfaceGetMacAddressReply)
1186 err := c.ch.SendRequest(in).ReceiveReply(out)
1193 func (c *serviceClient) SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error) {
1194 out := new(SwInterfaceGetTableReply)
1195 err := c.ch.SendRequest(in).ReceiveReply(out)
1202 func (c *serviceClient) SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error) {
1203 out := new(SwInterfaceSetFlagsReply)
1204 err := c.ch.SendRequest(in).ReceiveReply(out)
1211 func (c *serviceClient) SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error) {
1212 out := new(SwInterfaceSetIPDirectedBroadcastReply)
1213 err := c.ch.SendRequest(in).ReceiveReply(out)
1220 func (c *serviceClient) SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error) {
1221 out := new(SwInterfaceSetMacAddressReply)
1222 err := c.ch.SendRequest(in).ReceiveReply(out)
1229 func (c *serviceClient) SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error) {
1230 out := new(SwInterfaceSetMtuReply)
1231 err := c.ch.SendRequest(in).ReceiveReply(out)
1238 func (c *serviceClient) SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error) {
1239 out := new(SwInterfaceSetRxModeReply)
1240 err := c.ch.SendRequest(in).ReceiveReply(out)
1247 func (c *serviceClient) SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error) {
1248 out := new(SwInterfaceSetRxPlacementReply)
1249 err := c.ch.SendRequest(in).ReceiveReply(out)
1256 func (c *serviceClient) SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error) {
1257 out := new(SwInterfaceSetTableReply)
1258 err := c.ch.SendRequest(in).ReceiveReply(out)
1265 func (c *serviceClient) SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error) {
1266 out := new(SwInterfaceSetUnnumberedReply)
1267 err := c.ch.SendRequest(in).ReceiveReply(out)
1274 func (c *serviceClient) SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error) {
1275 out := new(SwInterfaceTagAddDelReply)
1276 err := c.ch.SendRequest(in).ReceiveReply(out)
1283 func (c *serviceClient) WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error) {
1284 out := new(WantInterfaceEventsReply)
1285 err := c.ch.SendRequest(in).ReceiveReply(out)
1292 // This is a compile-time assertion to ensure that this generated file
1293 // is compatible with the GoVPP api package it is being compiled against.
1294 // A compilation error at this line likely means your copy of the
1295 // GoVPP api package needs to be updated.
1296 const _ = api.GoVppAPIPackageIsVersion1 // please upgrade the GoVPP api package
1298 // Reference imports to suppress errors if they are not otherwise used.
1299 var _ = api.RegisterMessage
1300 var _ = bytes.NewBuffer
1301 var _ = context.Background
1303 var _ = strconv.Itoa