1 // Code generated by GoVPP binapi-generator. DO NOT EDIT.
2 // source: /usr/share/vpp/api/core/interface.api.json
5 Package interfaces is a generated from VPP binary API module 'interface'.
7 The interface module consists of:
14 import api "git.fd.io/govpp.git/api"
16 import context "context"
17 import strconv "strconv"
18 import struc "github.com/lunixbochs/struc"
20 // Reference imports to suppress errors if they are not otherwise used.
21 var _ = api.RegisterMessage
22 var _ = bytes.NewBuffer
23 var _ = context.Background
27 // This is a compile-time assertion to ensure that this generated file
28 // is compatible with the GoVPP api package it is being compiled against.
29 // A compilation error at this line likely means your copy of the
30 // GoVPP api package needs to be updated.
31 const _ = api.GoVppAPIPackageIsVersion1 // please upgrade the GoVPP api package
34 // ModuleName is the name of this module.
35 ModuleName = "interface"
36 // APIVersion is the API version of this module.
38 // VersionCrc is the CRC of this module.
39 VersionCrc = 0x672de521
44 // InterfaceIndex represents VPP binary API alias 'interface_index':
45 type InterfaceIndex uint32
49 // CollectDetailedInterfaceStats represents VPP binary API message 'collect_detailed_interface_stats':
50 type CollectDetailedInterfaceStats struct {
55 func (*CollectDetailedInterfaceStats) GetMessageName() string {
56 return "collect_detailed_interface_stats"
58 func (*CollectDetailedInterfaceStats) GetCrcString() string {
61 func (*CollectDetailedInterfaceStats) GetMessageType() api.MessageType {
62 return api.RequestMessage
65 // CollectDetailedInterfaceStatsReply represents VPP binary API message 'collect_detailed_interface_stats_reply':
66 type CollectDetailedInterfaceStatsReply struct {
70 func (*CollectDetailedInterfaceStatsReply) GetMessageName() string {
71 return "collect_detailed_interface_stats_reply"
73 func (*CollectDetailedInterfaceStatsReply) GetCrcString() string {
76 func (*CollectDetailedInterfaceStatsReply) GetMessageType() api.MessageType {
77 return api.ReplyMessage
80 // CreateLoopback represents VPP binary API message 'create_loopback':
81 type CreateLoopback struct {
82 MacAddress []byte `struc:"[6]byte"`
85 func (*CreateLoopback) GetMessageName() string {
86 return "create_loopback"
88 func (*CreateLoopback) GetCrcString() string {
91 func (*CreateLoopback) GetMessageType() api.MessageType {
92 return api.RequestMessage
95 // CreateLoopbackInstance represents VPP binary API message 'create_loopback_instance':
96 type CreateLoopbackInstance struct {
97 MacAddress []byte `struc:"[6]byte"`
102 func (*CreateLoopbackInstance) GetMessageName() string {
103 return "create_loopback_instance"
105 func (*CreateLoopbackInstance) GetCrcString() string {
108 func (*CreateLoopbackInstance) GetMessageType() api.MessageType {
109 return api.RequestMessage
112 // CreateLoopbackInstanceReply represents VPP binary API message 'create_loopback_instance_reply':
113 type CreateLoopbackInstanceReply struct {
118 func (*CreateLoopbackInstanceReply) GetMessageName() string {
119 return "create_loopback_instance_reply"
121 func (*CreateLoopbackInstanceReply) GetCrcString() string {
124 func (*CreateLoopbackInstanceReply) GetMessageType() api.MessageType {
125 return api.ReplyMessage
128 // CreateLoopbackReply represents VPP binary API message 'create_loopback_reply':
129 type CreateLoopbackReply struct {
134 func (*CreateLoopbackReply) GetMessageName() string {
135 return "create_loopback_reply"
137 func (*CreateLoopbackReply) GetCrcString() string {
140 func (*CreateLoopbackReply) GetMessageType() api.MessageType {
141 return api.ReplyMessage
144 // CreateSubif represents VPP binary API message 'create_subif':
145 type CreateSubif struct {
160 func (*CreateSubif) GetMessageName() string {
161 return "create_subif"
163 func (*CreateSubif) GetCrcString() string {
166 func (*CreateSubif) GetMessageType() api.MessageType {
167 return api.RequestMessage
170 // CreateSubifReply represents VPP binary API message 'create_subif_reply':
171 type CreateSubifReply struct {
176 func (*CreateSubifReply) GetMessageName() string {
177 return "create_subif_reply"
179 func (*CreateSubifReply) GetCrcString() string {
182 func (*CreateSubifReply) GetMessageType() api.MessageType {
183 return api.ReplyMessage
186 // CreateVlanSubif represents VPP binary API message 'create_vlan_subif':
187 type CreateVlanSubif struct {
192 func (*CreateVlanSubif) GetMessageName() string {
193 return "create_vlan_subif"
195 func (*CreateVlanSubif) GetCrcString() string {
198 func (*CreateVlanSubif) GetMessageType() api.MessageType {
199 return api.RequestMessage
202 // CreateVlanSubifReply represents VPP binary API message 'create_vlan_subif_reply':
203 type CreateVlanSubifReply struct {
208 func (*CreateVlanSubifReply) GetMessageName() string {
209 return "create_vlan_subif_reply"
211 func (*CreateVlanSubifReply) GetCrcString() string {
214 func (*CreateVlanSubifReply) GetMessageType() api.MessageType {
215 return api.ReplyMessage
218 // DeleteLoopback represents VPP binary API message 'delete_loopback':
219 type DeleteLoopback struct {
223 func (*DeleteLoopback) GetMessageName() string {
224 return "delete_loopback"
226 func (*DeleteLoopback) GetCrcString() string {
229 func (*DeleteLoopback) GetMessageType() api.MessageType {
230 return api.RequestMessage
233 // DeleteLoopbackReply represents VPP binary API message 'delete_loopback_reply':
234 type DeleteLoopbackReply struct {
238 func (*DeleteLoopbackReply) GetMessageName() string {
239 return "delete_loopback_reply"
241 func (*DeleteLoopbackReply) GetCrcString() string {
244 func (*DeleteLoopbackReply) GetMessageType() api.MessageType {
245 return api.ReplyMessage
248 // DeleteSubif represents VPP binary API message 'delete_subif':
249 type DeleteSubif struct {
253 func (*DeleteSubif) GetMessageName() string {
254 return "delete_subif"
256 func (*DeleteSubif) GetCrcString() string {
259 func (*DeleteSubif) GetMessageType() api.MessageType {
260 return api.RequestMessage
263 // DeleteSubifReply represents VPP binary API message 'delete_subif_reply':
264 type DeleteSubifReply struct {
268 func (*DeleteSubifReply) GetMessageName() string {
269 return "delete_subif_reply"
271 func (*DeleteSubifReply) GetCrcString() string {
274 func (*DeleteSubifReply) GetMessageType() api.MessageType {
275 return api.ReplyMessage
278 // HwInterfaceSetMtu represents VPP binary API message 'hw_interface_set_mtu':
279 type HwInterfaceSetMtu struct {
284 func (*HwInterfaceSetMtu) GetMessageName() string {
285 return "hw_interface_set_mtu"
287 func (*HwInterfaceSetMtu) GetCrcString() string {
290 func (*HwInterfaceSetMtu) GetMessageType() api.MessageType {
291 return api.RequestMessage
294 // HwInterfaceSetMtuReply represents VPP binary API message 'hw_interface_set_mtu_reply':
295 type HwInterfaceSetMtuReply struct {
299 func (*HwInterfaceSetMtuReply) GetMessageName() string {
300 return "hw_interface_set_mtu_reply"
302 func (*HwInterfaceSetMtuReply) GetCrcString() string {
305 func (*HwInterfaceSetMtuReply) GetMessageType() api.MessageType {
306 return api.ReplyMessage
309 // InterfaceNameRenumber represents VPP binary API message 'interface_name_renumber':
310 type InterfaceNameRenumber struct {
312 NewShowDevInstance uint32
315 func (*InterfaceNameRenumber) GetMessageName() string {
316 return "interface_name_renumber"
318 func (*InterfaceNameRenumber) GetCrcString() string {
321 func (*InterfaceNameRenumber) GetMessageType() api.MessageType {
322 return api.RequestMessage
325 // InterfaceNameRenumberReply represents VPP binary API message 'interface_name_renumber_reply':
326 type InterfaceNameRenumberReply struct {
330 func (*InterfaceNameRenumberReply) GetMessageName() string {
331 return "interface_name_renumber_reply"
333 func (*InterfaceNameRenumberReply) GetCrcString() string {
336 func (*InterfaceNameRenumberReply) GetMessageType() api.MessageType {
337 return api.ReplyMessage
340 // SwInterfaceAddDelAddress represents VPP binary API message 'sw_interface_add_del_address':
341 type SwInterfaceAddDelAddress struct {
347 Address []byte `struc:"[16]byte"`
350 func (*SwInterfaceAddDelAddress) GetMessageName() string {
351 return "sw_interface_add_del_address"
353 func (*SwInterfaceAddDelAddress) GetCrcString() string {
356 func (*SwInterfaceAddDelAddress) GetMessageType() api.MessageType {
357 return api.RequestMessage
360 // SwInterfaceAddDelAddressReply represents VPP binary API message 'sw_interface_add_del_address_reply':
361 type SwInterfaceAddDelAddressReply struct {
365 func (*SwInterfaceAddDelAddressReply) GetMessageName() string {
366 return "sw_interface_add_del_address_reply"
368 func (*SwInterfaceAddDelAddressReply) GetCrcString() string {
371 func (*SwInterfaceAddDelAddressReply) GetMessageType() api.MessageType {
372 return api.ReplyMessage
375 // SwInterfaceClearStats represents VPP binary API message 'sw_interface_clear_stats':
376 type SwInterfaceClearStats struct {
380 func (*SwInterfaceClearStats) GetMessageName() string {
381 return "sw_interface_clear_stats"
383 func (*SwInterfaceClearStats) GetCrcString() string {
386 func (*SwInterfaceClearStats) GetMessageType() api.MessageType {
387 return api.RequestMessage
390 // SwInterfaceClearStatsReply represents VPP binary API message 'sw_interface_clear_stats_reply':
391 type SwInterfaceClearStatsReply struct {
395 func (*SwInterfaceClearStatsReply) GetMessageName() string {
396 return "sw_interface_clear_stats_reply"
398 func (*SwInterfaceClearStatsReply) GetCrcString() string {
401 func (*SwInterfaceClearStatsReply) GetMessageType() api.MessageType {
402 return api.ReplyMessage
405 // SwInterfaceDetails represents VPP binary API message 'sw_interface_details':
406 type SwInterfaceDetails struct {
409 L2AddressLength uint32
410 L2Address []byte `struc:"[8]byte"`
411 InterfaceName []byte `struc:"[64]byte"`
417 Mtu []uint32 `struc:"[4]uint32"`
421 SubNumberOfTags uint8
422 SubOuterVlanID uint16
423 SubInnerVlanID uint16
426 SubOuterVlanIDAny uint8
427 SubInnerVlanIDAny uint8
432 Tag []byte `struc:"[64]byte"`
434 BDmac []byte `struc:"[6]byte"`
435 BSmac []byte `struc:"[6]byte"`
440 func (*SwInterfaceDetails) GetMessageName() string {
441 return "sw_interface_details"
443 func (*SwInterfaceDetails) GetCrcString() string {
446 func (*SwInterfaceDetails) GetMessageType() api.MessageType {
447 return api.ReplyMessage
450 // SwInterfaceDump represents VPP binary API message 'sw_interface_dump':
451 type SwInterfaceDump struct {
452 NameFilterValid uint8
453 NameFilter []byte `struc:"[49]byte"`
456 func (*SwInterfaceDump) GetMessageName() string {
457 return "sw_interface_dump"
459 func (*SwInterfaceDump) GetCrcString() string {
462 func (*SwInterfaceDump) GetMessageType() api.MessageType {
463 return api.RequestMessage
466 // SwInterfaceEvent represents VPP binary API message 'sw_interface_event':
467 type SwInterfaceEvent struct {
475 func (*SwInterfaceEvent) GetMessageName() string {
476 return "sw_interface_event"
478 func (*SwInterfaceEvent) GetCrcString() string {
481 func (*SwInterfaceEvent) GetMessageType() api.MessageType {
482 return api.EventMessage
485 // SwInterfaceGetMacAddress represents VPP binary API message 'sw_interface_get_mac_address':
486 type SwInterfaceGetMacAddress struct {
490 func (*SwInterfaceGetMacAddress) GetMessageName() string {
491 return "sw_interface_get_mac_address"
493 func (*SwInterfaceGetMacAddress) GetCrcString() string {
496 func (*SwInterfaceGetMacAddress) GetMessageType() api.MessageType {
497 return api.RequestMessage
500 // SwInterfaceGetMacAddressReply represents VPP binary API message 'sw_interface_get_mac_address_reply':
501 type SwInterfaceGetMacAddressReply struct {
503 MacAddress []byte `struc:"[6]byte"`
506 func (*SwInterfaceGetMacAddressReply) GetMessageName() string {
507 return "sw_interface_get_mac_address_reply"
509 func (*SwInterfaceGetMacAddressReply) GetCrcString() string {
512 func (*SwInterfaceGetMacAddressReply) GetMessageType() api.MessageType {
513 return api.ReplyMessage
516 // SwInterfaceGetTable represents VPP binary API message 'sw_interface_get_table':
517 type SwInterfaceGetTable struct {
522 func (*SwInterfaceGetTable) GetMessageName() string {
523 return "sw_interface_get_table"
525 func (*SwInterfaceGetTable) GetCrcString() string {
528 func (*SwInterfaceGetTable) GetMessageType() api.MessageType {
529 return api.RequestMessage
532 // SwInterfaceGetTableReply represents VPP binary API message 'sw_interface_get_table_reply':
533 type SwInterfaceGetTableReply struct {
538 func (*SwInterfaceGetTableReply) GetMessageName() string {
539 return "sw_interface_get_table_reply"
541 func (*SwInterfaceGetTableReply) GetCrcString() string {
544 func (*SwInterfaceGetTableReply) GetMessageType() api.MessageType {
545 return api.ReplyMessage
548 // SwInterfaceRxPlacementDetails represents VPP binary API message 'sw_interface_rx_placement_details':
549 type SwInterfaceRxPlacementDetails struct {
556 func (*SwInterfaceRxPlacementDetails) GetMessageName() string {
557 return "sw_interface_rx_placement_details"
559 func (*SwInterfaceRxPlacementDetails) GetCrcString() string {
562 func (*SwInterfaceRxPlacementDetails) GetMessageType() api.MessageType {
563 return api.RequestMessage
566 // SwInterfaceRxPlacementDump represents VPP binary API message 'sw_interface_rx_placement_dump':
567 type SwInterfaceRxPlacementDump struct {
571 func (*SwInterfaceRxPlacementDump) GetMessageName() string {
572 return "sw_interface_rx_placement_dump"
574 func (*SwInterfaceRxPlacementDump) GetCrcString() string {
577 func (*SwInterfaceRxPlacementDump) GetMessageType() api.MessageType {
578 return api.RequestMessage
581 // SwInterfaceSetFlags represents VPP binary API message 'sw_interface_set_flags':
582 type SwInterfaceSetFlags struct {
587 func (*SwInterfaceSetFlags) GetMessageName() string {
588 return "sw_interface_set_flags"
590 func (*SwInterfaceSetFlags) GetCrcString() string {
593 func (*SwInterfaceSetFlags) GetMessageType() api.MessageType {
594 return api.RequestMessage
597 // SwInterfaceSetFlagsReply represents VPP binary API message 'sw_interface_set_flags_reply':
598 type SwInterfaceSetFlagsReply struct {
602 func (*SwInterfaceSetFlagsReply) GetMessageName() string {
603 return "sw_interface_set_flags_reply"
605 func (*SwInterfaceSetFlagsReply) GetCrcString() string {
608 func (*SwInterfaceSetFlagsReply) GetMessageType() api.MessageType {
609 return api.ReplyMessage
612 // SwInterfaceSetIPDirectedBroadcast represents VPP binary API message 'sw_interface_set_ip_directed_broadcast':
613 type SwInterfaceSetIPDirectedBroadcast struct {
618 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageName() string {
619 return "sw_interface_set_ip_directed_broadcast"
621 func (*SwInterfaceSetIPDirectedBroadcast) GetCrcString() string {
624 func (*SwInterfaceSetIPDirectedBroadcast) GetMessageType() api.MessageType {
625 return api.RequestMessage
628 // SwInterfaceSetIPDirectedBroadcastReply represents VPP binary API message 'sw_interface_set_ip_directed_broadcast_reply':
629 type SwInterfaceSetIPDirectedBroadcastReply struct {
633 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageName() string {
634 return "sw_interface_set_ip_directed_broadcast_reply"
636 func (*SwInterfaceSetIPDirectedBroadcastReply) GetCrcString() string {
639 func (*SwInterfaceSetIPDirectedBroadcastReply) GetMessageType() api.MessageType {
640 return api.ReplyMessage
643 // SwInterfaceSetMacAddress represents VPP binary API message 'sw_interface_set_mac_address':
644 type SwInterfaceSetMacAddress struct {
646 MacAddress []byte `struc:"[6]byte"`
649 func (*SwInterfaceSetMacAddress) GetMessageName() string {
650 return "sw_interface_set_mac_address"
652 func (*SwInterfaceSetMacAddress) GetCrcString() string {
655 func (*SwInterfaceSetMacAddress) GetMessageType() api.MessageType {
656 return api.RequestMessage
659 // SwInterfaceSetMacAddressReply represents VPP binary API message 'sw_interface_set_mac_address_reply':
660 type SwInterfaceSetMacAddressReply struct {
664 func (*SwInterfaceSetMacAddressReply) GetMessageName() string {
665 return "sw_interface_set_mac_address_reply"
667 func (*SwInterfaceSetMacAddressReply) GetCrcString() string {
670 func (*SwInterfaceSetMacAddressReply) GetMessageType() api.MessageType {
671 return api.ReplyMessage
674 // SwInterfaceSetMtu represents VPP binary API message 'sw_interface_set_mtu':
675 type SwInterfaceSetMtu struct {
677 Mtu []uint32 `struc:"[4]uint32"`
680 func (*SwInterfaceSetMtu) GetMessageName() string {
681 return "sw_interface_set_mtu"
683 func (*SwInterfaceSetMtu) GetCrcString() string {
686 func (*SwInterfaceSetMtu) GetMessageType() api.MessageType {
687 return api.RequestMessage
690 // SwInterfaceSetMtuReply represents VPP binary API message 'sw_interface_set_mtu_reply':
691 type SwInterfaceSetMtuReply struct {
695 func (*SwInterfaceSetMtuReply) GetMessageName() string {
696 return "sw_interface_set_mtu_reply"
698 func (*SwInterfaceSetMtuReply) GetCrcString() string {
701 func (*SwInterfaceSetMtuReply) GetMessageType() api.MessageType {
702 return api.ReplyMessage
705 // SwInterfaceSetRxMode represents VPP binary API message 'sw_interface_set_rx_mode':
706 type SwInterfaceSetRxMode struct {
713 func (*SwInterfaceSetRxMode) GetMessageName() string {
714 return "sw_interface_set_rx_mode"
716 func (*SwInterfaceSetRxMode) GetCrcString() string {
719 func (*SwInterfaceSetRxMode) GetMessageType() api.MessageType {
720 return api.RequestMessage
723 // SwInterfaceSetRxModeReply represents VPP binary API message 'sw_interface_set_rx_mode_reply':
724 type SwInterfaceSetRxModeReply struct {
728 func (*SwInterfaceSetRxModeReply) GetMessageName() string {
729 return "sw_interface_set_rx_mode_reply"
731 func (*SwInterfaceSetRxModeReply) GetCrcString() string {
734 func (*SwInterfaceSetRxModeReply) GetMessageType() api.MessageType {
735 return api.ReplyMessage
738 // SwInterfaceSetRxPlacement represents VPP binary API message 'sw_interface_set_rx_placement':
739 type SwInterfaceSetRxPlacement struct {
746 func (*SwInterfaceSetRxPlacement) GetMessageName() string {
747 return "sw_interface_set_rx_placement"
749 func (*SwInterfaceSetRxPlacement) GetCrcString() string {
752 func (*SwInterfaceSetRxPlacement) GetMessageType() api.MessageType {
753 return api.RequestMessage
756 // SwInterfaceSetRxPlacementReply represents VPP binary API message 'sw_interface_set_rx_placement_reply':
757 type SwInterfaceSetRxPlacementReply struct {
761 func (*SwInterfaceSetRxPlacementReply) GetMessageName() string {
762 return "sw_interface_set_rx_placement_reply"
764 func (*SwInterfaceSetRxPlacementReply) GetCrcString() string {
767 func (*SwInterfaceSetRxPlacementReply) GetMessageType() api.MessageType {
768 return api.ReplyMessage
771 // SwInterfaceSetTable represents VPP binary API message 'sw_interface_set_table':
772 type SwInterfaceSetTable struct {
778 func (*SwInterfaceSetTable) GetMessageName() string {
779 return "sw_interface_set_table"
781 func (*SwInterfaceSetTable) GetCrcString() string {
784 func (*SwInterfaceSetTable) GetMessageType() api.MessageType {
785 return api.RequestMessage
788 // SwInterfaceSetTableReply represents VPP binary API message 'sw_interface_set_table_reply':
789 type SwInterfaceSetTableReply struct {
793 func (*SwInterfaceSetTableReply) GetMessageName() string {
794 return "sw_interface_set_table_reply"
796 func (*SwInterfaceSetTableReply) GetCrcString() string {
799 func (*SwInterfaceSetTableReply) GetMessageType() api.MessageType {
800 return api.ReplyMessage
803 // SwInterfaceSetUnnumbered represents VPP binary API message 'sw_interface_set_unnumbered':
804 type SwInterfaceSetUnnumbered struct {
806 UnnumberedSwIfIndex uint32
810 func (*SwInterfaceSetUnnumbered) GetMessageName() string {
811 return "sw_interface_set_unnumbered"
813 func (*SwInterfaceSetUnnumbered) GetCrcString() string {
816 func (*SwInterfaceSetUnnumbered) GetMessageType() api.MessageType {
817 return api.RequestMessage
820 // SwInterfaceSetUnnumberedReply represents VPP binary API message 'sw_interface_set_unnumbered_reply':
821 type SwInterfaceSetUnnumberedReply struct {
825 func (*SwInterfaceSetUnnumberedReply) GetMessageName() string {
826 return "sw_interface_set_unnumbered_reply"
828 func (*SwInterfaceSetUnnumberedReply) GetCrcString() string {
831 func (*SwInterfaceSetUnnumberedReply) GetMessageType() api.MessageType {
832 return api.ReplyMessage
835 // SwInterfaceTagAddDel represents VPP binary API message 'sw_interface_tag_add_del':
836 type SwInterfaceTagAddDel struct {
839 Tag []byte `struc:"[64]byte"`
842 func (*SwInterfaceTagAddDel) GetMessageName() string {
843 return "sw_interface_tag_add_del"
845 func (*SwInterfaceTagAddDel) GetCrcString() string {
848 func (*SwInterfaceTagAddDel) GetMessageType() api.MessageType {
849 return api.RequestMessage
852 // SwInterfaceTagAddDelReply represents VPP binary API message 'sw_interface_tag_add_del_reply':
853 type SwInterfaceTagAddDelReply struct {
857 func (*SwInterfaceTagAddDelReply) GetMessageName() string {
858 return "sw_interface_tag_add_del_reply"
860 func (*SwInterfaceTagAddDelReply) GetCrcString() string {
863 func (*SwInterfaceTagAddDelReply) GetMessageType() api.MessageType {
864 return api.ReplyMessage
867 // WantInterfaceEvents represents VPP binary API message 'want_interface_events':
868 type WantInterfaceEvents struct {
873 func (*WantInterfaceEvents) GetMessageName() string {
874 return "want_interface_events"
876 func (*WantInterfaceEvents) GetCrcString() string {
879 func (*WantInterfaceEvents) GetMessageType() api.MessageType {
880 return api.RequestMessage
883 // WantInterfaceEventsReply represents VPP binary API message 'want_interface_events_reply':
884 type WantInterfaceEventsReply struct {
888 func (*WantInterfaceEventsReply) GetMessageName() string {
889 return "want_interface_events_reply"
891 func (*WantInterfaceEventsReply) GetCrcString() string {
894 func (*WantInterfaceEventsReply) GetMessageType() api.MessageType {
895 return api.ReplyMessage
899 api.RegisterMessage((*CollectDetailedInterfaceStats)(nil), "interface.CollectDetailedInterfaceStats")
900 api.RegisterMessage((*CollectDetailedInterfaceStatsReply)(nil), "interface.CollectDetailedInterfaceStatsReply")
901 api.RegisterMessage((*CreateLoopback)(nil), "interface.CreateLoopback")
902 api.RegisterMessage((*CreateLoopbackInstance)(nil), "interface.CreateLoopbackInstance")
903 api.RegisterMessage((*CreateLoopbackInstanceReply)(nil), "interface.CreateLoopbackInstanceReply")
904 api.RegisterMessage((*CreateLoopbackReply)(nil), "interface.CreateLoopbackReply")
905 api.RegisterMessage((*CreateSubif)(nil), "interface.CreateSubif")
906 api.RegisterMessage((*CreateSubifReply)(nil), "interface.CreateSubifReply")
907 api.RegisterMessage((*CreateVlanSubif)(nil), "interface.CreateVlanSubif")
908 api.RegisterMessage((*CreateVlanSubifReply)(nil), "interface.CreateVlanSubifReply")
909 api.RegisterMessage((*DeleteLoopback)(nil), "interface.DeleteLoopback")
910 api.RegisterMessage((*DeleteLoopbackReply)(nil), "interface.DeleteLoopbackReply")
911 api.RegisterMessage((*DeleteSubif)(nil), "interface.DeleteSubif")
912 api.RegisterMessage((*DeleteSubifReply)(nil), "interface.DeleteSubifReply")
913 api.RegisterMessage((*HwInterfaceSetMtu)(nil), "interface.HwInterfaceSetMtu")
914 api.RegisterMessage((*HwInterfaceSetMtuReply)(nil), "interface.HwInterfaceSetMtuReply")
915 api.RegisterMessage((*InterfaceNameRenumber)(nil), "interface.InterfaceNameRenumber")
916 api.RegisterMessage((*InterfaceNameRenumberReply)(nil), "interface.InterfaceNameRenumberReply")
917 api.RegisterMessage((*SwInterfaceAddDelAddress)(nil), "interface.SwInterfaceAddDelAddress")
918 api.RegisterMessage((*SwInterfaceAddDelAddressReply)(nil), "interface.SwInterfaceAddDelAddressReply")
919 api.RegisterMessage((*SwInterfaceClearStats)(nil), "interface.SwInterfaceClearStats")
920 api.RegisterMessage((*SwInterfaceClearStatsReply)(nil), "interface.SwInterfaceClearStatsReply")
921 api.RegisterMessage((*SwInterfaceDetails)(nil), "interface.SwInterfaceDetails")
922 api.RegisterMessage((*SwInterfaceDump)(nil), "interface.SwInterfaceDump")
923 api.RegisterMessage((*SwInterfaceEvent)(nil), "interface.SwInterfaceEvent")
924 api.RegisterMessage((*SwInterfaceGetMacAddress)(nil), "interface.SwInterfaceGetMacAddress")
925 api.RegisterMessage((*SwInterfaceGetMacAddressReply)(nil), "interface.SwInterfaceGetMacAddressReply")
926 api.RegisterMessage((*SwInterfaceGetTable)(nil), "interface.SwInterfaceGetTable")
927 api.RegisterMessage((*SwInterfaceGetTableReply)(nil), "interface.SwInterfaceGetTableReply")
928 api.RegisterMessage((*SwInterfaceRxPlacementDetails)(nil), "interface.SwInterfaceRxPlacementDetails")
929 api.RegisterMessage((*SwInterfaceRxPlacementDump)(nil), "interface.SwInterfaceRxPlacementDump")
930 api.RegisterMessage((*SwInterfaceSetFlags)(nil), "interface.SwInterfaceSetFlags")
931 api.RegisterMessage((*SwInterfaceSetFlagsReply)(nil), "interface.SwInterfaceSetFlagsReply")
932 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcast)(nil), "interface.SwInterfaceSetIPDirectedBroadcast")
933 api.RegisterMessage((*SwInterfaceSetIPDirectedBroadcastReply)(nil), "interface.SwInterfaceSetIPDirectedBroadcastReply")
934 api.RegisterMessage((*SwInterfaceSetMacAddress)(nil), "interface.SwInterfaceSetMacAddress")
935 api.RegisterMessage((*SwInterfaceSetMacAddressReply)(nil), "interface.SwInterfaceSetMacAddressReply")
936 api.RegisterMessage((*SwInterfaceSetMtu)(nil), "interface.SwInterfaceSetMtu")
937 api.RegisterMessage((*SwInterfaceSetMtuReply)(nil), "interface.SwInterfaceSetMtuReply")
938 api.RegisterMessage((*SwInterfaceSetRxMode)(nil), "interface.SwInterfaceSetRxMode")
939 api.RegisterMessage((*SwInterfaceSetRxModeReply)(nil), "interface.SwInterfaceSetRxModeReply")
940 api.RegisterMessage((*SwInterfaceSetRxPlacement)(nil), "interface.SwInterfaceSetRxPlacement")
941 api.RegisterMessage((*SwInterfaceSetRxPlacementReply)(nil), "interface.SwInterfaceSetRxPlacementReply")
942 api.RegisterMessage((*SwInterfaceSetTable)(nil), "interface.SwInterfaceSetTable")
943 api.RegisterMessage((*SwInterfaceSetTableReply)(nil), "interface.SwInterfaceSetTableReply")
944 api.RegisterMessage((*SwInterfaceSetUnnumbered)(nil), "interface.SwInterfaceSetUnnumbered")
945 api.RegisterMessage((*SwInterfaceSetUnnumberedReply)(nil), "interface.SwInterfaceSetUnnumberedReply")
946 api.RegisterMessage((*SwInterfaceTagAddDel)(nil), "interface.SwInterfaceTagAddDel")
947 api.RegisterMessage((*SwInterfaceTagAddDelReply)(nil), "interface.SwInterfaceTagAddDelReply")
948 api.RegisterMessage((*WantInterfaceEvents)(nil), "interface.WantInterfaceEvents")
949 api.RegisterMessage((*WantInterfaceEventsReply)(nil), "interface.WantInterfaceEventsReply")
952 // Messages returns list of all messages in this module.
953 func AllMessages() []api.Message {
954 return []api.Message{
955 (*CollectDetailedInterfaceStats)(nil),
956 (*CollectDetailedInterfaceStatsReply)(nil),
957 (*CreateLoopback)(nil),
958 (*CreateLoopbackInstance)(nil),
959 (*CreateLoopbackInstanceReply)(nil),
960 (*CreateLoopbackReply)(nil),
962 (*CreateSubifReply)(nil),
963 (*CreateVlanSubif)(nil),
964 (*CreateVlanSubifReply)(nil),
965 (*DeleteLoopback)(nil),
966 (*DeleteLoopbackReply)(nil),
968 (*DeleteSubifReply)(nil),
969 (*HwInterfaceSetMtu)(nil),
970 (*HwInterfaceSetMtuReply)(nil),
971 (*InterfaceNameRenumber)(nil),
972 (*InterfaceNameRenumberReply)(nil),
973 (*SwInterfaceAddDelAddress)(nil),
974 (*SwInterfaceAddDelAddressReply)(nil),
975 (*SwInterfaceClearStats)(nil),
976 (*SwInterfaceClearStatsReply)(nil),
977 (*SwInterfaceDetails)(nil),
978 (*SwInterfaceDump)(nil),
979 (*SwInterfaceEvent)(nil),
980 (*SwInterfaceGetMacAddress)(nil),
981 (*SwInterfaceGetMacAddressReply)(nil),
982 (*SwInterfaceGetTable)(nil),
983 (*SwInterfaceGetTableReply)(nil),
984 (*SwInterfaceRxPlacementDetails)(nil),
985 (*SwInterfaceRxPlacementDump)(nil),
986 (*SwInterfaceSetFlags)(nil),
987 (*SwInterfaceSetFlagsReply)(nil),
988 (*SwInterfaceSetIPDirectedBroadcast)(nil),
989 (*SwInterfaceSetIPDirectedBroadcastReply)(nil),
990 (*SwInterfaceSetMacAddress)(nil),
991 (*SwInterfaceSetMacAddressReply)(nil),
992 (*SwInterfaceSetMtu)(nil),
993 (*SwInterfaceSetMtuReply)(nil),
994 (*SwInterfaceSetRxMode)(nil),
995 (*SwInterfaceSetRxModeReply)(nil),
996 (*SwInterfaceSetRxPlacement)(nil),
997 (*SwInterfaceSetRxPlacementReply)(nil),
998 (*SwInterfaceSetTable)(nil),
999 (*SwInterfaceSetTableReply)(nil),
1000 (*SwInterfaceSetUnnumbered)(nil),
1001 (*SwInterfaceSetUnnumberedReply)(nil),
1002 (*SwInterfaceTagAddDel)(nil),
1003 (*SwInterfaceTagAddDelReply)(nil),
1004 (*WantInterfaceEvents)(nil),
1005 (*WantInterfaceEventsReply)(nil),
1009 // Service represents services in VPP binary API.
1010 type Service interface {
1011 DumpSwInterface(ctx context.Context, in *SwInterfaceDump) ([]*SwInterfaceDetails, error)
1012 DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) ([]*SwInterfaceRxPlacementDetails, error)
1013 CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error)
1014 CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error)
1015 CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error)
1016 CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error)
1017 CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error)
1018 DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error)
1019 DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error)
1020 HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error)
1021 InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error)
1022 SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error)
1023 SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error)
1024 SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error)
1025 SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error)
1026 SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error)
1027 SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error)
1028 SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error)
1029 SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error)
1030 SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error)
1031 SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error)
1032 SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error)
1033 SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error)
1034 SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error)
1035 WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error)
1038 type service struct {
1042 func NewService(ch api.Channel) Service {
1046 func (c *service) DumpSwInterface(ctx context.Context, in *SwInterfaceDump) ([]*SwInterfaceDetails, error) {
1047 var dump []*SwInterfaceDetails
1048 req := c.ch.SendMultiRequest(in)
1050 m := new(SwInterfaceDetails)
1051 stop, err := req.ReceiveReply(m)
1058 dump = append(dump, m)
1063 func (c *service) DumpSwInterfaceRxPlacement(ctx context.Context, in *SwInterfaceRxPlacementDump) ([]*SwInterfaceRxPlacementDetails, error) {
1064 var dump []*SwInterfaceRxPlacementDetails
1065 req := c.ch.SendMultiRequest(in)
1067 m := new(SwInterfaceRxPlacementDetails)
1068 stop, err := req.ReceiveReply(m)
1075 dump = append(dump, m)
1080 func (c *service) CollectDetailedInterfaceStats(ctx context.Context, in *CollectDetailedInterfaceStats) (*CollectDetailedInterfaceStatsReply, error) {
1081 out := new(CollectDetailedInterfaceStatsReply)
1082 err := c.ch.SendRequest(in).ReceiveReply(out)
1089 func (c *service) CreateLoopback(ctx context.Context, in *CreateLoopback) (*CreateLoopbackReply, error) {
1090 out := new(CreateLoopbackReply)
1091 err := c.ch.SendRequest(in).ReceiveReply(out)
1098 func (c *service) CreateLoopbackInstance(ctx context.Context, in *CreateLoopbackInstance) (*CreateLoopbackInstanceReply, error) {
1099 out := new(CreateLoopbackInstanceReply)
1100 err := c.ch.SendRequest(in).ReceiveReply(out)
1107 func (c *service) CreateSubif(ctx context.Context, in *CreateSubif) (*CreateSubifReply, error) {
1108 out := new(CreateSubifReply)
1109 err := c.ch.SendRequest(in).ReceiveReply(out)
1116 func (c *service) CreateVlanSubif(ctx context.Context, in *CreateVlanSubif) (*CreateVlanSubifReply, error) {
1117 out := new(CreateVlanSubifReply)
1118 err := c.ch.SendRequest(in).ReceiveReply(out)
1125 func (c *service) DeleteLoopback(ctx context.Context, in *DeleteLoopback) (*DeleteLoopbackReply, error) {
1126 out := new(DeleteLoopbackReply)
1127 err := c.ch.SendRequest(in).ReceiveReply(out)
1134 func (c *service) DeleteSubif(ctx context.Context, in *DeleteSubif) (*DeleteSubifReply, error) {
1135 out := new(DeleteSubifReply)
1136 err := c.ch.SendRequest(in).ReceiveReply(out)
1143 func (c *service) HwInterfaceSetMtu(ctx context.Context, in *HwInterfaceSetMtu) (*HwInterfaceSetMtuReply, error) {
1144 out := new(HwInterfaceSetMtuReply)
1145 err := c.ch.SendRequest(in).ReceiveReply(out)
1152 func (c *service) InterfaceNameRenumber(ctx context.Context, in *InterfaceNameRenumber) (*InterfaceNameRenumberReply, error) {
1153 out := new(InterfaceNameRenumberReply)
1154 err := c.ch.SendRequest(in).ReceiveReply(out)
1161 func (c *service) SwInterfaceAddDelAddress(ctx context.Context, in *SwInterfaceAddDelAddress) (*SwInterfaceAddDelAddressReply, error) {
1162 out := new(SwInterfaceAddDelAddressReply)
1163 err := c.ch.SendRequest(in).ReceiveReply(out)
1170 func (c *service) SwInterfaceClearStats(ctx context.Context, in *SwInterfaceClearStats) (*SwInterfaceClearStatsReply, error) {
1171 out := new(SwInterfaceClearStatsReply)
1172 err := c.ch.SendRequest(in).ReceiveReply(out)
1179 func (c *service) SwInterfaceGetMacAddress(ctx context.Context, in *SwInterfaceGetMacAddress) (*SwInterfaceGetMacAddressReply, error) {
1180 out := new(SwInterfaceGetMacAddressReply)
1181 err := c.ch.SendRequest(in).ReceiveReply(out)
1188 func (c *service) SwInterfaceGetTable(ctx context.Context, in *SwInterfaceGetTable) (*SwInterfaceGetTableReply, error) {
1189 out := new(SwInterfaceGetTableReply)
1190 err := c.ch.SendRequest(in).ReceiveReply(out)
1197 func (c *service) SwInterfaceSetFlags(ctx context.Context, in *SwInterfaceSetFlags) (*SwInterfaceSetFlagsReply, error) {
1198 out := new(SwInterfaceSetFlagsReply)
1199 err := c.ch.SendRequest(in).ReceiveReply(out)
1206 func (c *service) SwInterfaceSetIPDirectedBroadcast(ctx context.Context, in *SwInterfaceSetIPDirectedBroadcast) (*SwInterfaceSetIPDirectedBroadcastReply, error) {
1207 out := new(SwInterfaceSetIPDirectedBroadcastReply)
1208 err := c.ch.SendRequest(in).ReceiveReply(out)
1215 func (c *service) SwInterfaceSetMacAddress(ctx context.Context, in *SwInterfaceSetMacAddress) (*SwInterfaceSetMacAddressReply, error) {
1216 out := new(SwInterfaceSetMacAddressReply)
1217 err := c.ch.SendRequest(in).ReceiveReply(out)
1224 func (c *service) SwInterfaceSetMtu(ctx context.Context, in *SwInterfaceSetMtu) (*SwInterfaceSetMtuReply, error) {
1225 out := new(SwInterfaceSetMtuReply)
1226 err := c.ch.SendRequest(in).ReceiveReply(out)
1233 func (c *service) SwInterfaceSetRxMode(ctx context.Context, in *SwInterfaceSetRxMode) (*SwInterfaceSetRxModeReply, error) {
1234 out := new(SwInterfaceSetRxModeReply)
1235 err := c.ch.SendRequest(in).ReceiveReply(out)
1242 func (c *service) SwInterfaceSetRxPlacement(ctx context.Context, in *SwInterfaceSetRxPlacement) (*SwInterfaceSetRxPlacementReply, error) {
1243 out := new(SwInterfaceSetRxPlacementReply)
1244 err := c.ch.SendRequest(in).ReceiveReply(out)
1251 func (c *service) SwInterfaceSetTable(ctx context.Context, in *SwInterfaceSetTable) (*SwInterfaceSetTableReply, error) {
1252 out := new(SwInterfaceSetTableReply)
1253 err := c.ch.SendRequest(in).ReceiveReply(out)
1260 func (c *service) SwInterfaceSetUnnumbered(ctx context.Context, in *SwInterfaceSetUnnumbered) (*SwInterfaceSetUnnumberedReply, error) {
1261 out := new(SwInterfaceSetUnnumberedReply)
1262 err := c.ch.SendRequest(in).ReceiveReply(out)
1269 func (c *service) SwInterfaceTagAddDel(ctx context.Context, in *SwInterfaceTagAddDel) (*SwInterfaceTagAddDelReply, error) {
1270 out := new(SwInterfaceTagAddDelReply)
1271 err := c.ch.SendRequest(in).ReceiveReply(out)
1278 func (c *service) WantInterfaceEvents(ctx context.Context, in *WantInterfaceEvents) (*WantInterfaceEventsReply, error) {
1279 out := new(WantInterfaceEventsReply)
1280 err := c.ch.SendRequest(in).ReceiveReply(out)