1 // Code generated by GoVPP binapi-generator. DO NOT EDIT.
2 // source: acl.api.json
5 Package acl is a generated from VPP binary API module 'acl'.
7 It contains following objects:
14 import api "git.fd.io/govpp.git/api"
15 import struc "github.com/lunixbochs/struc"
18 // Reference imports to suppress errors if they are not otherwise used.
19 var _ = api.RegisterMessage
21 var _ = bytes.NewBuffer
23 // Services represents VPP binary API services:
24 type Services interface {
25 DumpACL(*ACLDump) ([]*ACLDetails, error)
26 DumpACLInterfaceEtypeWhitelist(*ACLInterfaceEtypeWhitelistDump) ([]*ACLInterfaceEtypeWhitelistDetails, error)
27 DumpACLInterfaceList(*ACLInterfaceListDump) ([]*ACLInterfaceListDetails, error)
28 DumpMacipACL(*MacipACLDump) ([]*MacipACLDetails, error)
29 DumpMacipACLInterfaceList(*MacipACLInterfaceListDump) ([]*MacipACLInterfaceListDetails, error)
30 ACLAddReplace(*ACLAddReplace) (*ACLAddReplaceReply, error)
31 ACLDel(*ACLDel) (*ACLDelReply, error)
32 ACLInterfaceAddDel(*ACLInterfaceAddDel) (*ACLInterfaceAddDelReply, error)
33 ACLInterfaceSetACLList(*ACLInterfaceSetACLList) (*ACLInterfaceSetACLListReply, error)
34 ACLInterfaceSetEtypeWhitelist(*ACLInterfaceSetEtypeWhitelist) (*ACLInterfaceSetEtypeWhitelistReply, error)
35 ACLPluginControlPing(*ACLPluginControlPing) (*ACLPluginControlPingReply, error)
36 ACLPluginGetConnTableMaxEntries(*ACLPluginGetConnTableMaxEntries) (*ACLPluginGetConnTableMaxEntriesReply, error)
37 ACLPluginGetVersion(*ACLPluginGetVersion) (*ACLPluginGetVersionReply, error)
38 MacipACLAdd(*MacipACLAdd) (*MacipACLAddReply, error)
39 MacipACLAddReplace(*MacipACLAddReplace) (*MacipACLAddReplaceReply, error)
40 MacipACLDel(*MacipACLDel) (*MacipACLDelReply, error)
41 MacipACLInterfaceAddDel(*MacipACLInterfaceAddDel) (*MacipACLInterfaceAddDelReply, error)
42 MacipACLInterfaceGet(*MacipACLInterfaceGet) (*MacipACLInterfaceGetReply, error)
47 // ACLRule represents VPP binary API type 'acl_rule':
51 SrcIPAddr []byte `struc:"[16]byte"`
53 DstIPAddr []byte `struc:"[16]byte"`
56 SrcportOrIcmptypeFirst uint16
57 SrcportOrIcmptypeLast uint16
58 DstportOrIcmpcodeFirst uint16
59 DstportOrIcmpcodeLast uint16
64 func (*ACLRule) GetTypeName() string {
67 func (*ACLRule) GetCrcString() string {
71 // MacipACLRule represents VPP binary API type 'macip_acl_rule':
72 type MacipACLRule struct {
75 SrcMac []byte `struc:"[6]byte"`
76 SrcMacMask []byte `struc:"[6]byte"`
77 SrcIPAddr []byte `struc:"[16]byte"`
81 func (*MacipACLRule) GetTypeName() string {
82 return "macip_acl_rule"
84 func (*MacipACLRule) GetCrcString() string {
90 // ACLAddReplace represents VPP binary API message 'acl_add_replace':
91 type ACLAddReplace struct {
93 Tag []byte `struc:"[64]byte"`
94 Count uint32 `struc:"sizeof=R"`
98 func (*ACLAddReplace) GetMessageName() string {
99 return "acl_add_replace"
101 func (*ACLAddReplace) GetCrcString() string {
104 func (*ACLAddReplace) GetMessageType() api.MessageType {
105 return api.RequestMessage
108 // ACLAddReplaceReply represents VPP binary API message 'acl_add_replace_reply':
109 type ACLAddReplaceReply struct {
114 func (*ACLAddReplaceReply) GetMessageName() string {
115 return "acl_add_replace_reply"
117 func (*ACLAddReplaceReply) GetCrcString() string {
120 func (*ACLAddReplaceReply) GetMessageType() api.MessageType {
121 return api.ReplyMessage
124 // ACLDel represents VPP binary API message 'acl_del':
129 func (*ACLDel) GetMessageName() string {
132 func (*ACLDel) GetCrcString() string {
135 func (*ACLDel) GetMessageType() api.MessageType {
136 return api.RequestMessage
139 // ACLDelReply represents VPP binary API message 'acl_del_reply':
140 type ACLDelReply struct {
144 func (*ACLDelReply) GetMessageName() string {
145 return "acl_del_reply"
147 func (*ACLDelReply) GetCrcString() string {
150 func (*ACLDelReply) GetMessageType() api.MessageType {
151 return api.ReplyMessage
154 // ACLDetails represents VPP binary API message 'acl_details':
155 type ACLDetails struct {
157 Tag []byte `struc:"[64]byte"`
158 Count uint32 `struc:"sizeof=R"`
162 func (*ACLDetails) GetMessageName() string {
165 func (*ACLDetails) GetCrcString() string {
168 func (*ACLDetails) GetMessageType() api.MessageType {
169 return api.ReplyMessage
172 // ACLDump represents VPP binary API message 'acl_dump':
173 type ACLDump struct {
177 func (*ACLDump) GetMessageName() string {
180 func (*ACLDump) GetCrcString() string {
183 func (*ACLDump) GetMessageType() api.MessageType {
184 return api.RequestMessage
187 // ACLInterfaceAddDel represents VPP binary API message 'acl_interface_add_del':
188 type ACLInterfaceAddDel struct {
195 func (*ACLInterfaceAddDel) GetMessageName() string {
196 return "acl_interface_add_del"
198 func (*ACLInterfaceAddDel) GetCrcString() string {
201 func (*ACLInterfaceAddDel) GetMessageType() api.MessageType {
202 return api.RequestMessage
205 // ACLInterfaceAddDelReply represents VPP binary API message 'acl_interface_add_del_reply':
206 type ACLInterfaceAddDelReply struct {
210 func (*ACLInterfaceAddDelReply) GetMessageName() string {
211 return "acl_interface_add_del_reply"
213 func (*ACLInterfaceAddDelReply) GetCrcString() string {
216 func (*ACLInterfaceAddDelReply) GetMessageType() api.MessageType {
217 return api.ReplyMessage
220 // ACLInterfaceEtypeWhitelistDetails represents VPP binary API message 'acl_interface_etype_whitelist_details':
221 type ACLInterfaceEtypeWhitelistDetails struct {
223 Count uint8 `struc:"sizeof=Whitelist"`
228 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageName() string {
229 return "acl_interface_etype_whitelist_details"
231 func (*ACLInterfaceEtypeWhitelistDetails) GetCrcString() string {
234 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageType() api.MessageType {
235 return api.ReplyMessage
238 // ACLInterfaceEtypeWhitelistDump represents VPP binary API message 'acl_interface_etype_whitelist_dump':
239 type ACLInterfaceEtypeWhitelistDump struct {
243 func (*ACLInterfaceEtypeWhitelistDump) GetMessageName() string {
244 return "acl_interface_etype_whitelist_dump"
246 func (*ACLInterfaceEtypeWhitelistDump) GetCrcString() string {
249 func (*ACLInterfaceEtypeWhitelistDump) GetMessageType() api.MessageType {
250 return api.RequestMessage
253 // ACLInterfaceListDetails represents VPP binary API message 'acl_interface_list_details':
254 type ACLInterfaceListDetails struct {
256 Count uint8 `struc:"sizeof=Acls"`
261 func (*ACLInterfaceListDetails) GetMessageName() string {
262 return "acl_interface_list_details"
264 func (*ACLInterfaceListDetails) GetCrcString() string {
267 func (*ACLInterfaceListDetails) GetMessageType() api.MessageType {
268 return api.ReplyMessage
271 // ACLInterfaceListDump represents VPP binary API message 'acl_interface_list_dump':
272 type ACLInterfaceListDump struct {
276 func (*ACLInterfaceListDump) GetMessageName() string {
277 return "acl_interface_list_dump"
279 func (*ACLInterfaceListDump) GetCrcString() string {
282 func (*ACLInterfaceListDump) GetMessageType() api.MessageType {
283 return api.RequestMessage
286 // ACLInterfaceSetACLList represents VPP binary API message 'acl_interface_set_acl_list':
287 type ACLInterfaceSetACLList struct {
289 Count uint8 `struc:"sizeof=Acls"`
294 func (*ACLInterfaceSetACLList) GetMessageName() string {
295 return "acl_interface_set_acl_list"
297 func (*ACLInterfaceSetACLList) GetCrcString() string {
300 func (*ACLInterfaceSetACLList) GetMessageType() api.MessageType {
301 return api.RequestMessage
304 // ACLInterfaceSetACLListReply represents VPP binary API message 'acl_interface_set_acl_list_reply':
305 type ACLInterfaceSetACLListReply struct {
309 func (*ACLInterfaceSetACLListReply) GetMessageName() string {
310 return "acl_interface_set_acl_list_reply"
312 func (*ACLInterfaceSetACLListReply) GetCrcString() string {
315 func (*ACLInterfaceSetACLListReply) GetMessageType() api.MessageType {
316 return api.ReplyMessage
319 // ACLInterfaceSetEtypeWhitelist represents VPP binary API message 'acl_interface_set_etype_whitelist':
320 type ACLInterfaceSetEtypeWhitelist struct {
322 Count uint8 `struc:"sizeof=Whitelist"`
327 func (*ACLInterfaceSetEtypeWhitelist) GetMessageName() string {
328 return "acl_interface_set_etype_whitelist"
330 func (*ACLInterfaceSetEtypeWhitelist) GetCrcString() string {
333 func (*ACLInterfaceSetEtypeWhitelist) GetMessageType() api.MessageType {
334 return api.RequestMessage
337 // ACLInterfaceSetEtypeWhitelistReply represents VPP binary API message 'acl_interface_set_etype_whitelist_reply':
338 type ACLInterfaceSetEtypeWhitelistReply struct {
342 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageName() string {
343 return "acl_interface_set_etype_whitelist_reply"
345 func (*ACLInterfaceSetEtypeWhitelistReply) GetCrcString() string {
348 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageType() api.MessageType {
349 return api.ReplyMessage
352 // ACLPluginControlPing represents VPP binary API message 'acl_plugin_control_ping':
353 type ACLPluginControlPing struct{}
355 func (*ACLPluginControlPing) GetMessageName() string {
356 return "acl_plugin_control_ping"
358 func (*ACLPluginControlPing) GetCrcString() string {
361 func (*ACLPluginControlPing) GetMessageType() api.MessageType {
362 return api.RequestMessage
365 // ACLPluginControlPingReply represents VPP binary API message 'acl_plugin_control_ping_reply':
366 type ACLPluginControlPingReply struct {
372 func (*ACLPluginControlPingReply) GetMessageName() string {
373 return "acl_plugin_control_ping_reply"
375 func (*ACLPluginControlPingReply) GetCrcString() string {
378 func (*ACLPluginControlPingReply) GetMessageType() api.MessageType {
379 return api.ReplyMessage
382 // ACLPluginGetConnTableMaxEntries represents VPP binary API message 'acl_plugin_get_conn_table_max_entries':
383 type ACLPluginGetConnTableMaxEntries struct{}
385 func (*ACLPluginGetConnTableMaxEntries) GetMessageName() string {
386 return "acl_plugin_get_conn_table_max_entries"
388 func (*ACLPluginGetConnTableMaxEntries) GetCrcString() string {
391 func (*ACLPluginGetConnTableMaxEntries) GetMessageType() api.MessageType {
392 return api.RequestMessage
395 // ACLPluginGetConnTableMaxEntriesReply represents VPP binary API message 'acl_plugin_get_conn_table_max_entries_reply':
396 type ACLPluginGetConnTableMaxEntriesReply struct {
397 ConnTableMaxEntries uint64
400 func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageName() string {
401 return "acl_plugin_get_conn_table_max_entries_reply"
403 func (*ACLPluginGetConnTableMaxEntriesReply) GetCrcString() string {
406 func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageType() api.MessageType {
407 return api.ReplyMessage
410 // ACLPluginGetVersion represents VPP binary API message 'acl_plugin_get_version':
411 type ACLPluginGetVersion struct{}
413 func (*ACLPluginGetVersion) GetMessageName() string {
414 return "acl_plugin_get_version"
416 func (*ACLPluginGetVersion) GetCrcString() string {
419 func (*ACLPluginGetVersion) GetMessageType() api.MessageType {
420 return api.RequestMessage
423 // ACLPluginGetVersionReply represents VPP binary API message 'acl_plugin_get_version_reply':
424 type ACLPluginGetVersionReply struct {
429 func (*ACLPluginGetVersionReply) GetMessageName() string {
430 return "acl_plugin_get_version_reply"
432 func (*ACLPluginGetVersionReply) GetCrcString() string {
435 func (*ACLPluginGetVersionReply) GetMessageType() api.MessageType {
436 return api.ReplyMessage
439 // MacipACLAdd represents VPP binary API message 'macip_acl_add':
440 type MacipACLAdd struct {
441 Tag []byte `struc:"[64]byte"`
442 Count uint32 `struc:"sizeof=R"`
446 func (*MacipACLAdd) GetMessageName() string {
447 return "macip_acl_add"
449 func (*MacipACLAdd) GetCrcString() string {
452 func (*MacipACLAdd) GetMessageType() api.MessageType {
453 return api.RequestMessage
456 // MacipACLAddReplace represents VPP binary API message 'macip_acl_add_replace':
457 type MacipACLAddReplace struct {
459 Tag []byte `struc:"[64]byte"`
460 Count uint32 `struc:"sizeof=R"`
464 func (*MacipACLAddReplace) GetMessageName() string {
465 return "macip_acl_add_replace"
467 func (*MacipACLAddReplace) GetCrcString() string {
470 func (*MacipACLAddReplace) GetMessageType() api.MessageType {
471 return api.RequestMessage
474 // MacipACLAddReplaceReply represents VPP binary API message 'macip_acl_add_replace_reply':
475 type MacipACLAddReplaceReply struct {
480 func (*MacipACLAddReplaceReply) GetMessageName() string {
481 return "macip_acl_add_replace_reply"
483 func (*MacipACLAddReplaceReply) GetCrcString() string {
486 func (*MacipACLAddReplaceReply) GetMessageType() api.MessageType {
487 return api.ReplyMessage
490 // MacipACLAddReply represents VPP binary API message 'macip_acl_add_reply':
491 type MacipACLAddReply struct {
496 func (*MacipACLAddReply) GetMessageName() string {
497 return "macip_acl_add_reply"
499 func (*MacipACLAddReply) GetCrcString() string {
502 func (*MacipACLAddReply) GetMessageType() api.MessageType {
503 return api.ReplyMessage
506 // MacipACLDel represents VPP binary API message 'macip_acl_del':
507 type MacipACLDel struct {
511 func (*MacipACLDel) GetMessageName() string {
512 return "macip_acl_del"
514 func (*MacipACLDel) GetCrcString() string {
517 func (*MacipACLDel) GetMessageType() api.MessageType {
518 return api.RequestMessage
521 // MacipACLDelReply represents VPP binary API message 'macip_acl_del_reply':
522 type MacipACLDelReply struct {
526 func (*MacipACLDelReply) GetMessageName() string {
527 return "macip_acl_del_reply"
529 func (*MacipACLDelReply) GetCrcString() string {
532 func (*MacipACLDelReply) GetMessageType() api.MessageType {
533 return api.ReplyMessage
536 // MacipACLDetails represents VPP binary API message 'macip_acl_details':
537 type MacipACLDetails struct {
539 Tag []byte `struc:"[64]byte"`
540 Count uint32 `struc:"sizeof=R"`
544 func (*MacipACLDetails) GetMessageName() string {
545 return "macip_acl_details"
547 func (*MacipACLDetails) GetCrcString() string {
550 func (*MacipACLDetails) GetMessageType() api.MessageType {
551 return api.ReplyMessage
554 // MacipACLDump represents VPP binary API message 'macip_acl_dump':
555 type MacipACLDump struct {
559 func (*MacipACLDump) GetMessageName() string {
560 return "macip_acl_dump"
562 func (*MacipACLDump) GetCrcString() string {
565 func (*MacipACLDump) GetMessageType() api.MessageType {
566 return api.RequestMessage
569 // MacipACLInterfaceAddDel represents VPP binary API message 'macip_acl_interface_add_del':
570 type MacipACLInterfaceAddDel struct {
576 func (*MacipACLInterfaceAddDel) GetMessageName() string {
577 return "macip_acl_interface_add_del"
579 func (*MacipACLInterfaceAddDel) GetCrcString() string {
582 func (*MacipACLInterfaceAddDel) GetMessageType() api.MessageType {
583 return api.RequestMessage
586 // MacipACLInterfaceAddDelReply represents VPP binary API message 'macip_acl_interface_add_del_reply':
587 type MacipACLInterfaceAddDelReply struct {
591 func (*MacipACLInterfaceAddDelReply) GetMessageName() string {
592 return "macip_acl_interface_add_del_reply"
594 func (*MacipACLInterfaceAddDelReply) GetCrcString() string {
597 func (*MacipACLInterfaceAddDelReply) GetMessageType() api.MessageType {
598 return api.ReplyMessage
601 // MacipACLInterfaceGet represents VPP binary API message 'macip_acl_interface_get':
602 type MacipACLInterfaceGet struct{}
604 func (*MacipACLInterfaceGet) GetMessageName() string {
605 return "macip_acl_interface_get"
607 func (*MacipACLInterfaceGet) GetCrcString() string {
610 func (*MacipACLInterfaceGet) GetMessageType() api.MessageType {
611 return api.RequestMessage
614 // MacipACLInterfaceGetReply represents VPP binary API message 'macip_acl_interface_get_reply':
615 type MacipACLInterfaceGetReply struct {
616 Count uint32 `struc:"sizeof=Acls"`
620 func (*MacipACLInterfaceGetReply) GetMessageName() string {
621 return "macip_acl_interface_get_reply"
623 func (*MacipACLInterfaceGetReply) GetCrcString() string {
626 func (*MacipACLInterfaceGetReply) GetMessageType() api.MessageType {
627 return api.ReplyMessage
630 // MacipACLInterfaceListDetails represents VPP binary API message 'macip_acl_interface_list_details':
631 type MacipACLInterfaceListDetails struct {
633 Count uint8 `struc:"sizeof=Acls"`
637 func (*MacipACLInterfaceListDetails) GetMessageName() string {
638 return "macip_acl_interface_list_details"
640 func (*MacipACLInterfaceListDetails) GetCrcString() string {
643 func (*MacipACLInterfaceListDetails) GetMessageType() api.MessageType {
644 return api.ReplyMessage
647 // MacipACLInterfaceListDump represents VPP binary API message 'macip_acl_interface_list_dump':
648 type MacipACLInterfaceListDump struct {
652 func (*MacipACLInterfaceListDump) GetMessageName() string {
653 return "macip_acl_interface_list_dump"
655 func (*MacipACLInterfaceListDump) GetCrcString() string {
658 func (*MacipACLInterfaceListDump) GetMessageType() api.MessageType {
659 return api.RequestMessage
663 api.RegisterMessage((*ACLAddReplace)(nil), "acl.ACLAddReplace")
664 api.RegisterMessage((*ACLAddReplaceReply)(nil), "acl.ACLAddReplaceReply")
665 api.RegisterMessage((*ACLDel)(nil), "acl.ACLDel")
666 api.RegisterMessage((*ACLDelReply)(nil), "acl.ACLDelReply")
667 api.RegisterMessage((*ACLDetails)(nil), "acl.ACLDetails")
668 api.RegisterMessage((*ACLDump)(nil), "acl.ACLDump")
669 api.RegisterMessage((*ACLInterfaceAddDel)(nil), "acl.ACLInterfaceAddDel")
670 api.RegisterMessage((*ACLInterfaceAddDelReply)(nil), "acl.ACLInterfaceAddDelReply")
671 api.RegisterMessage((*ACLInterfaceEtypeWhitelistDetails)(nil), "acl.ACLInterfaceEtypeWhitelistDetails")
672 api.RegisterMessage((*ACLInterfaceEtypeWhitelistDump)(nil), "acl.ACLInterfaceEtypeWhitelistDump")
673 api.RegisterMessage((*ACLInterfaceListDetails)(nil), "acl.ACLInterfaceListDetails")
674 api.RegisterMessage((*ACLInterfaceListDump)(nil), "acl.ACLInterfaceListDump")
675 api.RegisterMessage((*ACLInterfaceSetACLList)(nil), "acl.ACLInterfaceSetACLList")
676 api.RegisterMessage((*ACLInterfaceSetACLListReply)(nil), "acl.ACLInterfaceSetACLListReply")
677 api.RegisterMessage((*ACLInterfaceSetEtypeWhitelist)(nil), "acl.ACLInterfaceSetEtypeWhitelist")
678 api.RegisterMessage((*ACLInterfaceSetEtypeWhitelistReply)(nil), "acl.ACLInterfaceSetEtypeWhitelistReply")
679 api.RegisterMessage((*ACLPluginControlPing)(nil), "acl.ACLPluginControlPing")
680 api.RegisterMessage((*ACLPluginControlPingReply)(nil), "acl.ACLPluginControlPingReply")
681 api.RegisterMessage((*ACLPluginGetConnTableMaxEntries)(nil), "acl.ACLPluginGetConnTableMaxEntries")
682 api.RegisterMessage((*ACLPluginGetConnTableMaxEntriesReply)(nil), "acl.ACLPluginGetConnTableMaxEntriesReply")
683 api.RegisterMessage((*ACLPluginGetVersion)(nil), "acl.ACLPluginGetVersion")
684 api.RegisterMessage((*ACLPluginGetVersionReply)(nil), "acl.ACLPluginGetVersionReply")
685 api.RegisterMessage((*MacipACLAdd)(nil), "acl.MacipACLAdd")
686 api.RegisterMessage((*MacipACLAddReplace)(nil), "acl.MacipACLAddReplace")
687 api.RegisterMessage((*MacipACLAddReplaceReply)(nil), "acl.MacipACLAddReplaceReply")
688 api.RegisterMessage((*MacipACLAddReply)(nil), "acl.MacipACLAddReply")
689 api.RegisterMessage((*MacipACLDel)(nil), "acl.MacipACLDel")
690 api.RegisterMessage((*MacipACLDelReply)(nil), "acl.MacipACLDelReply")
691 api.RegisterMessage((*MacipACLDetails)(nil), "acl.MacipACLDetails")
692 api.RegisterMessage((*MacipACLDump)(nil), "acl.MacipACLDump")
693 api.RegisterMessage((*MacipACLInterfaceAddDel)(nil), "acl.MacipACLInterfaceAddDel")
694 api.RegisterMessage((*MacipACLInterfaceAddDelReply)(nil), "acl.MacipACLInterfaceAddDelReply")
695 api.RegisterMessage((*MacipACLInterfaceGet)(nil), "acl.MacipACLInterfaceGet")
696 api.RegisterMessage((*MacipACLInterfaceGetReply)(nil), "acl.MacipACLInterfaceGetReply")
697 api.RegisterMessage((*MacipACLInterfaceListDetails)(nil), "acl.MacipACLInterfaceListDetails")
698 api.RegisterMessage((*MacipACLInterfaceListDump)(nil), "acl.MacipACLInterfaceListDump")