1 // Code generated by GoVPP binapi-generator. DO NOT EDIT.
2 // source: /usr/share/vpp/api/plugins/acl.api.json
5 Package acl is a generated from VPP binary API module 'acl'.
7 The acl 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.
36 // APIVersion is the API version of this module.
38 // VersionCrc is the CRC of this module.
39 VersionCrc = 0x8ed22cb9
44 // ACLRule represents VPP binary API type 'acl_rule':
48 SrcIPAddr []byte `struc:"[16]byte"`
50 DstIPAddr []byte `struc:"[16]byte"`
53 SrcportOrIcmptypeFirst uint16
54 SrcportOrIcmptypeLast uint16
55 DstportOrIcmpcodeFirst uint16
56 DstportOrIcmpcodeLast uint16
61 func (*ACLRule) GetTypeName() string {
64 func (*ACLRule) GetCrcString() string {
68 // MacipACLRule represents VPP binary API type 'macip_acl_rule':
69 type MacipACLRule struct {
72 SrcMac []byte `struc:"[6]byte"`
73 SrcMacMask []byte `struc:"[6]byte"`
74 SrcIPAddr []byte `struc:"[16]byte"`
78 func (*MacipACLRule) GetTypeName() string {
79 return "macip_acl_rule"
81 func (*MacipACLRule) GetCrcString() string {
87 // ACLAddReplace represents VPP binary API message 'acl_add_replace':
88 type ACLAddReplace struct {
90 Tag []byte `struc:"[64]byte"`
91 Count uint32 `struc:"sizeof=R"`
95 func (*ACLAddReplace) GetMessageName() string {
96 return "acl_add_replace"
98 func (*ACLAddReplace) GetCrcString() string {
101 func (*ACLAddReplace) GetMessageType() api.MessageType {
102 return api.RequestMessage
105 // ACLAddReplaceReply represents VPP binary API message 'acl_add_replace_reply':
106 type ACLAddReplaceReply struct {
111 func (*ACLAddReplaceReply) GetMessageName() string {
112 return "acl_add_replace_reply"
114 func (*ACLAddReplaceReply) GetCrcString() string {
117 func (*ACLAddReplaceReply) GetMessageType() api.MessageType {
118 return api.ReplyMessage
121 // ACLDel represents VPP binary API message 'acl_del':
126 func (*ACLDel) GetMessageName() string {
129 func (*ACLDel) GetCrcString() string {
132 func (*ACLDel) GetMessageType() api.MessageType {
133 return api.RequestMessage
136 // ACLDelReply represents VPP binary API message 'acl_del_reply':
137 type ACLDelReply struct {
141 func (*ACLDelReply) GetMessageName() string {
142 return "acl_del_reply"
144 func (*ACLDelReply) GetCrcString() string {
147 func (*ACLDelReply) GetMessageType() api.MessageType {
148 return api.ReplyMessage
151 // ACLDetails represents VPP binary API message 'acl_details':
152 type ACLDetails struct {
154 Tag []byte `struc:"[64]byte"`
155 Count uint32 `struc:"sizeof=R"`
159 func (*ACLDetails) GetMessageName() string {
162 func (*ACLDetails) GetCrcString() string {
165 func (*ACLDetails) GetMessageType() api.MessageType {
166 return api.ReplyMessage
169 // ACLDump represents VPP binary API message 'acl_dump':
170 type ACLDump struct {
174 func (*ACLDump) GetMessageName() string {
177 func (*ACLDump) GetCrcString() string {
180 func (*ACLDump) GetMessageType() api.MessageType {
181 return api.RequestMessage
184 // ACLInterfaceAddDel represents VPP binary API message 'acl_interface_add_del':
185 type ACLInterfaceAddDel struct {
192 func (*ACLInterfaceAddDel) GetMessageName() string {
193 return "acl_interface_add_del"
195 func (*ACLInterfaceAddDel) GetCrcString() string {
198 func (*ACLInterfaceAddDel) GetMessageType() api.MessageType {
199 return api.RequestMessage
202 // ACLInterfaceAddDelReply represents VPP binary API message 'acl_interface_add_del_reply':
203 type ACLInterfaceAddDelReply struct {
207 func (*ACLInterfaceAddDelReply) GetMessageName() string {
208 return "acl_interface_add_del_reply"
210 func (*ACLInterfaceAddDelReply) GetCrcString() string {
213 func (*ACLInterfaceAddDelReply) GetMessageType() api.MessageType {
214 return api.ReplyMessage
217 // ACLInterfaceEtypeWhitelistDetails represents VPP binary API message 'acl_interface_etype_whitelist_details':
218 type ACLInterfaceEtypeWhitelistDetails struct {
220 Count uint8 `struc:"sizeof=Whitelist"`
225 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageName() string {
226 return "acl_interface_etype_whitelist_details"
228 func (*ACLInterfaceEtypeWhitelistDetails) GetCrcString() string {
231 func (*ACLInterfaceEtypeWhitelistDetails) GetMessageType() api.MessageType {
232 return api.ReplyMessage
235 // ACLInterfaceEtypeWhitelistDump represents VPP binary API message 'acl_interface_etype_whitelist_dump':
236 type ACLInterfaceEtypeWhitelistDump struct {
240 func (*ACLInterfaceEtypeWhitelistDump) GetMessageName() string {
241 return "acl_interface_etype_whitelist_dump"
243 func (*ACLInterfaceEtypeWhitelistDump) GetCrcString() string {
246 func (*ACLInterfaceEtypeWhitelistDump) GetMessageType() api.MessageType {
247 return api.RequestMessage
250 // ACLInterfaceListDetails represents VPP binary API message 'acl_interface_list_details':
251 type ACLInterfaceListDetails struct {
253 Count uint8 `struc:"sizeof=Acls"`
258 func (*ACLInterfaceListDetails) GetMessageName() string {
259 return "acl_interface_list_details"
261 func (*ACLInterfaceListDetails) GetCrcString() string {
264 func (*ACLInterfaceListDetails) GetMessageType() api.MessageType {
265 return api.ReplyMessage
268 // ACLInterfaceListDump represents VPP binary API message 'acl_interface_list_dump':
269 type ACLInterfaceListDump struct {
273 func (*ACLInterfaceListDump) GetMessageName() string {
274 return "acl_interface_list_dump"
276 func (*ACLInterfaceListDump) GetCrcString() string {
279 func (*ACLInterfaceListDump) GetMessageType() api.MessageType {
280 return api.RequestMessage
283 // ACLInterfaceSetACLList represents VPP binary API message 'acl_interface_set_acl_list':
284 type ACLInterfaceSetACLList struct {
286 Count uint8 `struc:"sizeof=Acls"`
291 func (*ACLInterfaceSetACLList) GetMessageName() string {
292 return "acl_interface_set_acl_list"
294 func (*ACLInterfaceSetACLList) GetCrcString() string {
297 func (*ACLInterfaceSetACLList) GetMessageType() api.MessageType {
298 return api.RequestMessage
301 // ACLInterfaceSetACLListReply represents VPP binary API message 'acl_interface_set_acl_list_reply':
302 type ACLInterfaceSetACLListReply struct {
306 func (*ACLInterfaceSetACLListReply) GetMessageName() string {
307 return "acl_interface_set_acl_list_reply"
309 func (*ACLInterfaceSetACLListReply) GetCrcString() string {
312 func (*ACLInterfaceSetACLListReply) GetMessageType() api.MessageType {
313 return api.ReplyMessage
316 // ACLInterfaceSetEtypeWhitelist represents VPP binary API message 'acl_interface_set_etype_whitelist':
317 type ACLInterfaceSetEtypeWhitelist struct {
319 Count uint8 `struc:"sizeof=Whitelist"`
324 func (*ACLInterfaceSetEtypeWhitelist) GetMessageName() string {
325 return "acl_interface_set_etype_whitelist"
327 func (*ACLInterfaceSetEtypeWhitelist) GetCrcString() string {
330 func (*ACLInterfaceSetEtypeWhitelist) GetMessageType() api.MessageType {
331 return api.RequestMessage
334 // ACLInterfaceSetEtypeWhitelistReply represents VPP binary API message 'acl_interface_set_etype_whitelist_reply':
335 type ACLInterfaceSetEtypeWhitelistReply struct {
339 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageName() string {
340 return "acl_interface_set_etype_whitelist_reply"
342 func (*ACLInterfaceSetEtypeWhitelistReply) GetCrcString() string {
345 func (*ACLInterfaceSetEtypeWhitelistReply) GetMessageType() api.MessageType {
346 return api.ReplyMessage
349 // ACLPluginControlPing represents VPP binary API message 'acl_plugin_control_ping':
350 type ACLPluginControlPing struct{}
352 func (*ACLPluginControlPing) GetMessageName() string {
353 return "acl_plugin_control_ping"
355 func (*ACLPluginControlPing) GetCrcString() string {
358 func (*ACLPluginControlPing) GetMessageType() api.MessageType {
359 return api.RequestMessage
362 // ACLPluginControlPingReply represents VPP binary API message 'acl_plugin_control_ping_reply':
363 type ACLPluginControlPingReply struct {
369 func (*ACLPluginControlPingReply) GetMessageName() string {
370 return "acl_plugin_control_ping_reply"
372 func (*ACLPluginControlPingReply) GetCrcString() string {
375 func (*ACLPluginControlPingReply) GetMessageType() api.MessageType {
376 return api.ReplyMessage
379 // ACLPluginGetConnTableMaxEntries represents VPP binary API message 'acl_plugin_get_conn_table_max_entries':
380 type ACLPluginGetConnTableMaxEntries struct{}
382 func (*ACLPluginGetConnTableMaxEntries) GetMessageName() string {
383 return "acl_plugin_get_conn_table_max_entries"
385 func (*ACLPluginGetConnTableMaxEntries) GetCrcString() string {
388 func (*ACLPluginGetConnTableMaxEntries) GetMessageType() api.MessageType {
389 return api.RequestMessage
392 // ACLPluginGetConnTableMaxEntriesReply represents VPP binary API message 'acl_plugin_get_conn_table_max_entries_reply':
393 type ACLPluginGetConnTableMaxEntriesReply struct {
394 ConnTableMaxEntries uint64
397 func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageName() string {
398 return "acl_plugin_get_conn_table_max_entries_reply"
400 func (*ACLPluginGetConnTableMaxEntriesReply) GetCrcString() string {
403 func (*ACLPluginGetConnTableMaxEntriesReply) GetMessageType() api.MessageType {
404 return api.ReplyMessage
407 // ACLPluginGetVersion represents VPP binary API message 'acl_plugin_get_version':
408 type ACLPluginGetVersion struct{}
410 func (*ACLPluginGetVersion) GetMessageName() string {
411 return "acl_plugin_get_version"
413 func (*ACLPluginGetVersion) GetCrcString() string {
416 func (*ACLPluginGetVersion) GetMessageType() api.MessageType {
417 return api.RequestMessage
420 // ACLPluginGetVersionReply represents VPP binary API message 'acl_plugin_get_version_reply':
421 type ACLPluginGetVersionReply struct {
426 func (*ACLPluginGetVersionReply) GetMessageName() string {
427 return "acl_plugin_get_version_reply"
429 func (*ACLPluginGetVersionReply) GetCrcString() string {
432 func (*ACLPluginGetVersionReply) GetMessageType() api.MessageType {
433 return api.ReplyMessage
436 // MacipACLAdd represents VPP binary API message 'macip_acl_add':
437 type MacipACLAdd struct {
438 Tag []byte `struc:"[64]byte"`
439 Count uint32 `struc:"sizeof=R"`
443 func (*MacipACLAdd) GetMessageName() string {
444 return "macip_acl_add"
446 func (*MacipACLAdd) GetCrcString() string {
449 func (*MacipACLAdd) GetMessageType() api.MessageType {
450 return api.RequestMessage
453 // MacipACLAddReplace represents VPP binary API message 'macip_acl_add_replace':
454 type MacipACLAddReplace struct {
456 Tag []byte `struc:"[64]byte"`
457 Count uint32 `struc:"sizeof=R"`
461 func (*MacipACLAddReplace) GetMessageName() string {
462 return "macip_acl_add_replace"
464 func (*MacipACLAddReplace) GetCrcString() string {
467 func (*MacipACLAddReplace) GetMessageType() api.MessageType {
468 return api.RequestMessage
471 // MacipACLAddReplaceReply represents VPP binary API message 'macip_acl_add_replace_reply':
472 type MacipACLAddReplaceReply struct {
477 func (*MacipACLAddReplaceReply) GetMessageName() string {
478 return "macip_acl_add_replace_reply"
480 func (*MacipACLAddReplaceReply) GetCrcString() string {
483 func (*MacipACLAddReplaceReply) GetMessageType() api.MessageType {
484 return api.ReplyMessage
487 // MacipACLAddReply represents VPP binary API message 'macip_acl_add_reply':
488 type MacipACLAddReply struct {
493 func (*MacipACLAddReply) GetMessageName() string {
494 return "macip_acl_add_reply"
496 func (*MacipACLAddReply) GetCrcString() string {
499 func (*MacipACLAddReply) GetMessageType() api.MessageType {
500 return api.ReplyMessage
503 // MacipACLDel represents VPP binary API message 'macip_acl_del':
504 type MacipACLDel struct {
508 func (*MacipACLDel) GetMessageName() string {
509 return "macip_acl_del"
511 func (*MacipACLDel) GetCrcString() string {
514 func (*MacipACLDel) GetMessageType() api.MessageType {
515 return api.RequestMessage
518 // MacipACLDelReply represents VPP binary API message 'macip_acl_del_reply':
519 type MacipACLDelReply struct {
523 func (*MacipACLDelReply) GetMessageName() string {
524 return "macip_acl_del_reply"
526 func (*MacipACLDelReply) GetCrcString() string {
529 func (*MacipACLDelReply) GetMessageType() api.MessageType {
530 return api.ReplyMessage
533 // MacipACLDetails represents VPP binary API message 'macip_acl_details':
534 type MacipACLDetails struct {
536 Tag []byte `struc:"[64]byte"`
537 Count uint32 `struc:"sizeof=R"`
541 func (*MacipACLDetails) GetMessageName() string {
542 return "macip_acl_details"
544 func (*MacipACLDetails) GetCrcString() string {
547 func (*MacipACLDetails) GetMessageType() api.MessageType {
548 return api.ReplyMessage
551 // MacipACLDump represents VPP binary API message 'macip_acl_dump':
552 type MacipACLDump struct {
556 func (*MacipACLDump) GetMessageName() string {
557 return "macip_acl_dump"
559 func (*MacipACLDump) GetCrcString() string {
562 func (*MacipACLDump) GetMessageType() api.MessageType {
563 return api.RequestMessage
566 // MacipACLInterfaceAddDel represents VPP binary API message 'macip_acl_interface_add_del':
567 type MacipACLInterfaceAddDel struct {
573 func (*MacipACLInterfaceAddDel) GetMessageName() string {
574 return "macip_acl_interface_add_del"
576 func (*MacipACLInterfaceAddDel) GetCrcString() string {
579 func (*MacipACLInterfaceAddDel) GetMessageType() api.MessageType {
580 return api.RequestMessage
583 // MacipACLInterfaceAddDelReply represents VPP binary API message 'macip_acl_interface_add_del_reply':
584 type MacipACLInterfaceAddDelReply struct {
588 func (*MacipACLInterfaceAddDelReply) GetMessageName() string {
589 return "macip_acl_interface_add_del_reply"
591 func (*MacipACLInterfaceAddDelReply) GetCrcString() string {
594 func (*MacipACLInterfaceAddDelReply) GetMessageType() api.MessageType {
595 return api.ReplyMessage
598 // MacipACLInterfaceGet represents VPP binary API message 'macip_acl_interface_get':
599 type MacipACLInterfaceGet struct{}
601 func (*MacipACLInterfaceGet) GetMessageName() string {
602 return "macip_acl_interface_get"
604 func (*MacipACLInterfaceGet) GetCrcString() string {
607 func (*MacipACLInterfaceGet) GetMessageType() api.MessageType {
608 return api.RequestMessage
611 // MacipACLInterfaceGetReply represents VPP binary API message 'macip_acl_interface_get_reply':
612 type MacipACLInterfaceGetReply struct {
613 Count uint32 `struc:"sizeof=Acls"`
617 func (*MacipACLInterfaceGetReply) GetMessageName() string {
618 return "macip_acl_interface_get_reply"
620 func (*MacipACLInterfaceGetReply) GetCrcString() string {
623 func (*MacipACLInterfaceGetReply) GetMessageType() api.MessageType {
624 return api.ReplyMessage
627 // MacipACLInterfaceListDetails represents VPP binary API message 'macip_acl_interface_list_details':
628 type MacipACLInterfaceListDetails struct {
630 Count uint8 `struc:"sizeof=Acls"`
634 func (*MacipACLInterfaceListDetails) GetMessageName() string {
635 return "macip_acl_interface_list_details"
637 func (*MacipACLInterfaceListDetails) GetCrcString() string {
640 func (*MacipACLInterfaceListDetails) GetMessageType() api.MessageType {
641 return api.ReplyMessage
644 // MacipACLInterfaceListDump represents VPP binary API message 'macip_acl_interface_list_dump':
645 type MacipACLInterfaceListDump struct {
649 func (*MacipACLInterfaceListDump) GetMessageName() string {
650 return "macip_acl_interface_list_dump"
652 func (*MacipACLInterfaceListDump) GetCrcString() string {
655 func (*MacipACLInterfaceListDump) GetMessageType() api.MessageType {
656 return api.RequestMessage
660 api.RegisterMessage((*ACLAddReplace)(nil), "acl.ACLAddReplace")
661 api.RegisterMessage((*ACLAddReplaceReply)(nil), "acl.ACLAddReplaceReply")
662 api.RegisterMessage((*ACLDel)(nil), "acl.ACLDel")
663 api.RegisterMessage((*ACLDelReply)(nil), "acl.ACLDelReply")
664 api.RegisterMessage((*ACLDetails)(nil), "acl.ACLDetails")
665 api.RegisterMessage((*ACLDump)(nil), "acl.ACLDump")
666 api.RegisterMessage((*ACLInterfaceAddDel)(nil), "acl.ACLInterfaceAddDel")
667 api.RegisterMessage((*ACLInterfaceAddDelReply)(nil), "acl.ACLInterfaceAddDelReply")
668 api.RegisterMessage((*ACLInterfaceEtypeWhitelistDetails)(nil), "acl.ACLInterfaceEtypeWhitelistDetails")
669 api.RegisterMessage((*ACLInterfaceEtypeWhitelistDump)(nil), "acl.ACLInterfaceEtypeWhitelistDump")
670 api.RegisterMessage((*ACLInterfaceListDetails)(nil), "acl.ACLInterfaceListDetails")
671 api.RegisterMessage((*ACLInterfaceListDump)(nil), "acl.ACLInterfaceListDump")
672 api.RegisterMessage((*ACLInterfaceSetACLList)(nil), "acl.ACLInterfaceSetACLList")
673 api.RegisterMessage((*ACLInterfaceSetACLListReply)(nil), "acl.ACLInterfaceSetACLListReply")
674 api.RegisterMessage((*ACLInterfaceSetEtypeWhitelist)(nil), "acl.ACLInterfaceSetEtypeWhitelist")
675 api.RegisterMessage((*ACLInterfaceSetEtypeWhitelistReply)(nil), "acl.ACLInterfaceSetEtypeWhitelistReply")
676 api.RegisterMessage((*ACLPluginControlPing)(nil), "acl.ACLPluginControlPing")
677 api.RegisterMessage((*ACLPluginControlPingReply)(nil), "acl.ACLPluginControlPingReply")
678 api.RegisterMessage((*ACLPluginGetConnTableMaxEntries)(nil), "acl.ACLPluginGetConnTableMaxEntries")
679 api.RegisterMessage((*ACLPluginGetConnTableMaxEntriesReply)(nil), "acl.ACLPluginGetConnTableMaxEntriesReply")
680 api.RegisterMessage((*ACLPluginGetVersion)(nil), "acl.ACLPluginGetVersion")
681 api.RegisterMessage((*ACLPluginGetVersionReply)(nil), "acl.ACLPluginGetVersionReply")
682 api.RegisterMessage((*MacipACLAdd)(nil), "acl.MacipACLAdd")
683 api.RegisterMessage((*MacipACLAddReplace)(nil), "acl.MacipACLAddReplace")
684 api.RegisterMessage((*MacipACLAddReplaceReply)(nil), "acl.MacipACLAddReplaceReply")
685 api.RegisterMessage((*MacipACLAddReply)(nil), "acl.MacipACLAddReply")
686 api.RegisterMessage((*MacipACLDel)(nil), "acl.MacipACLDel")
687 api.RegisterMessage((*MacipACLDelReply)(nil), "acl.MacipACLDelReply")
688 api.RegisterMessage((*MacipACLDetails)(nil), "acl.MacipACLDetails")
689 api.RegisterMessage((*MacipACLDump)(nil), "acl.MacipACLDump")
690 api.RegisterMessage((*MacipACLInterfaceAddDel)(nil), "acl.MacipACLInterfaceAddDel")
691 api.RegisterMessage((*MacipACLInterfaceAddDelReply)(nil), "acl.MacipACLInterfaceAddDelReply")
692 api.RegisterMessage((*MacipACLInterfaceGet)(nil), "acl.MacipACLInterfaceGet")
693 api.RegisterMessage((*MacipACLInterfaceGetReply)(nil), "acl.MacipACLInterfaceGetReply")
694 api.RegisterMessage((*MacipACLInterfaceListDetails)(nil), "acl.MacipACLInterfaceListDetails")
695 api.RegisterMessage((*MacipACLInterfaceListDump)(nil), "acl.MacipACLInterfaceListDump")
698 // Messages returns list of all messages in this module.
699 func AllMessages() []api.Message {
700 return []api.Message{
701 (*ACLAddReplace)(nil),
702 (*ACLAddReplaceReply)(nil),
707 (*ACLInterfaceAddDel)(nil),
708 (*ACLInterfaceAddDelReply)(nil),
709 (*ACLInterfaceEtypeWhitelistDetails)(nil),
710 (*ACLInterfaceEtypeWhitelistDump)(nil),
711 (*ACLInterfaceListDetails)(nil),
712 (*ACLInterfaceListDump)(nil),
713 (*ACLInterfaceSetACLList)(nil),
714 (*ACLInterfaceSetACLListReply)(nil),
715 (*ACLInterfaceSetEtypeWhitelist)(nil),
716 (*ACLInterfaceSetEtypeWhitelistReply)(nil),
717 (*ACLPluginControlPing)(nil),
718 (*ACLPluginControlPingReply)(nil),
719 (*ACLPluginGetConnTableMaxEntries)(nil),
720 (*ACLPluginGetConnTableMaxEntriesReply)(nil),
721 (*ACLPluginGetVersion)(nil),
722 (*ACLPluginGetVersionReply)(nil),
724 (*MacipACLAddReplace)(nil),
725 (*MacipACLAddReplaceReply)(nil),
726 (*MacipACLAddReply)(nil),
728 (*MacipACLDelReply)(nil),
729 (*MacipACLDetails)(nil),
730 (*MacipACLDump)(nil),
731 (*MacipACLInterfaceAddDel)(nil),
732 (*MacipACLInterfaceAddDelReply)(nil),
733 (*MacipACLInterfaceGet)(nil),
734 (*MacipACLInterfaceGetReply)(nil),
735 (*MacipACLInterfaceListDetails)(nil),
736 (*MacipACLInterfaceListDump)(nil),
740 // Service represents VPP binary API services in acl module.
741 type Service interface {
742 DumpACL(ctx context.Context, in *ACLDump) ([]*ACLDetails, error)
743 DumpACLInterfaceEtypeWhitelist(ctx context.Context, in *ACLInterfaceEtypeWhitelistDump) ([]*ACLInterfaceEtypeWhitelistDetails, error)
744 DumpACLInterfaceList(ctx context.Context, in *ACLInterfaceListDump) ([]*ACLInterfaceListDetails, error)
745 DumpMacipACL(ctx context.Context, in *MacipACLDump) ([]*MacipACLDetails, error)
746 DumpMacipACLInterfaceList(ctx context.Context, in *MacipACLInterfaceListDump) ([]*MacipACLInterfaceListDetails, error)
747 ACLAddReplace(ctx context.Context, in *ACLAddReplace) (*ACLAddReplaceReply, error)
748 ACLDel(ctx context.Context, in *ACLDel) (*ACLDelReply, error)
749 ACLInterfaceAddDel(ctx context.Context, in *ACLInterfaceAddDel) (*ACLInterfaceAddDelReply, error)
750 ACLInterfaceSetACLList(ctx context.Context, in *ACLInterfaceSetACLList) (*ACLInterfaceSetACLListReply, error)
751 ACLInterfaceSetEtypeWhitelist(ctx context.Context, in *ACLInterfaceSetEtypeWhitelist) (*ACLInterfaceSetEtypeWhitelistReply, error)
752 ACLPluginControlPing(ctx context.Context, in *ACLPluginControlPing) (*ACLPluginControlPingReply, error)
753 ACLPluginGetConnTableMaxEntries(ctx context.Context, in *ACLPluginGetConnTableMaxEntries) (*ACLPluginGetConnTableMaxEntriesReply, error)
754 ACLPluginGetVersion(ctx context.Context, in *ACLPluginGetVersion) (*ACLPluginGetVersionReply, error)
755 MacipACLAdd(ctx context.Context, in *MacipACLAdd) (*MacipACLAddReply, error)
756 MacipACLAddReplace(ctx context.Context, in *MacipACLAddReplace) (*MacipACLAddReplaceReply, error)
757 MacipACLDel(ctx context.Context, in *MacipACLDel) (*MacipACLDelReply, error)
758 MacipACLInterfaceAddDel(ctx context.Context, in *MacipACLInterfaceAddDel) (*MacipACLInterfaceAddDelReply, error)
759 MacipACLInterfaceGet(ctx context.Context, in *MacipACLInterfaceGet) (*MacipACLInterfaceGetReply, error)
762 type service struct {
766 func NewService(ch api.Channel) Service {
770 func (c *service) DumpACL(ctx context.Context, in *ACLDump) ([]*ACLDetails, error) {
771 var dump []*ACLDetails
772 req := c.ch.SendMultiRequest(in)
775 stop, err := req.ReceiveReply(m)
782 dump = append(dump, m)
787 func (c *service) DumpACLInterfaceEtypeWhitelist(ctx context.Context, in *ACLInterfaceEtypeWhitelistDump) ([]*ACLInterfaceEtypeWhitelistDetails, error) {
788 var dump []*ACLInterfaceEtypeWhitelistDetails
789 req := c.ch.SendMultiRequest(in)
791 m := new(ACLInterfaceEtypeWhitelistDetails)
792 stop, err := req.ReceiveReply(m)
799 dump = append(dump, m)
804 func (c *service) DumpACLInterfaceList(ctx context.Context, in *ACLInterfaceListDump) ([]*ACLInterfaceListDetails, error) {
805 var dump []*ACLInterfaceListDetails
806 req := c.ch.SendMultiRequest(in)
808 m := new(ACLInterfaceListDetails)
809 stop, err := req.ReceiveReply(m)
816 dump = append(dump, m)
821 func (c *service) DumpMacipACL(ctx context.Context, in *MacipACLDump) ([]*MacipACLDetails, error) {
822 var dump []*MacipACLDetails
823 req := c.ch.SendMultiRequest(in)
825 m := new(MacipACLDetails)
826 stop, err := req.ReceiveReply(m)
833 dump = append(dump, m)
838 func (c *service) DumpMacipACLInterfaceList(ctx context.Context, in *MacipACLInterfaceListDump) ([]*MacipACLInterfaceListDetails, error) {
839 var dump []*MacipACLInterfaceListDetails
840 req := c.ch.SendMultiRequest(in)
842 m := new(MacipACLInterfaceListDetails)
843 stop, err := req.ReceiveReply(m)
850 dump = append(dump, m)
855 func (c *service) ACLAddReplace(ctx context.Context, in *ACLAddReplace) (*ACLAddReplaceReply, error) {
856 out := new(ACLAddReplaceReply)
857 err := c.ch.SendRequest(in).ReceiveReply(out)
864 func (c *service) ACLDel(ctx context.Context, in *ACLDel) (*ACLDelReply, error) {
865 out := new(ACLDelReply)
866 err := c.ch.SendRequest(in).ReceiveReply(out)
873 func (c *service) ACLInterfaceAddDel(ctx context.Context, in *ACLInterfaceAddDel) (*ACLInterfaceAddDelReply, error) {
874 out := new(ACLInterfaceAddDelReply)
875 err := c.ch.SendRequest(in).ReceiveReply(out)
882 func (c *service) ACLInterfaceSetACLList(ctx context.Context, in *ACLInterfaceSetACLList) (*ACLInterfaceSetACLListReply, error) {
883 out := new(ACLInterfaceSetACLListReply)
884 err := c.ch.SendRequest(in).ReceiveReply(out)
891 func (c *service) ACLInterfaceSetEtypeWhitelist(ctx context.Context, in *ACLInterfaceSetEtypeWhitelist) (*ACLInterfaceSetEtypeWhitelistReply, error) {
892 out := new(ACLInterfaceSetEtypeWhitelistReply)
893 err := c.ch.SendRequest(in).ReceiveReply(out)
900 func (c *service) ACLPluginControlPing(ctx context.Context, in *ACLPluginControlPing) (*ACLPluginControlPingReply, error) {
901 out := new(ACLPluginControlPingReply)
902 err := c.ch.SendRequest(in).ReceiveReply(out)
909 func (c *service) ACLPluginGetConnTableMaxEntries(ctx context.Context, in *ACLPluginGetConnTableMaxEntries) (*ACLPluginGetConnTableMaxEntriesReply, error) {
910 out := new(ACLPluginGetConnTableMaxEntriesReply)
911 err := c.ch.SendRequest(in).ReceiveReply(out)
918 func (c *service) ACLPluginGetVersion(ctx context.Context, in *ACLPluginGetVersion) (*ACLPluginGetVersionReply, error) {
919 out := new(ACLPluginGetVersionReply)
920 err := c.ch.SendRequest(in).ReceiveReply(out)
927 func (c *service) MacipACLAdd(ctx context.Context, in *MacipACLAdd) (*MacipACLAddReply, error) {
928 out := new(MacipACLAddReply)
929 err := c.ch.SendRequest(in).ReceiveReply(out)
936 func (c *service) MacipACLAddReplace(ctx context.Context, in *MacipACLAddReplace) (*MacipACLAddReplaceReply, error) {
937 out := new(MacipACLAddReplaceReply)
938 err := c.ch.SendRequest(in).ReceiveReply(out)
945 func (c *service) MacipACLDel(ctx context.Context, in *MacipACLDel) (*MacipACLDelReply, error) {
946 out := new(MacipACLDelReply)
947 err := c.ch.SendRequest(in).ReceiveReply(out)
954 func (c *service) MacipACLInterfaceAddDel(ctx context.Context, in *MacipACLInterfaceAddDel) (*MacipACLInterfaceAddDelReply, error) {
955 out := new(MacipACLInterfaceAddDelReply)
956 err := c.ch.SendRequest(in).ReceiveReply(out)
963 func (c *service) MacipACLInterfaceGet(ctx context.Context, in *MacipACLInterfaceGet) (*MacipACLInterfaceGetReply, error) {
964 out := new(MacipACLInterfaceGetReply)
965 err := c.ch.SendRequest(in).ReceiveReply(out)