summaryrefslogtreecommitdiffstats
path: root/examples/bin_api/acl/acl.go
diff options
context:
space:
mode:
authorOndrej Fabry <ofabry@cisco.com>2018-08-15 12:59:25 +0200
committerOndrej Fabry <ofabry@cisco.com>2018-08-16 15:03:29 +0200
commita3bb834db727a3ac9a1ffcfeae9265e5dead851f (patch)
tree6ffe64d2dd78a4c3434c2889dd7582b74619fe2b /examples/bin_api/acl/acl.go
parentda815585c3f75c4ac073b0766dd668abf83844d8 (diff)
Refactor GoVPP
Squashed commit of the following: commit 348930db31575e9f59b3834d9fec07411f011e05 Author: Ondrej Fabry <ofabry@cisco.com> Date: Wed Aug 15 11:30:13 2018 +0200 Use debug level for log about different context commit 9fc963c559cea67a41b85c6cdadc322fb3b1fc7c Author: Ondrej Fabry <ofabry@cisco.com> Date: Wed Aug 15 11:22:03 2018 +0200 Remove annoying logs and add env vars for debugging commit fdc9fd624d13feadb602e0d03d58f8a44b7a565f Author: Ondrej Fabry <ofabry@cisco.com> Date: Wed Aug 15 11:18:47 2018 +0200 Fix printing unknown VPPApiError commit 8f968be36a91de4d4a8ea17593ba314f82aa9583 Author: Ondrej Fabry <ofabry@cisco.com> Date: Tue Aug 14 17:25:10 2018 +0200 Refactor entire GoVPP - fix some cases with inconsistent VPP messages, causing messages to be incorrectly identified as event or request - simplify API, remove direct access to internal Go channels - add module name with message to registration of messages - start watching filesystem only when vpe-api file does not exist - simplify code in message codec and remove unneeded parts - retrieve IDs of all registered messages after connect to VPP - define fallback for control ping in core to avoid duplicate registration - add SetLogLevel function to set logger level more easily - remove lot of unused code commit 34dd1b7e10ef0324aa8c4e4cc42375bd6021c6cb Author: Ondrej Fabry <ofabry@cisco.com> Date: Mon Aug 13 11:29:54 2018 +0200 Rename VnetError to VPPApiError commit c6549d6f77847a1367a12ff47fb716e2955e973a Author: Ondrej Fabry <ofabry@cisco.com> Date: Mon Aug 13 10:23:43 2018 +0200 Fix examples and regenerate binapi commit 4612e36b416779771f5efab4fc654c2766d2cb1c Author: Ondrej Fabry <ofabry@cisco.com> Date: Mon Aug 13 09:51:22 2018 +0200 Add parsing and generation for services commit ac9c5280c5aa27e325f327609e2364cc66f3723f Author: Ondrej Fabry <ofabry@cisco.com> Date: Fri Aug 10 14:30:15 2018 +0200 Fix exit status on error and add continue-onerror flag commit 9b3f4ef9fc7c8c62037fa107085eae18a8725314 Author: Ondrej Fabry <ofabry@cisco.com> Date: Thu Aug 9 15:20:56 2018 +0200 Return VnetError when Retval != 0 commit 8fd21a907b5e628ec4d2026215b83d15da96c297 Author: Ondrej Fabry <ofabry@cisco.com> Date: Thu Aug 9 14:59:05 2018 +0200 Add all missing errors from api_errno.h commit 08450f288d3046ebaecf40203174ae342a07f1eb Author: Ondrej Fabry <ofabry@cisco.com> Date: Thu Aug 9 14:29:27 2018 +0200 Update README commit d8dced0728dd62243539be741868fb7d9b8de4cc Author: Ondrej Fabry <ofabry@cisco.com> Date: Thu Aug 9 13:59:59 2018 +0200 Regenerate vpe in core commit 254da7592cdbf634cf7aa46ae36ce7bb6d4ee555 Author: Ondrej Fabry <ofabry@cisco.com> Date: Thu Aug 9 13:37:00 2018 +0200 Add VnetError type for Retvals commit 4475c1087fb53ab4c788e530bc7fef7cfc89d2cd Author: Ondrej Fabry <ofabry@cisco.com> Date: Thu Aug 9 13:36:07 2018 +0200 Add registration API commit 892a3ea5a2c703e2f7c29331663f6a6fa706bff5 Author: Ondrej Fabry <ofabry@cisco.com> Date: Thu Aug 9 13:30:43 2018 +0200 Generate registration for messages and check all IDs on connect commit 389ed03b6e7082260281866c3449d72d72347c99 Author: Ondrej Fabry <ofabry@cisco.com> Date: Thu Aug 9 11:32:41 2018 +0200 Show error for empty adapter (on Darwin/Windows) commit ef1ea040d656ade64242432dc5f06810ed8dcde6 Author: Ondrej Fabry <ofabry@cisco.com> Date: Thu Aug 9 11:31:37 2018 +0200 Improve logged info commit d4adae3b14ed54c8d693060dd857fa9ba5ec8e06 Author: Ondrej Fabry <ofabry@cisco.com> Date: Thu Aug 9 11:27:48 2018 +0200 Update examples commit 63921e1346014701a22639a2611129563bb1eb78 Author: Ondrej Fabry <ofabry@cisco.com> Date: Thu Aug 9 11:02:56 2018 +0200 Generate unions and fix some issues - add comments between sections - define structs on single line if it has no fields - generate unions with setters/getters for each field - fix detection of message type commit 6ab3e3fa590b245898306a6ffaf32c7721eab60c Author: Ondrej Fabry <ofabry@cisco.com> Date: Wed Aug 8 15:37:10 2018 +0200 Refactor binapi-generator - split JSON parsing from code generation - parse and generate enums - parse unions (no generation yet) - change output file suffix to '.ba.go' - cleanup and simplify code - split code into files - add flag for debug mode Change-Id: I58f685e0d4c7a38e9a7b6ea0a1f47792d95d7399 Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'examples/bin_api/acl/acl.go')
-rw-r--r--examples/bin_api/acl/acl.go1493
1 files changed, 0 insertions, 1493 deletions
diff --git a/examples/bin_api/acl/acl.go b/examples/bin_api/acl/acl.go
deleted file mode 100644
index f8bb944..0000000
--- a/examples/bin_api/acl/acl.go
+++ /dev/null
@@ -1,1493 +0,0 @@
-// Code generated by govpp binapi-generator DO NOT EDIT.
-// Package acl represents the VPP binary API of the 'acl' VPP module.
-// Generated from '../../bin_api/acl.api.json'
-package acl
-
-import "git.fd.io/govpp.git/api"
-
-// VlApiVersion contains version of the API.
-const VlAPIVersion = 0x1db2ece9
-
-// ACLRule represents the VPP binary API data type 'acl_rule'.
-// Generated from '../../bin_api/acl.api.json', line 836:
-//
-// "acl_rule",
-// [
-// "u8",
-// "is_permit"
-// ],
-// [
-// "u8",
-// "is_ipv6"
-// ],
-// [
-// "u8",
-// "src_ip_addr",
-// 16
-// ],
-// [
-// "u8",
-// "src_ip_prefix_len"
-// ],
-// [
-// "u8",
-// "dst_ip_addr",
-// 16
-// ],
-// [
-// "u8",
-// "dst_ip_prefix_len"
-// ],
-// [
-// "u8",
-// "proto"
-// ],
-// [
-// "u16",
-// "srcport_or_icmptype_first"
-// ],
-// [
-// "u16",
-// "srcport_or_icmptype_last"
-// ],
-// [
-// "u16",
-// "dstport_or_icmpcode_first"
-// ],
-// [
-// "u16",
-// "dstport_or_icmpcode_last"
-// ],
-// [
-// "u8",
-// "tcp_flags_mask"
-// ],
-// [
-// "u8",
-// "tcp_flags_value"
-// ],
-// {
-// "crc": "0x6f99bf4d"
-// }
-//
-type ACLRule struct {
- IsPermit uint8
- IsIpv6 uint8
- SrcIPAddr []byte `struc:"[16]byte"`
- SrcIPPrefixLen uint8
- DstIPAddr []byte `struc:"[16]byte"`
- DstIPPrefixLen uint8
- Proto uint8
- SrcportOrIcmptypeFirst uint16
- SrcportOrIcmptypeLast uint16
- DstportOrIcmpcodeFirst uint16
- DstportOrIcmpcodeLast uint16
- TCPFlagsMask uint8
- TCPFlagsValue uint8
-}
-
-func (*ACLRule) GetTypeName() string {
- return "acl_rule"
-}
-func (*ACLRule) GetCrcString() string {
- return "6f99bf4d"
-}
-
-// MacipACLRule represents the VPP binary API data type 'macip_acl_rule'.
-// Generated from '../../bin_api/acl.api.json', line 896:
-//
-// "macip_acl_rule",
-// [
-// "u8",
-// "is_permit"
-// ],
-// [
-// "u8",
-// "is_ipv6"
-// ],
-// [
-// "u8",
-// "src_mac",
-// 6
-// ],
-// [
-// "u8",
-// "src_mac_mask",
-// 6
-// ],
-// [
-// "u8",
-// "src_ip_addr",
-// 16
-// ],
-// [
-// "u8",
-// "src_ip_prefix_len"
-// ],
-// {
-// "crc": "0x70589f1e"
-// }
-//
-type MacipACLRule struct {
- IsPermit uint8
- IsIpv6 uint8
- SrcMac []byte `struc:"[6]byte"`
- SrcMacMask []byte `struc:"[6]byte"`
- SrcIPAddr []byte `struc:"[16]byte"`
- SrcIPPrefixLen uint8
-}
-
-func (*MacipACLRule) GetTypeName() string {
- return "macip_acl_rule"
-}
-func (*MacipACLRule) GetCrcString() string {
- return "70589f1e"
-}
-
-// ACLPluginGetVersion represents the VPP binary API message 'acl_plugin_get_version'.
-// Generated from '../../bin_api/acl.api.json', line 87:
-//
-// "acl_plugin_get_version",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// {
-// "crc": "0x51077d14"
-// }
-//
-type ACLPluginGetVersion struct {
-}
-
-func (*ACLPluginGetVersion) GetMessageName() string {
- return "acl_plugin_get_version"
-}
-func (*ACLPluginGetVersion) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-func (*ACLPluginGetVersion) GetCrcString() string {
- return "51077d14"
-}
-func NewACLPluginGetVersion() api.Message {
- return &ACLPluginGetVersion{}
-}
-
-// ACLPluginGetVersionReply represents the VPP binary API message 'acl_plugin_get_version_reply'.
-// Generated from '../../bin_api/acl.api.json', line 105:
-//
-// "acl_plugin_get_version_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "major"
-// ],
-// [
-// "u32",
-// "minor"
-// ],
-// {
-// "crc": "0x9b32cf86"
-// }
-//
-type ACLPluginGetVersionReply struct {
- Major uint32
- Minor uint32
-}
-
-func (*ACLPluginGetVersionReply) GetMessageName() string {
- return "acl_plugin_get_version_reply"
-}
-func (*ACLPluginGetVersionReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-func (*ACLPluginGetVersionReply) GetCrcString() string {
- return "9b32cf86"
-}
-func NewACLPluginGetVersionReply() api.Message {
- return &ACLPluginGetVersionReply{}
-}
-
-// ACLPluginControlPing represents the VPP binary API message 'acl_plugin_control_ping'.
-// Generated from '../../bin_api/acl.api.json', line 127:
-//
-// "acl_plugin_control_ping",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// {
-// "crc": "0x51077d14"
-// }
-//
-type ACLPluginControlPing struct {
-}
-
-func (*ACLPluginControlPing) GetMessageName() string {
- return "acl_plugin_control_ping"
-}
-func (*ACLPluginControlPing) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-func (*ACLPluginControlPing) GetCrcString() string {
- return "51077d14"
-}
-func NewACLPluginControlPing() api.Message {
- return &ACLPluginControlPing{}
-}
-
-// ACLPluginControlPingReply represents the VPP binary API message 'acl_plugin_control_ping_reply'.
-// Generated from '../../bin_api/acl.api.json', line 145:
-//
-// "acl_plugin_control_ping_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "i32",
-// "retval"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "vpe_pid"
-// ],
-// {
-// "crc": "0xf6b0b8ca"
-// }
-//
-type ACLPluginControlPingReply struct {
- Retval int32
- ClientIndex uint32
- VpePid uint32
-}
-
-func (*ACLPluginControlPingReply) GetMessageName() string {
- return "acl_plugin_control_ping_reply"
-}
-func (*ACLPluginControlPingReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-func (*ACLPluginControlPingReply) GetCrcString() string {
- return "f6b0b8ca"
-}
-func NewACLPluginControlPingReply() api.Message {
- return &ACLPluginControlPingReply{}
-}
-
-// ACLAddReplace represents the VPP binary API message 'acl_add_replace'.
-// Generated from '../../bin_api/acl.api.json', line 171:
-//
-// "acl_add_replace",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "acl_index"
-// ],
-// [
-// "u8",
-// "tag",
-// 64
-// ],
-// [
-// "u32",
-// "count"
-// ],
-// [
-// "vl_api_acl_rule_t",
-// "r",
-// 0,
-// "count"
-// ],
-// {
-// "crc": "0xe839997e"
-// }
-//
-type ACLAddReplace struct {
- ACLIndex uint32
- Tag []byte `struc:"[64]byte"`
- Count uint32 `struc:"sizeof=R"`
- R []ACLRule
-}
-
-func (*ACLAddReplace) GetMessageName() string {
- return "acl_add_replace"
-}
-func (*ACLAddReplace) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-func (*ACLAddReplace) GetCrcString() string {
- return "e839997e"
-}
-func NewACLAddReplace() api.Message {
- return &ACLAddReplace{}
-}
-
-// ACLAddReplaceReply represents the VPP binary API message 'acl_add_replace_reply'.
-// Generated from '../../bin_api/acl.api.json', line 208:
-//
-// "acl_add_replace_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "acl_index"
-// ],
-// [
-// "i32",
-// "retval"
-// ],
-// {
-// "crc": "0xac407b0c"
-// }
-//
-type ACLAddReplaceReply struct {
- ACLIndex uint32
- Retval int32
-}
-
-func (*ACLAddReplaceReply) GetMessageName() string {
- return "acl_add_replace_reply"
-}
-func (*ACLAddReplaceReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-func (*ACLAddReplaceReply) GetCrcString() string {
- return "ac407b0c"
-}
-func NewACLAddReplaceReply() api.Message {
- return &ACLAddReplaceReply{}
-}
-
-// ACLDel represents the VPP binary API message 'acl_del'.
-// Generated from '../../bin_api/acl.api.json', line 230:
-//
-// "acl_del",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "acl_index"
-// ],
-// {
-// "crc": "0xef34fea4"
-// }
-//
-type ACLDel struct {
- ACLIndex uint32
-}
-
-func (*ACLDel) GetMessageName() string {
- return "acl_del"
-}
-func (*ACLDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-func (*ACLDel) GetCrcString() string {
- return "ef34fea4"
-}
-func NewACLDel() api.Message {
- return &ACLDel{}
-}
-
-// ACLDelReply represents the VPP binary API message 'acl_del_reply'.
-// Generated from '../../bin_api/acl.api.json', line 252:
-//
-// "acl_del_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "i32",
-// "retval"
-// ],
-// {
-// "crc": "0xe8d4e804"
-// }
-//
-type ACLDelReply struct {
- Retval int32
-}
-
-func (*ACLDelReply) GetMessageName() string {
- return "acl_del_reply"
-}
-func (*ACLDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-func (*ACLDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func NewACLDelReply() api.Message {
- return &ACLDelReply{}
-}
-
-// ACLInterfaceAddDel represents the VPP binary API message 'acl_interface_add_del'.
-// Generated from '../../bin_api/acl.api.json', line 270:
-//
-// "acl_interface_add_del",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u8",
-// "is_add"
-// ],
-// [
-// "u8",
-// "is_input"
-// ],
-// [
-// "u32",
-// "sw_if_index"
-// ],
-// [
-// "u32",
-// "acl_index"
-// ],
-// {
-// "crc": "0x0b2aedd1"
-// }
-//
-type ACLInterfaceAddDel struct {
- IsAdd uint8
- IsInput uint8
- SwIfIndex uint32
- ACLIndex uint32
-}
-
-func (*ACLInterfaceAddDel) GetMessageName() string {
- return "acl_interface_add_del"
-}
-func (*ACLInterfaceAddDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-func (*ACLInterfaceAddDel) GetCrcString() string {
- return "0b2aedd1"
-}
-func NewACLInterfaceAddDel() api.Message {
- return &ACLInterfaceAddDel{}
-}
-
-// ACLInterfaceAddDelReply represents the VPP binary API message 'acl_interface_add_del_reply'.
-// Generated from '../../bin_api/acl.api.json', line 304:
-//
-// "acl_interface_add_del_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "i32",
-// "retval"
-// ],
-// {
-// "crc": "0xe8d4e804"
-// }
-//
-type ACLInterfaceAddDelReply struct {
- Retval int32
-}
-
-func (*ACLInterfaceAddDelReply) GetMessageName() string {
- return "acl_interface_add_del_reply"
-}
-func (*ACLInterfaceAddDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-func (*ACLInterfaceAddDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func NewACLInterfaceAddDelReply() api.Message {
- return &ACLInterfaceAddDelReply{}
-}
-
-// ACLInterfaceSetACLList represents the VPP binary API message 'acl_interface_set_acl_list'.
-// Generated from '../../bin_api/acl.api.json', line 322:
-//
-// "acl_interface_set_acl_list",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "sw_if_index"
-// ],
-// [
-// "u8",
-// "count"
-// ],
-// [
-// "u8",
-// "n_input"
-// ],
-// [
-// "u32",
-// "acls",
-// 0,
-// "count"
-// ],
-// {
-// "crc": "0x8baece38"
-// }
-//
-type ACLInterfaceSetACLList struct {
- SwIfIndex uint32
- Count uint8 `struc:"sizeof=Acls"`
- NInput uint8
- Acls []uint32
-}
-
-func (*ACLInterfaceSetACLList) GetMessageName() string {
- return "acl_interface_set_acl_list"
-}
-func (*ACLInterfaceSetACLList) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-func (*ACLInterfaceSetACLList) GetCrcString() string {
- return "8baece38"
-}
-func NewACLInterfaceSetACLList() api.Message {
- return &ACLInterfaceSetACLList{}
-}
-
-// ACLInterfaceSetACLListReply represents the VPP binary API message 'acl_interface_set_acl_list_reply'.
-// Generated from '../../bin_api/acl.api.json', line 358:
-//
-// "acl_interface_set_acl_list_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "i32",
-// "retval"
-// ],
-// {
-// "crc": "0xe8d4e804"
-// }
-//
-type ACLInterfaceSetACLListReply struct {
- Retval int32
-}
-
-func (*ACLInterfaceSetACLListReply) GetMessageName() string {
- return "acl_interface_set_acl_list_reply"
-}
-func (*ACLInterfaceSetACLListReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-func (*ACLInterfaceSetACLListReply) GetCrcString() string {
- return "e8d4e804"
-}
-func NewACLInterfaceSetACLListReply() api.Message {
- return &ACLInterfaceSetACLListReply{}
-}
-
-// ACLDump represents the VPP binary API message 'acl_dump'.
-// Generated from '../../bin_api/acl.api.json', line 376:
-//
-// "acl_dump",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "acl_index"
-// ],
-// {
-// "crc": "0xef34fea4"
-// }
-//
-type ACLDump struct {
- ACLIndex uint32
-}
-
-func (*ACLDump) GetMessageName() string {
- return "acl_dump"
-}
-func (*ACLDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-func (*ACLDump) GetCrcString() string {
- return "ef34fea4"
-}
-func NewACLDump() api.Message {
- return &ACLDump{}
-}
-
-// ACLDetails represents the VPP binary API message 'acl_details'.
-// Generated from '../../bin_api/acl.api.json', line 398:
-//
-// "acl_details",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "acl_index"
-// ],
-// [
-// "u8",
-// "tag",
-// 64
-// ],
-// [
-// "u32",
-// "count"
-// ],
-// [
-// "vl_api_acl_rule_t",
-// "r",
-// 0,
-// "count"
-// ],
-// {
-// "crc": "0x5bd895be"
-// }
-//
-type ACLDetails struct {
- ACLIndex uint32
- Tag []byte `struc:"[64]byte"`
- Count uint32 `struc:"sizeof=R"`
- R []ACLRule
-}
-
-func (*ACLDetails) GetMessageName() string {
- return "acl_details"
-}
-func (*ACLDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-func (*ACLDetails) GetCrcString() string {
- return "5bd895be"
-}
-func NewACLDetails() api.Message {
- return &ACLDetails{}
-}
-
-// ACLInterfaceListDump represents the VPP binary API message 'acl_interface_list_dump'.
-// Generated from '../../bin_api/acl.api.json', line 431:
-//
-// "acl_interface_list_dump",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "sw_if_index"
-// ],
-// {
-// "crc": "0x529cb13f"
-// }
-//
-type ACLInterfaceListDump struct {
- SwIfIndex uint32
-}
-
-func (*ACLInterfaceListDump) GetMessageName() string {
- return "acl_interface_list_dump"
-}
-func (*ACLInterfaceListDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-func (*ACLInterfaceListDump) GetCrcString() string {
- return "529cb13f"
-}
-func NewACLInterfaceListDump() api.Message {
- return &ACLInterfaceListDump{}
-}
-
-// ACLInterfaceListDetails represents the VPP binary API message 'acl_interface_list_details'.
-// Generated from '../../bin_api/acl.api.json', line 453:
-//
-// "acl_interface_list_details",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "sw_if_index"
-// ],
-// [
-// "u8",
-// "count"
-// ],
-// [
-// "u8",
-// "n_input"
-// ],
-// [
-// "u32",
-// "acls",
-// 0,
-// "count"
-// ],
-// {
-// "crc": "0xd5e80809"
-// }
-//
-type ACLInterfaceListDetails struct {
- SwIfIndex uint32
- Count uint8 `struc:"sizeof=Acls"`
- NInput uint8
- Acls []uint32
-}
-
-func (*ACLInterfaceListDetails) GetMessageName() string {
- return "acl_interface_list_details"
-}
-func (*ACLInterfaceListDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-func (*ACLInterfaceListDetails) GetCrcString() string {
- return "d5e80809"
-}
-func NewACLInterfaceListDetails() api.Message {
- return &ACLInterfaceListDetails{}
-}
-
-// MacipACLAdd represents the VPP binary API message 'macip_acl_add'.
-// Generated from '../../bin_api/acl.api.json', line 485:
-//
-// "macip_acl_add",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u8",
-// "tag",
-// 64
-// ],
-// [
-// "u32",
-// "count"
-// ],
-// [
-// "vl_api_macip_acl_rule_t",
-// "r",
-// 0,
-// "count"
-// ],
-// {
-// "crc": "0xb3d3d65a"
-// }
-//
-type MacipACLAdd struct {
- Tag []byte `struc:"[64]byte"`
- Count uint32 `struc:"sizeof=R"`
- R []MacipACLRule
-}
-
-func (*MacipACLAdd) GetMessageName() string {
- return "macip_acl_add"
-}
-func (*MacipACLAdd) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-func (*MacipACLAdd) GetCrcString() string {
- return "b3d3d65a"
-}
-func NewMacipACLAdd() api.Message {
- return &MacipACLAdd{}
-}
-
-// MacipACLAddReply represents the VPP binary API message 'macip_acl_add_reply'.
-// Generated from '../../bin_api/acl.api.json', line 518:
-//
-// "macip_acl_add_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "acl_index"
-// ],
-// [
-// "i32",
-// "retval"
-// ],
-// {
-// "crc": "0xac407b0c"
-// }
-//
-type MacipACLAddReply struct {
- ACLIndex uint32
- Retval int32
-}
-
-func (*MacipACLAddReply) GetMessageName() string {
- return "macip_acl_add_reply"
-}
-func (*MacipACLAddReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-func (*MacipACLAddReply) GetCrcString() string {
- return "ac407b0c"
-}
-func NewMacipACLAddReply() api.Message {
- return &MacipACLAddReply{}
-}
-
-// MacipACLAddReplace represents the VPP binary API message 'macip_acl_add_replace'.
-// Generated from '../../bin_api/acl.api.json', line 540:
-//
-// "macip_acl_add_replace",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "acl_index"
-// ],
-// [
-// "u8",
-// "tag",
-// 64
-// ],
-// [
-// "u32",
-// "count"
-// ],
-// [
-// "vl_api_macip_acl_rule_t",
-// "r",
-// 0,
-// "count"
-// ],
-// {
-// "crc": "0xa0e8c01b"
-// }
-//
-type MacipACLAddReplace struct {
- ACLIndex uint32
- Tag []byte `struc:"[64]byte"`
- Count uint32 `struc:"sizeof=R"`
- R []MacipACLRule
-}
-
-func (*MacipACLAddReplace) GetMessageName() string {
- return "macip_acl_add_replace"
-}
-func (*MacipACLAddReplace) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-func (*MacipACLAddReplace) GetCrcString() string {
- return "a0e8c01b"
-}
-func NewMacipACLAddReplace() api.Message {
- return &MacipACLAddReplace{}
-}
-
-// MacipACLAddReplaceReply represents the VPP binary API message 'macip_acl_add_replace_reply'.
-// Generated from '../../bin_api/acl.api.json', line 577:
-//
-// "macip_acl_add_replace_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "acl_index"
-// ],
-// [
-// "i32",
-// "retval"
-// ],
-// {
-// "crc": "0xac407b0c"
-// }
-//
-type MacipACLAddReplaceReply struct {
- ACLIndex uint32
- Retval int32
-}
-
-func (*MacipACLAddReplaceReply) GetMessageName() string {
- return "macip_acl_add_replace_reply"
-}
-func (*MacipACLAddReplaceReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-func (*MacipACLAddReplaceReply) GetCrcString() string {
- return "ac407b0c"
-}
-func NewMacipACLAddReplaceReply() api.Message {
- return &MacipACLAddReplaceReply{}
-}
-
-// MacipACLDel represents the VPP binary API message 'macip_acl_del'.
-// Generated from '../../bin_api/acl.api.json', line 599:
-//
-// "macip_acl_del",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "acl_index"
-// ],
-// {
-// "crc": "0xef34fea4"
-// }
-//
-type MacipACLDel struct {
- ACLIndex uint32
-}
-
-func (*MacipACLDel) GetMessageName() string {
- return "macip_acl_del"
-}
-func (*MacipACLDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-func (*MacipACLDel) GetCrcString() string {
- return "ef34fea4"
-}
-func NewMacipACLDel() api.Message {
- return &MacipACLDel{}
-}
-
-// MacipACLDelReply represents the VPP binary API message 'macip_acl_del_reply'.
-// Generated from '../../bin_api/acl.api.json', line 621:
-//
-// "macip_acl_del_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "i32",
-// "retval"
-// ],
-// {
-// "crc": "0xe8d4e804"
-// }
-//
-type MacipACLDelReply struct {
- Retval int32
-}
-
-func (*MacipACLDelReply) GetMessageName() string {
- return "macip_acl_del_reply"
-}
-func (*MacipACLDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-func (*MacipACLDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func NewMacipACLDelReply() api.Message {
- return &MacipACLDelReply{}
-}
-
-// MacipACLInterfaceAddDel represents the VPP binary API message 'macip_acl_interface_add_del'.
-// Generated from '../../bin_api/acl.api.json', line 639:
-//
-// "macip_acl_interface_add_del",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u8",
-// "is_add"
-// ],
-// [
-// "u32",
-// "sw_if_index"
-// ],
-// [
-// "u32",
-// "acl_index"
-// ],
-// {
-// "crc": "0x6a6be97c"
-// }
-//
-type MacipACLInterfaceAddDel struct {
- IsAdd uint8
- SwIfIndex uint32
- ACLIndex uint32
-}
-
-func (*MacipACLInterfaceAddDel) GetMessageName() string {
- return "macip_acl_interface_add_del"
-}
-func (*MacipACLInterfaceAddDel) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-func (*MacipACLInterfaceAddDel) GetCrcString() string {
- return "6a6be97c"
-}
-func NewMacipACLInterfaceAddDel() api.Message {
- return &MacipACLInterfaceAddDel{}
-}
-
-// MacipACLInterfaceAddDelReply represents the VPP binary API message 'macip_acl_interface_add_del_reply'.
-// Generated from '../../bin_api/acl.api.json', line 669:
-//
-// "macip_acl_interface_add_del_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "i32",
-// "retval"
-// ],
-// {
-// "crc": "0xe8d4e804"
-// }
-//
-type MacipACLInterfaceAddDelReply struct {
- Retval int32
-}
-
-func (*MacipACLInterfaceAddDelReply) GetMessageName() string {
- return "macip_acl_interface_add_del_reply"
-}
-func (*MacipACLInterfaceAddDelReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-func (*MacipACLInterfaceAddDelReply) GetCrcString() string {
- return "e8d4e804"
-}
-func NewMacipACLInterfaceAddDelReply() api.Message {
- return &MacipACLInterfaceAddDelReply{}
-}
-
-// MacipACLDump represents the VPP binary API message 'macip_acl_dump'.
-// Generated from '../../bin_api/acl.api.json', line 687:
-//
-// "macip_acl_dump",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "acl_index"
-// ],
-// {
-// "crc": "0xef34fea4"
-// }
-//
-type MacipACLDump struct {
- ACLIndex uint32
-}
-
-func (*MacipACLDump) GetMessageName() string {
- return "macip_acl_dump"
-}
-func (*MacipACLDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-func (*MacipACLDump) GetCrcString() string {
- return "ef34fea4"
-}
-func NewMacipACLDump() api.Message {
- return &MacipACLDump{}
-}
-
-// MacipACLDetails represents the VPP binary API message 'macip_acl_details'.
-// Generated from '../../bin_api/acl.api.json', line 709:
-//
-// "macip_acl_details",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "acl_index"
-// ],
-// [
-// "u8",
-// "tag",
-// 64
-// ],
-// [
-// "u32",
-// "count"
-// ],
-// [
-// "vl_api_macip_acl_rule_t",
-// "r",
-// 0,
-// "count"
-// ],
-// {
-// "crc": "0xdd2b55ba"
-// }
-//
-type MacipACLDetails struct {
- ACLIndex uint32
- Tag []byte `struc:"[64]byte"`
- Count uint32 `struc:"sizeof=R"`
- R []MacipACLRule
-}
-
-func (*MacipACLDetails) GetMessageName() string {
- return "macip_acl_details"
-}
-func (*MacipACLDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-func (*MacipACLDetails) GetCrcString() string {
- return "dd2b55ba"
-}
-func NewMacipACLDetails() api.Message {
- return &MacipACLDetails{}
-}
-
-// MacipACLInterfaceGet represents the VPP binary API message 'macip_acl_interface_get'.
-// Generated from '../../bin_api/acl.api.json', line 742:
-//
-// "macip_acl_interface_get",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// {
-// "crc": "0x51077d14"
-// }
-//
-type MacipACLInterfaceGet struct {
-}
-
-func (*MacipACLInterfaceGet) GetMessageName() string {
- return "macip_acl_interface_get"
-}
-func (*MacipACLInterfaceGet) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-func (*MacipACLInterfaceGet) GetCrcString() string {
- return "51077d14"
-}
-func NewMacipACLInterfaceGet() api.Message {
- return &MacipACLInterfaceGet{}
-}
-
-// MacipACLInterfaceGetReply represents the VPP binary API message 'macip_acl_interface_get_reply'.
-// Generated from '../../bin_api/acl.api.json', line 760:
-//
-// "macip_acl_interface_get_reply",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "count"
-// ],
-// [
-// "u32",
-// "acls",
-// 0,
-// "count"
-// ],
-// {
-// "crc": "0xaccf9b05"
-// }
-//
-type MacipACLInterfaceGetReply struct {
- Count uint32 `struc:"sizeof=Acls"`
- Acls []uint32
-}
-
-func (*MacipACLInterfaceGetReply) GetMessageName() string {
- return "macip_acl_interface_get_reply"
-}
-func (*MacipACLInterfaceGetReply) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-func (*MacipACLInterfaceGetReply) GetCrcString() string {
- return "accf9b05"
-}
-func NewMacipACLInterfaceGetReply() api.Message {
- return &MacipACLInterfaceGetReply{}
-}
-
-// MacipACLInterfaceListDump represents the VPP binary API message 'macip_acl_interface_list_dump'.
-// Generated from '../../bin_api/acl.api.json', line 784:
-//
-// "macip_acl_interface_list_dump",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "client_index"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "sw_if_index"
-// ],
-// {
-// "crc": "0x529cb13f"
-// }
-//
-type MacipACLInterfaceListDump struct {
- SwIfIndex uint32
-}
-
-func (*MacipACLInterfaceListDump) GetMessageName() string {
- return "macip_acl_interface_list_dump"
-}
-func (*MacipACLInterfaceListDump) GetMessageType() api.MessageType {
- return api.RequestMessage
-}
-func (*MacipACLInterfaceListDump) GetCrcString() string {
- return "529cb13f"
-}
-func NewMacipACLInterfaceListDump() api.Message {
- return &MacipACLInterfaceListDump{}
-}
-
-// MacipACLInterfaceListDetails represents the VPP binary API message 'macip_acl_interface_list_details'.
-// Generated from '../../bin_api/acl.api.json', line 806:
-//
-// "macip_acl_interface_list_details",
-// [
-// "u16",
-// "_vl_msg_id"
-// ],
-// [
-// "u32",
-// "context"
-// ],
-// [
-// "u32",
-// "sw_if_index"
-// ],
-// [
-// "u8",
-// "count"
-// ],
-// [
-// "u32",
-// "acls",
-// 0,
-// "count"
-// ],
-// {
-// "crc": "0x29783fa0"
-// }
-//
-type MacipACLInterfaceListDetails struct {
- SwIfIndex uint32
- Count uint8 `struc:"sizeof=Acls"`
- Acls []uint32
-}
-
-func (*MacipACLInterfaceListDetails) GetMessageName() string {
- return "macip_acl_interface_list_details"
-}
-func (*MacipACLInterfaceListDetails) GetMessageType() api.MessageType {
- return api.ReplyMessage
-}
-func (*MacipACLInterfaceListDetails) GetCrcString() string {
- return "29783fa0"
-}
-func NewMacipACLInterfaceListDetails() api.Message {
- return &MacipACLInterfaceListDetails{}
-}