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 = 0x672de521
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 NameFilterValid uint8
439 NameFilter []byte `struc:"[49]byte"`
442 func (*SwInterfaceDump) GetMessageName() string {
443 return "sw_interface_dump"
445 func (*SwInterfaceDump) GetCrcString() string {
448 func (*SwInterfaceDump) GetMessageType() api.MessageType {
449 return api.RequestMessage
452 // SwInterfaceEvent represents VPP binary API message 'sw_interface_event'.
453 type SwInterfaceEvent struct {
461 func (*SwInterfaceEvent) GetMessageName() string {
462 return "sw_interface_event"
464 func (*SwInterfaceEvent) GetCrcString() string {
467 func (*SwInterfaceEvent) GetMessageType() api.MessageType {
468 return api.EventMessage
471 // SwInterfaceGetMacAddress represents VPP binary API message 'sw_interface_get_mac_address'.
472 type SwInterfaceGetMacAddress struct {
476 func (*SwInterfaceGetMacAddress) GetMessageName() string {
477 return "sw_interface_get_mac_address"
479 func (*SwInterfaceGetMacAddress) GetCrcString() string {
482 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType {
483 return api.RequestMessage
486 // SwInterfaceGetMacAddressReply represents VPP binary API message 'sw_interface_get_mac_address_reply'.
487 type SwInterfaceGetMacAddressReply struct {
489 MacAddress []byte `struc:"[6]byte"`
492 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
493 return "sw_interface_get_mac_address_reply"
495 func (*SwInterfaceGetMacAddressReply) GetCrcString() string {
498 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType {
499 return api.ReplyMessage
502 // SwInterfaceGetTable represents VPP binary API message 'sw_interface_get_table'.
503 type SwInterfaceGetTable struct {
508 func (*SwInterfaceGetTable) GetMessageName() string {
509 return "sw_interface_get_table"
511 func (*SwInterfaceGetTable) GetCrcString() string {
514 func (*SwInterfaceGetTable) GetMessageType() api.MessageType {
515 return api.RequestMessage
518 // SwInterfaceGetTableReply represents VPP binary API message 'sw_interface_get_table_reply'.
519 type SwInterfaceGetTableReply struct {
524 func (*SwInterfaceGetTableReply) GetMessageName() string {
525 return "sw_interface_get_table_reply"
527 func (*SwInterfaceGetTableReply) GetCrcString() string {
530 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType {
531 return api.ReplyMessage
534 // SwInterfaceRxPlacementDetails represents VPP binary API message 'sw_interface_rx_placement_details'.
535 type SwInterfaceRxPlacementDetails struct {
542 func (*SwInterfaceRxPlacementDetails) GetMessageName() string {
543 return "sw_interface_rx_placement_details"
545 func (*SwInterfaceRxPlacementDetails) GetCrcString() string {
548 func (*SwInterfaceRxPlacementDetails) GetMessageType() api.MessageType {
549 return api.RequestMessage
552 // SwInterfaceRxPlacementDump represents VPP binary API message 'sw_interface_rx_placement_dump'.
553 type SwInterfaceRxPlacementDump struct {
557 func (*SwInterfaceRxPlacementDump) GetMessageName() string {
558 return "sw_interface_rx_placement_dump"
560 func (*SwInterfaceRxPlacementDump) GetCrcString() string {
563 func (*SwInterfaceRxPlacementDump) GetMessageType() api.MessageType {
564 return api.RequestMessage
567 // SwInterfaceSetFlags represents VPP binary API message 'sw_interface_set_flags'.
568 type SwInterfaceSetFlags struct {
573 func (*SwInterfaceSetFlags) GetMessageName() string {
574 return "sw_interface_set_flags"
576 func (*SwInterfaceSetFlags) GetCrcString() string {
579 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType {
580 return api.RequestMessage
583 // SwInterfaceSetFlagsReply represents VPP binary API message 'sw_interface_set_flags_reply'.
584 type SwInterfaceSetFlagsReply struct {
588 func (*SwInterfaceSetFlagsReply) GetMessageName() string {
589 return "sw_interface_set_flags_reply"
591 func (*SwInterfaceSetFlagsReply) GetCrcString() string {
594 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType {
595 return api.ReplyMessage
598 // SwInterfaceSetIPDirectedBroadcast represents VPP binary API message 'sw_interface_set_ip_directed_broadcast'.
599 type SwInterfaceSetIPDirectedBroadcast struct {
604 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageName() string {
605 return "sw_interface_set_ip_directed_broadcast"
607 func (*SwInterfaceSetIPDirectedBroadcast) GetCrcString() string {
610 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageType() api.MessageType {
611 return api.RequestMessage
614 // SwInterfaceSetIPDirectedBroadcastReply represents VPP binary API message 'sw_interface_set_ip_directed_broadcast_reply'.
615 type SwInterfaceSetIPDirectedBroadcastReply struct {
619 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageName() string {
620 return "sw_interface_set_ip_directed_broadcast_reply"
622 func (*SwInterfaceSetIPDirectedBroadcastReply) GetCrcString() string {
625 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageType() api.MessageType {
626 return api.ReplyMessage
629 // SwInterfaceSetMacAddress represents VPP binary API message 'sw_interface_set_mac_address'.
630 type SwInterfaceSetMacAddress struct {
632 MacAddress []byte `struc:"[6]byte"`
635 func (*SwInterfaceSetMacAddress) GetMessageName() string {
636 return "sw_interface_set_mac_address"
638 func (*SwInterfaceSetMacAddress) GetCrcString() string {
641 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType {
642 return api.RequestMessage
645 // SwInterfaceSetMacAddressReply represents VPP binary API message 'sw_interface_set_mac_address_reply'.
646 type SwInterfaceSetMacAddressReply struct {
650 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
651 return "sw_interface_set_mac_address_reply"
653 func (*SwInterfaceSetMacAddressReply) GetCrcString() string {
656 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType {
657 return api.ReplyMessage
660 // SwInterfaceSetMtu represents VPP binary API message 'sw_interface_set_mtu'.
661 type SwInterfaceSetMtu struct {
663 Mtu []uint32 `struc:"[4]uint32"`
666 func (*SwInterfaceSetMtu) GetMessageName() string {
667 return "sw_interface_set_mtu"
669 func (*SwInterfaceSetMtu) GetCrcString() string {
672 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType {
673 return api.RequestMessage
676 // SwInterfaceSetMtuReply represents VPP binary API message 'sw_interface_set_mtu_reply'.
677 type SwInterfaceSetMtuReply struct {
681 func (*SwInterfaceSetMtuReply) GetMessageName() string {
682 return "sw_interface_set_mtu_reply"
684 func (*SwInterfaceSetMtuReply) GetCrcString() string {
687 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType {
688 return api.ReplyMessage
691 // SwInterfaceSetRxMode represents VPP binary API message 'sw_interface_set_rx_mode'.
692 type SwInterfaceSetRxMode struct {
699 func (*SwInterfaceSetRxMode) GetMessageName() string {
700 return "sw_interface_set_rx_mode"
702 func (*SwInterfaceSetRxMode) GetCrcString() string {
705 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType {
706 return api.RequestMessage
709 // SwInterfaceSetRxModeReply represents VPP binary API message 'sw_interface_set_rx_mode_reply'.
710 type SwInterfaceSetRxModeReply struct {
714 func (*SwInterfaceSetRxModeReply) GetMessageName() string {
715 return "sw_interface_set_rx_mode_reply"
717 func (*SwInterfaceSetRxModeReply) GetCrcString() string {
720 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType {
721 return api.ReplyMessage
724 // SwInterfaceSetRxPlacement represents VPP binary API message 'sw_interface_set_rx_placement'.
725 type SwInterfaceSetRxPlacement struct {
732 func (*SwInterfaceSetRxPlacement) GetMessageName() string {
733 return "sw_interface_set_rx_placement"
735 func (*SwInterfaceSetRxPlacement) GetCrcString() string {
738 func (*SwInterfaceSetRxPlacement) GetMessageType() api.MessageType {
739 return api.RequestMessage
742 // SwInterfaceSetRxPlacementReply represents VPP binary API message 'sw_interface_set_rx_placement_reply'.
743 type SwInterfaceSetRxPlacementReply struct {
747 func (*SwInterfaceSetRxPlacementReply) GetMessageName() string {
748 return "sw_interface_set_rx_placement_reply"
750 func (*SwInterfaceSetRxPlacementReply) GetCrcString() string {
753 func (*SwInterfaceSetRxPlacementReply) GetMessageType() api.MessageType {
754 return api.ReplyMessage
757 // SwInterfaceSetTable represents VPP binary API message 'sw_interface_set_table'.
758 type SwInterfaceSetTable struct {
764 func (*SwInterfaceSetTable) GetMessageName() string {
765 return "sw_interface_set_table"
767 func (*SwInterfaceSetTable) GetCrcString() string {
770 func (*SwInterfaceSetTable) GetMessageType() api.MessageType {
771 return api.RequestMessage
774 // SwInterfaceSetTableReply represents VPP binary API message 'sw_interface_set_table_reply'.
775 type SwInterfaceSetTableReply struct {
779 func (*SwInterfaceSetTableReply) GetMessageName() string {
780 return "sw_interface_set_table_reply"
782 func (*SwInterfaceSetTableReply) GetCrcString() string {
785 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType {
786 return api.ReplyMessage
789 // SwInterfaceSetUnnumbered represents VPP binary API message 'sw_interface_set_unnumbered'.
790 type SwInterfaceSetUnnumbered struct {
792 UnnumberedSwIfIndex uint32
796 func (*SwInterfaceSetUnnumbered) GetMessageName() string {
797 return "sw_interface_set_unnumbered"
799 func (*SwInterfaceSetUnnumbered) GetCrcString() string {
802 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType {
803 return api.RequestMessage
806 // SwInterfaceSetUnnumberedReply represents VPP binary API message 'sw_interface_set_unnumbered_reply'.
807 type SwInterfaceSetUnnumberedReply struct {
811 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
812 return "sw_interface_set_unnumbered_reply"
814 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string {
817 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType {
818 return api.ReplyMessage
821 // SwInterfaceTagAddDel represents VPP binary API message 'sw_interface_tag_add_del'.
822 type SwInterfaceTagAddDel struct {
825 Tag []byte `struc:"[64]byte"`
828 func (*SwInterfaceTagAddDel) GetMessageName() string {
829 return "sw_interface_tag_add_del"
831 func (*SwInterfaceTagAddDel) GetCrcString() string {
834 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType {
835 return api.RequestMessage
838 // SwInterfaceTagAddDelReply represents VPP binary API message 'sw_interface_tag_add_del_reply'.
839 type SwInterfaceTagAddDelReply struct {
843 func (*SwInterfaceTagAddDelReply) GetMessageName() string {
844 return "sw_interface_tag_add_del_reply"
846 func (*SwInterfaceTagAddDelReply) GetCrcString() string {
849 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType {
850 return api.ReplyMessage
853 // WantInterfaceEvents represents VPP binary API message 'want_interface_events'.
854 type WantInterfaceEvents struct {
859 func (*WantInterfaceEvents) GetMessageName() string {
860 return "want_interface_events"
862 func (*WantInterfaceEvents) GetCrcString() string {
865 func (*WantInterfaceEvents) GetMessageType() api.MessageType {
866 return api.RequestMessage
869 // WantInterfaceEventsReply represents VPP binary API message 'want_interface_events_reply'.
870 type WantInterfaceEventsReply struct {
874 func (*WantInterfaceEventsReply) GetMessageName() string {
875 return "want_interface_events_reply"
877 func (*WantInterfaceEventsReply) GetCrcString() string {
880 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType {
881 return api.ReplyMessage
885 api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "interface.CollectDetailedInterfaceStats")
886 api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "interface.CollectDetailedInterfaceStatsReply")
887 api.RegisterMessage((*CreateLoopback)(nil), "interface.CreateLoopback")
888 api.RegisterMessage((*CreateLoopbackInstance)(nil), "interface.CreateLoopbackInstance")
889 api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "interface.CreateLoopbackInstanceReply")
890 api.RegisterMessage((*CreateLoopbackReply)(nil), "interface.CreateLoopbackReply")
891 api.RegisterMessage((*CreateSubif)(nil), "interface.CreateSubif")
892 api.RegisterMessage((*CreateSubifReply)(nil), "interface.CreateSubifReply")
893 api.RegisterMessage((*CreateVlanSubif)(nil), "interface.CreateVlanSubif")
894 api.RegisterMessage((*CreateVlanSubifReply)(nil), "interface.CreateVlanSubifReply")
895 api.RegisterMessage((*DeleteLoopback)(nil), "interface.DeleteLoopback")
896 api.RegisterMessage((*DeleteLoopbackReply)(nil), "interface.DeleteLoopbackReply")
897 api.RegisterMessage((*DeleteSubif)(nil), "interface.DeleteSubif")
898 api.RegisterMessage((*DeleteSubifReply)(nil), "interface.DeleteSubifReply")
899 api.RegisterMessage((*HwInterfaceSetMtu)(nil), "interface.HwInterfaceSetMtu")
900 api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "interface.HwInterfaceSetMtuReply")
901 api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface.InterfaceNameRenumber")
902 api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface.InterfaceNameRenumberReply")
903 api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "interface.SwInterfaceAddDelAddress")
904 api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "interface.SwInterfaceAddDelAddressReply")
905 api.RegisterMessage((*SwInterfaceClearStats)(nil), "interface.SwInterfaceClearStats")
906 api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "interface.SwInterfaceClearStatsReply")
907 api.RegisterMessage((*SwInterfaceDetails)(nil), "interface.SwInterfaceDetails")
908 api.RegisterMessage((*SwInterfaceDump)(nil), "interface.SwInterfaceDump")
909 api.RegisterMessage((*SwInterfaceEvent)(nil), "interface.SwInterfaceEvent")
910 api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "interface.SwInterfaceGetMacAddress")
911 api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "interface.SwInterfaceGetMacAddressReply")
912 api.RegisterMessage((*SwInterfaceGetTable)(nil), "interface.SwInterfaceGetTable")
913 api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "interface.SwInterfaceGetTableReply")
914 api.RegisterMessage((*SwInterfaceRxPlacementDetails)(nil), "interface.SwInterfaceRxPlacementDetails")
915 api.RegisterMessage((*SwInterfaceRxPlacementDump)(nil), "interface.SwInterfaceRxPlacementDump")
916 api.RegisterMessage((*SwInterfaceSetFlags)(nil), "interface.SwInterfaceSetFlags")
917 api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "interface.SwInterfaceSetFlagsReply")
918 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcast)(nil), "interface.SwInterfaceSetIPDirectedBroadcast")
919 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcastReply)(nil), "interface.SwInterfaceSetIPDirectedBroadcastReply")
920 api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "interface.SwInterfaceSetMacAddress")
921 api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "interface.SwInterfaceSetMacAddressReply")
922 api.RegisterMessage((*SwInterfaceSetMtu)(nil), "interface.SwInterfaceSetMtu")
923 api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "interface.SwInterfaceSetMtuReply")
924 api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "interface.SwInterfaceSetRxMode")
925 api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "interface.SwInterfaceSetRxModeReply")
926 api.RegisterMessage((*SwInterfaceSetRxPlacement)(nil), "interface.SwInterfaceSetRxPlacement")
927 api.RegisterMessage((*SwInterfaceSetRxPlacementReply)(nil), "interface.SwInterfaceSetRxPlacementReply")
928 api.RegisterMessage((*SwInterfaceSetTable)(nil), "interface.SwInterfaceSetTable")
929 api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "interface.SwInterfaceSetTableReply")
930 api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "interface.SwInterfaceSetUnnumbered")
931 api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "interface.SwInterfaceSetUnnumberedReply")
932 api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "interface.SwInterfaceTagAddDel")
933 api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "interface.SwInterfaceTagAddDelReply")
934 api.RegisterMessage((*WantInterfaceEvents)(nil), "interface.WantInterfaceEvents")
935 api.RegisterMessage((*WantInterfaceEventsReply)(nil), "interface.WantInterfaceEventsReply")
938 // Messages returns list of all messages in this module.
939 func AllMessages() []api.Message {
940 return []api.Message{
941 (*CollectDetailedInterfaceStats)(nil),
942 (*CollectDetailedInterfaceStatsReply)(nil),
943 (*CreateLoopback)(nil),
944 (*CreateLoopbackInstance)(nil),
945 (*CreateLoopbackInstanceReply)(nil),
946 (*CreateLoopbackReply)(nil),
948 (*CreateSubifReply)(nil),
949 (*CreateVlanSubif)(nil),
950 (*CreateVlanSubifReply)(nil),
951 (*DeleteLoopback)(nil),
952 (*DeleteLoopbackReply)(nil),
954 (*DeleteSubifReply)(nil),
955 (*HwInterfaceSetMtu)(nil),
956 (*HwInterfaceSetMtuReply)(nil),
957 (*InterfaceNameRenumber)(nil),
958 (*InterfaceNameRenumberReply)(nil),
959 (*SwInterfaceAddDelAddress)(nil),
960 (*SwInterfaceAddDelAddressReply)(nil),
961 (*SwInterfaceClearStats)(nil),
962 (*SwInterfaceClearStatsReply)(nil),
963 (*SwInterfaceDetails)(nil),
964 (*SwInterfaceDump)(nil),
965 (*SwInterfaceEvent)(nil),
966 (*SwInterfaceGetMacAddress)(nil),
967 (*SwInterfaceGetMacAddressReply)(nil),
968 (*SwInterfaceGetTable)(nil),
969 (*SwInterfaceGetTableReply)(nil),
970 (*SwInterfaceRxPlacementDetails)(nil),
971 (*SwInterfaceRxPlacementDump)(nil),
972 (*SwInterfaceSetFlags)(nil),
973 (*SwInterfaceSetFlagsReply)(nil),
974 (*SwInterfaceSetIPDirectedBroadcast)(nil),
975 (*SwInterfaceSetIPDirectedBroadcastReply)(nil),
976 (*SwInterfaceSetMacAddress)(nil),
977 (*SwInterfaceSetMacAddressReply)(nil),
978 (*SwInterfaceSetMtu)(nil),
979 (*SwInterfaceSetMtuReply)(nil),
980 (*SwInterfaceSetRxMode)(nil),
981 (*SwInterfaceSetRxModeReply)(nil),
982 (*SwInterfaceSetRxPlacement)(nil),
983 (*SwInterfaceSetRxPlacementReply)(nil),
984 (*SwInterfaceSetTable)(nil),
985 (*SwInterfaceSetTableReply)(nil),
986 (*SwInterfaceSetUnnumbered)(nil),
987 (*SwInterfaceSetUnnumberedReply)(nil),
988 (*SwInterfaceTagAddDel)(nil),
989 (*SwInterfaceTagAddDelReply)(nil),
990 (*WantInterfaceEvents)(nil),
991 (*WantInterfaceEventsReply)(nil),
995 // RPCService represents RPC service API for interface module.
996 type RPCService interface {
997 DumpSwInterface(ctx context.Context, in *SwInterfaceDump) (RPCService_DumpSwInterfaceClient, error)
998 DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) (RPCService_DumpSwInterfaceRxPlacementClient, error)
999 CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error)
1000 CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error)
1001 CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error)
1002 CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error)
1003 CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error)
1004 DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error)
1005 DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error)
1006 HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error)
1007 InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error)
1008 SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error)
1009 SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
1010 SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
1011 SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
1012 SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
1013 SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error)
1014 SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
1015 SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
1016 SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
1017 SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error)
1018 SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
1019 SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
1020 SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
1021 WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error)
1024 type serviceClient struct {
1028 func NewServiceClient(ch api.Channel) RPCService {
1029 return &serviceClient{ch}
1032 func (c *serviceClient) DumpSwInterface(ctx context.Context, in *SwInterfaceDump) (RPCService_DumpSwInterfaceClient, error) {
1033 stream := c.ch.SendMultiRequest(in)
1034 x := &serviceClient_DumpSwInterfaceClient{stream}
1038 type RPCService_DumpSwInterfaceClient interface {
1039 Recv() (*SwInterfaceDetails, error)
1042 type serviceClient_DumpSwInterfaceClient struct {
1046 func (c *serviceClient_DumpSwInterfaceClient) Recv() (*SwInterfaceDetails, error) {
1047 m := new(SwInterfaceDetails)
1048 stop, err := c.MultiRequestCtx.ReceiveReply(m)
1058 func (c *serviceClient) DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) (RPCService_DumpSwInterfaceRxPlacementClient, error) {
1059 stream := c.ch.SendMultiRequest(in)
1060 x := &serviceClient_DumpSwInterfaceRxPlacementClient{stream}
1064 type RPCService_DumpSwInterfaceRxPlacementClient interface {
1065 Recv() (*SwInterfaceRxPlacementDetails, error)
1068 type serviceClient_DumpSwInterfaceRxPlacementClient struct {
1072 func (c *serviceClient_DumpSwInterfaceRxPlacementClient) Recv() (*SwInterfaceRxPlacementDetails, error) {
1073 m := new(SwInterfaceRxPlacementDetails)
1074 stop, err := c.MultiRequestCtx.ReceiveReply(m)
1084 func (c *serviceClient) CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error) {
1085 out := new(CollectDetailedInterfaceStatsReply)
1086 err := c.ch.SendRequest(in).ReceiveReply(out)
1093 func (c *serviceClient) CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error) {
1094 out := new(CreateLoopbackReply)
1095 err := c.ch.SendRequest(in).ReceiveReply(out)
1102 func (c *serviceClient) CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error) {
1103 out := new(CreateLoopbackInstanceReply)
1104 err := c.ch.SendRequest(in).ReceiveReply(out)
1111 func (c *serviceClient) CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error) {
1112 out := new(CreateSubifReply)
1113 err := c.ch.SendRequest(in).ReceiveReply(out)
1120 func (c *serviceClient) CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error) {
1121 out := new(CreateVlanSubifReply)
1122 err := c.ch.SendRequest(in).ReceiveReply(out)
1129 func (c *serviceClient) DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error) {
1130 out := new(DeleteLoopbackReply)
1131 err := c.ch.SendRequest(in).ReceiveReply(out)
1138 func (c *serviceClient) DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error) {
1139 out := new(DeleteSubifReply)
1140 err := c.ch.SendRequest(in).ReceiveReply(out)
1147 func (c *serviceClient) HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error) {
1148 out := new(HwInterfaceSetMtuReply)
1149 err := c.ch.SendRequest(in).ReceiveReply(out)
1156 func (c *serviceClient) InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error) {
1157 out := new(InterfaceNameRenumberReply)
1158 err := c.ch.SendRequest(in).ReceiveReply(out)
1165 func (c *serviceClient) SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error) {
1166 out := new(SwInterfaceAddDelAddressReply)
1167 err := c.ch.SendRequest(in).ReceiveReply(out)
1174 func (c *serviceClient) SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error) {
1175 out := new(SwInterfaceClearStatsReply)
1176 err := c.ch.SendRequest(in).ReceiveReply(out)
1183 func (c *serviceClient) SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error) {
1184 out := new(SwInterfaceGetMacAddressReply)
1185 err := c.ch.SendRequest(in).ReceiveReply(out)
1192 func (c *serviceClient) SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error) {
1193 out := new(SwInterfaceGetTableReply)
1194 err := c.ch.SendRequest(in).ReceiveReply(out)
1201 func (c *serviceClient) SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error) {
1202 out := new(SwInterfaceSetFlagsReply)
1203 err := c.ch.SendRequest(in).ReceiveReply(out)
1210 func (c *serviceClient) SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error) {
1211 out := new(SwInterfaceSetIPDirectedBroadcastReply)
1212 err := c.ch.SendRequest(in).ReceiveReply(out)
1219 func (c *serviceClient) SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error) {
1220 out := new(SwInterfaceSetMacAddressReply)
1221 err := c.ch.SendRequest(in).ReceiveReply(out)
1228 func (c *serviceClient) SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error) {
1229 out := new(SwInterfaceSetMtuReply)
1230 err := c.ch.SendRequest(in).ReceiveReply(out)
1237 func (c *serviceClient) SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error) {
1238 out := new(SwInterfaceSetRxModeReply)
1239 err := c.ch.SendRequest(in).ReceiveReply(out)
1246 func (c *serviceClient) SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error) {
1247 out := new(SwInterfaceSetRxPlacementReply)
1248 err := c.ch.SendRequest(in).ReceiveReply(out)
1255 func (c *serviceClient) SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error) {
1256 out := new(SwInterfaceSetTableReply)
1257 err := c.ch.SendRequest(in).ReceiveReply(out)
1264 func (c *serviceClient) SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error) {
1265 out := new(SwInterfaceSetUnnumberedReply)
1266 err := c.ch.SendRequest(in).ReceiveReply(out)
1273 func (c *serviceClient) SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error) {
1274 out := new(SwInterfaceTagAddDelReply)
1275 err := c.ch.SendRequest(in).ReceiveReply(out)
1282 func (c *serviceClient) WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error) {
1283 out := new(WantInterfaceEventsReply)
1284 err := c.ch.SendRequest(in).ReceiveReply(out)
1291 // This is a compile-time assertion to ensure that this generated file
1292 // is compatible with the GoVPP api package it is being compiled against.
1293 // A compilation error at this line likely means your copy of the
1294 // GoVPP api package needs to be updated.
1295 const _ = api.GoVppAPIPackageIsVersion1 // please upgrade the GoVPP api package
1297 // Reference imports to suppress errors if they are not otherwise used.
1298 var _ = api.RegisterMessage
1299 var _ = bytes.NewBuffer
1300 var _ = context.Background
1302 var _ = strconv.Itoa