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 = 0xbfceada9
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"`
402 Mtu []uint32 `struc:"[4]uint32"`
406 SubNumberOfTags uint8
407 SubOuterVlanID uint16
408 SubInnerVlanID uint16
411 SubOuterVlanIDAny uint8
412 SubInnerVlanIDAny uint8
418 BDmac []byte `struc:"[6]byte"`
419 BSmac []byte `struc:"[6]byte"`
422 InterfaceName string `struc:"[64]byte"`
423 Tag string `struc:"[64]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
440 XXX_NameFilterLen uint32 `struc:"sizeof=NameFilter"`
444 func (*SwInterfaceDump) GetMessageName() string {
445 return "sw_interface_dump"
447 func (*SwInterfaceDump) GetCrcString() string {
450 func (*SwInterfaceDump) GetMessageType() api.MessageType {
451 return api.RequestMessage
454 // SwInterfaceEvent represents VPP binary API message 'sw_interface_event'.
455 type SwInterfaceEvent struct {
463 func (*SwInterfaceEvent) GetMessageName() string {
464 return "sw_interface_event"
466 func (*SwInterfaceEvent) GetCrcString() string {
469 func (*SwInterfaceEvent) GetMessageType() api.MessageType {
470 return api.EventMessage
473 // SwInterfaceGetMacAddress represents VPP binary API message 'sw_interface_get_mac_address'.
474 type SwInterfaceGetMacAddress struct {
478 func (*SwInterfaceGetMacAddress) GetMessageName() string {
479 return "sw_interface_get_mac_address"
481 func (*SwInterfaceGetMacAddress) GetCrcString() string {
484 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType {
485 return api.RequestMessage
488 // SwInterfaceGetMacAddressReply represents VPP binary API message 'sw_interface_get_mac_address_reply'.
489 type SwInterfaceGetMacAddressReply struct {
491 MacAddress []byte `struc:"[6]byte"`
494 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
495 return "sw_interface_get_mac_address_reply"
497 func (*SwInterfaceGetMacAddressReply) GetCrcString() string {
500 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType {
501 return api.ReplyMessage
504 // SwInterfaceGetTable represents VPP binary API message 'sw_interface_get_table'.
505 type SwInterfaceGetTable struct {
510 func (*SwInterfaceGetTable) GetMessageName() string {
511 return "sw_interface_get_table"
513 func (*SwInterfaceGetTable) GetCrcString() string {
516 func (*SwInterfaceGetTable) GetMessageType() api.MessageType {
517 return api.RequestMessage
520 // SwInterfaceGetTableReply represents VPP binary API message 'sw_interface_get_table_reply'.
521 type SwInterfaceGetTableReply struct {
526 func (*SwInterfaceGetTableReply) GetMessageName() string {
527 return "sw_interface_get_table_reply"
529 func (*SwInterfaceGetTableReply) GetCrcString() string {
532 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType {
533 return api.ReplyMessage
536 // SwInterfaceRxPlacementDetails represents VPP binary API message 'sw_interface_rx_placement_details'.
537 type SwInterfaceRxPlacementDetails struct {
544 func (*SwInterfaceRxPlacementDetails) GetMessageName() string {
545 return "sw_interface_rx_placement_details"
547 func (*SwInterfaceRxPlacementDetails) GetCrcString() string {
550 func (*SwInterfaceRxPlacementDetails) GetMessageType() api.MessageType {
551 return api.RequestMessage
554 // SwInterfaceRxPlacementDump represents VPP binary API message 'sw_interface_rx_placement_dump'.
555 type SwInterfaceRxPlacementDump struct {
559 func (*SwInterfaceRxPlacementDump) GetMessageName() string {
560 return "sw_interface_rx_placement_dump"
562 func (*SwInterfaceRxPlacementDump) GetCrcString() string {
565 func (*SwInterfaceRxPlacementDump) GetMessageType() api.MessageType {
566 return api.RequestMessage
569 // SwInterfaceSetFlags represents VPP binary API message 'sw_interface_set_flags'.
570 type SwInterfaceSetFlags struct {
575 func (*SwInterfaceSetFlags) GetMessageName() string {
576 return "sw_interface_set_flags"
578 func (*SwInterfaceSetFlags) GetCrcString() string {
581 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType {
582 return api.RequestMessage
585 // SwInterfaceSetFlagsReply represents VPP binary API message 'sw_interface_set_flags_reply'.
586 type SwInterfaceSetFlagsReply struct {
590 func (*SwInterfaceSetFlagsReply) GetMessageName() string {
591 return "sw_interface_set_flags_reply"
593 func (*SwInterfaceSetFlagsReply) GetCrcString() string {
596 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType {
597 return api.ReplyMessage
600 // SwInterfaceSetIPDirectedBroadcast represents VPP binary API message 'sw_interface_set_ip_directed_broadcast'.
601 type SwInterfaceSetIPDirectedBroadcast struct {
606 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageName() string {
607 return "sw_interface_set_ip_directed_broadcast"
609 func (*SwInterfaceSetIPDirectedBroadcast) GetCrcString() string {
612 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageType() api.MessageType {
613 return api.RequestMessage
616 // SwInterfaceSetIPDirectedBroadcastReply represents VPP binary API message 'sw_interface_set_ip_directed_broadcast_reply'.
617 type SwInterfaceSetIPDirectedBroadcastReply struct {
621 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageName() string {
622 return "sw_interface_set_ip_directed_broadcast_reply"
624 func (*SwInterfaceSetIPDirectedBroadcastReply) GetCrcString() string {
627 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageType() api.MessageType {
628 return api.ReplyMessage
631 // SwInterfaceSetMacAddress represents VPP binary API message 'sw_interface_set_mac_address'.
632 type SwInterfaceSetMacAddress struct {
634 MacAddress []byte `struc:"[6]byte"`
637 func (*SwInterfaceSetMacAddress) GetMessageName() string {
638 return "sw_interface_set_mac_address"
640 func (*SwInterfaceSetMacAddress) GetCrcString() string {
643 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType {
644 return api.RequestMessage
647 // SwInterfaceSetMacAddressReply represents VPP binary API message 'sw_interface_set_mac_address_reply'.
648 type SwInterfaceSetMacAddressReply struct {
652 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
653 return "sw_interface_set_mac_address_reply"
655 func (*SwInterfaceSetMacAddressReply) GetCrcString() string {
658 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType {
659 return api.ReplyMessage
662 // SwInterfaceSetMtu represents VPP binary API message 'sw_interface_set_mtu'.
663 type SwInterfaceSetMtu struct {
665 Mtu []uint32 `struc:"[4]uint32"`
668 func (*SwInterfaceSetMtu) GetMessageName() string {
669 return "sw_interface_set_mtu"
671 func (*SwInterfaceSetMtu) GetCrcString() string {
674 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType {
675 return api.RequestMessage
678 // SwInterfaceSetMtuReply represents VPP binary API message 'sw_interface_set_mtu_reply'.
679 type SwInterfaceSetMtuReply struct {
683 func (*SwInterfaceSetMtuReply) GetMessageName() string {
684 return "sw_interface_set_mtu_reply"
686 func (*SwInterfaceSetMtuReply) GetCrcString() string {
689 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType {
690 return api.ReplyMessage
693 // SwInterfaceSetRxMode represents VPP binary API message 'sw_interface_set_rx_mode'.
694 type SwInterfaceSetRxMode struct {
701 func (*SwInterfaceSetRxMode) GetMessageName() string {
702 return "sw_interface_set_rx_mode"
704 func (*SwInterfaceSetRxMode) GetCrcString() string {
707 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType {
708 return api.RequestMessage
711 // SwInterfaceSetRxModeReply represents VPP binary API message 'sw_interface_set_rx_mode_reply'.
712 type SwInterfaceSetRxModeReply struct {
716 func (*SwInterfaceSetRxModeReply) GetMessageName() string {
717 return "sw_interface_set_rx_mode_reply"
719 func (*SwInterfaceSetRxModeReply) GetCrcString() string {
722 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType {
723 return api.ReplyMessage
726 // SwInterfaceSetRxPlacement represents VPP binary API message 'sw_interface_set_rx_placement'.
727 type SwInterfaceSetRxPlacement struct {
734 func (*SwInterfaceSetRxPlacement) GetMessageName() string {
735 return "sw_interface_set_rx_placement"
737 func (*SwInterfaceSetRxPlacement) GetCrcString() string {
740 func (*SwInterfaceSetRxPlacement) GetMessageType() api.MessageType {
741 return api.RequestMessage
744 // SwInterfaceSetRxPlacementReply represents VPP binary API message 'sw_interface_set_rx_placement_reply'.
745 type SwInterfaceSetRxPlacementReply struct {
749 func (*SwInterfaceSetRxPlacementReply) GetMessageName() string {
750 return "sw_interface_set_rx_placement_reply"
752 func (*SwInterfaceSetRxPlacementReply) GetCrcString() string {
755 func (*SwInterfaceSetRxPlacementReply) GetMessageType() api.MessageType {
756 return api.ReplyMessage
759 // SwInterfaceSetTable represents VPP binary API message 'sw_interface_set_table'.
760 type SwInterfaceSetTable struct {
766 func (*SwInterfaceSetTable) GetMessageName() string {
767 return "sw_interface_set_table"
769 func (*SwInterfaceSetTable) GetCrcString() string {
772 func (*SwInterfaceSetTable) GetMessageType() api.MessageType {
773 return api.RequestMessage
776 // SwInterfaceSetTableReply represents VPP binary API message 'sw_interface_set_table_reply'.
777 type SwInterfaceSetTableReply struct {
781 func (*SwInterfaceSetTableReply) GetMessageName() string {
782 return "sw_interface_set_table_reply"
784 func (*SwInterfaceSetTableReply) GetCrcString() string {
787 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType {
788 return api.ReplyMessage
791 // SwInterfaceSetUnnumbered represents VPP binary API message 'sw_interface_set_unnumbered'.
792 type SwInterfaceSetUnnumbered struct {
794 UnnumberedSwIfIndex uint32
798 func (*SwInterfaceSetUnnumbered) GetMessageName() string {
799 return "sw_interface_set_unnumbered"
801 func (*SwInterfaceSetUnnumbered) GetCrcString() string {
804 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType {
805 return api.RequestMessage
808 // SwInterfaceSetUnnumberedReply represents VPP binary API message 'sw_interface_set_unnumbered_reply'.
809 type SwInterfaceSetUnnumberedReply struct {
813 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
814 return "sw_interface_set_unnumbered_reply"
816 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string {
819 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType {
820 return api.ReplyMessage
823 // SwInterfaceTagAddDel represents VPP binary API message 'sw_interface_tag_add_del'.
824 type SwInterfaceTagAddDel struct {
826 SwIfIndex InterfaceIndex
827 Tag string `struc:"[64]byte"`
830 func (*SwInterfaceTagAddDel) GetMessageName() string {
831 return "sw_interface_tag_add_del"
833 func (*SwInterfaceTagAddDel) GetCrcString() string {
836 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType {
837 return api.RequestMessage
840 // SwInterfaceTagAddDelReply represents VPP binary API message 'sw_interface_tag_add_del_reply'.
841 type SwInterfaceTagAddDelReply struct {
845 func (*SwInterfaceTagAddDelReply) GetMessageName() string {
846 return "sw_interface_tag_add_del_reply"
848 func (*SwInterfaceTagAddDelReply) GetCrcString() string {
851 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType {
852 return api.ReplyMessage
855 // WantInterfaceEvents represents VPP binary API message 'want_interface_events'.
856 type WantInterfaceEvents struct {
861 func (*WantInterfaceEvents) GetMessageName() string {
862 return "want_interface_events"
864 func (*WantInterfaceEvents) GetCrcString() string {
867 func (*WantInterfaceEvents) GetMessageType() api.MessageType {
868 return api.RequestMessage
871 // WantInterfaceEventsReply represents VPP binary API message 'want_interface_events_reply'.
872 type WantInterfaceEventsReply struct {
876 func (*WantInterfaceEventsReply) GetMessageName() string {
877 return "want_interface_events_reply"
879 func (*WantInterfaceEventsReply) GetCrcString() string {
882 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType {
883 return api.ReplyMessage
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")
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),
950 (*CreateSubifReply)(nil),
951 (*CreateVlanSubif)(nil),
952 (*CreateVlanSubifReply)(nil),
953 (*DeleteLoopback)(nil),
954 (*DeleteLoopbackReply)(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),
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)
1026 type serviceClient struct {
1030 func NewServiceClient(ch api.Channel) RPCService {
1031 return &serviceClient{ch}
1034 func (c *serviceClient) DumpSwInterface(ctx context.Context, in *SwInterfaceDump) (RPCService_DumpSwInterfaceClient, error) {
1035 stream := c.ch.SendMultiRequest(in)
1036 x := &serviceClient_DumpSwInterfaceClient{stream}
1040 type RPCService_DumpSwInterfaceClient interface {
1041 Recv() (*SwInterfaceDetails, error)
1044 type serviceClient_DumpSwInterfaceClient struct {
1048 func (c *serviceClient_DumpSwInterfaceClient) Recv() (*SwInterfaceDetails, error) {
1049 m := new(SwInterfaceDetails)
1050 stop, err := c.MultiRequestCtx.ReceiveReply(m)
1060 func (c *serviceClient) DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) (RPCService_DumpSwInterfaceRxPlacementClient, error) {
1061 stream := c.ch.SendMultiRequest(in)
1062 x := &serviceClient_DumpSwInterfaceRxPlacementClient{stream}
1066 type RPCService_DumpSwInterfaceRxPlacementClient interface {
1067 Recv() (*SwInterfaceRxPlacementDetails, error)
1070 type serviceClient_DumpSwInterfaceRxPlacementClient struct {
1074 func (c *serviceClient_DumpSwInterfaceRxPlacementClient) Recv() (*SwInterfaceRxPlacementDetails, error) {
1075 m := new(SwInterfaceRxPlacementDetails)
1076 stop, err := c.MultiRequestCtx.ReceiveReply(m)
1086 func (c *serviceClient) CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error) {
1087 out := new(CollectDetailedInterfaceStatsReply)
1088 err := c.ch.SendRequest(in).ReceiveReply(out)
1095 func (c *serviceClient) CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error) {
1096 out := new(CreateLoopbackReply)
1097 err := c.ch.SendRequest(in).ReceiveReply(out)
1104 func (c *serviceClient) CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error) {
1105 out := new(CreateLoopbackInstanceReply)
1106 err := c.ch.SendRequest(in).ReceiveReply(out)
1113 func (c *serviceClient) CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error) {
1114 out := new(CreateSubifReply)
1115 err := c.ch.SendRequest(in).ReceiveReply(out)
1122 func (c *serviceClient) CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error) {
1123 out := new(CreateVlanSubifReply)
1124 err := c.ch.SendRequest(in).ReceiveReply(out)
1131 func (c *serviceClient) DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error) {
1132 out := new(DeleteLoopbackReply)
1133 err := c.ch.SendRequest(in).ReceiveReply(out)
1140 func (c *serviceClient) DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error) {
1141 out := new(DeleteSubifReply)
1142 err := c.ch.SendRequest(in).ReceiveReply(out)
1149 func (c *serviceClient) HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error) {
1150 out := new(HwInterfaceSetMtuReply)
1151 err := c.ch.SendRequest(in).ReceiveReply(out)
1158 func (c *serviceClient) InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error) {
1159 out := new(InterfaceNameRenumberReply)
1160 err := c.ch.SendRequest(in).ReceiveReply(out)
1167 func (c *serviceClient) SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error) {
1168 out := new(SwInterfaceAddDelAddressReply)
1169 err := c.ch.SendRequest(in).ReceiveReply(out)
1176 func (c *serviceClient) SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error) {
1177 out := new(SwInterfaceClearStatsReply)
1178 err := c.ch.SendRequest(in).ReceiveReply(out)
1185 func (c *serviceClient) SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error) {
1186 out := new(SwInterfaceGetMacAddressReply)
1187 err := c.ch.SendRequest(in).ReceiveReply(out)
1194 func (c *serviceClient) SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error) {
1195 out := new(SwInterfaceGetTableReply)
1196 err := c.ch.SendRequest(in).ReceiveReply(out)
1203 func (c *serviceClient) SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error) {
1204 out := new(SwInterfaceSetFlagsReply)
1205 err := c.ch.SendRequest(in).ReceiveReply(out)
1212 func (c *serviceClient) SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error) {
1213 out := new(SwInterfaceSetIPDirectedBroadcastReply)
1214 err := c.ch.SendRequest(in).ReceiveReply(out)
1221 func (c *serviceClient) SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error) {
1222 out := new(SwInterfaceSetMacAddressReply)
1223 err := c.ch.SendRequest(in).ReceiveReply(out)
1230 func (c *serviceClient) SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error) {
1231 out := new(SwInterfaceSetMtuReply)
1232 err := c.ch.SendRequest(in).ReceiveReply(out)
1239 func (c *serviceClient) SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error) {
1240 out := new(SwInterfaceSetRxModeReply)
1241 err := c.ch.SendRequest(in).ReceiveReply(out)
1248 func (c *serviceClient) SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error) {
1249 out := new(SwInterfaceSetRxPlacementReply)
1250 err := c.ch.SendRequest(in).ReceiveReply(out)
1257 func (c *serviceClient) SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error) {
1258 out := new(SwInterfaceSetTableReply)
1259 err := c.ch.SendRequest(in).ReceiveReply(out)
1266 func (c *serviceClient) SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error) {
1267 out := new(SwInterfaceSetUnnumberedReply)
1268 err := c.ch.SendRequest(in).ReceiveReply(out)
1275 func (c *serviceClient) SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error) {
1276 out := new(SwInterfaceTagAddDelReply)
1277 err := c.ch.SendRequest(in).ReceiveReply(out)
1284 func (c *serviceClient) WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error) {
1285 out := new(WantInterfaceEventsReply)
1286 err := c.ch.SendRequest(in).ReceiveReply(out)
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
1299 // Reference imports to suppress errors if they are not otherwise used.
1300 var _ = api.RegisterMessage
1301 var _ = bytes.NewBuffer
1302 var _ = context.Background
1304 var _ = strconv.Itoa