From 8ca20507d15703412c18b07d4f4ce6b4de989de6 Mon Sep 17 00:00:00 2001 From: Milan Lenco Date: Thu, 25 Jan 2018 10:15:48 +0100 Subject: Update examples, tests and testdata after binapi-generator update. Change-Id: I738d501cbbb6673010a32847df3f1c87050b8d36 Signed-off-by: Milan Lenco --- examples/bin_api/acl/acl.go | 1217 +++++++++++++++++++++++++++++++++---------- 1 file changed, 932 insertions(+), 285 deletions(-) (limited to 'examples/bin_api/acl/acl.go') diff --git a/examples/bin_api/acl/acl.go b/examples/bin_api/acl/acl.go index 488f9b5..f8bb944 100644 --- a/examples/bin_api/acl/acl.go +++ b/examples/bin_api/acl/acl.go @@ -6,27 +6,69 @@ package acl import "git.fd.io/govpp.git/api" // VlApiVersion contains version of the API. -const VlAPIVersion = 0x1fd77287 +const VlAPIVersion = 0x1db2ece9 // ACLRule represents the VPP binary API data type 'acl_rule'. -// Generated from '../../bin_api/acl.api.json', line 3: -// -// ["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" : "0x2715e1c0"} -// ], +// 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 @@ -48,21 +90,43 @@ func (*ACLRule) GetTypeName() string { return "acl_rule" } func (*ACLRule) GetCrcString() string { - return "2715e1c0" + return "6f99bf4d" } // MacipACLRule represents the VPP binary API data type 'macip_acl_rule'. -// Generated from '../../bin_api/acl.api.json', line 19: -// -// ["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" : "0x6723f13e"} -// ] +// 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 @@ -77,18 +141,28 @@ func (*MacipACLRule) GetTypeName() string { return "macip_acl_rule" } func (*MacipACLRule) GetCrcString() string { - return "6723f13e" + return "70589f1e" } // ACLPluginGetVersion represents the VPP binary API message 'acl_plugin_get_version'. -// Generated from '../../bin_api/acl.api.json', line 30: +// Generated from '../../bin_api/acl.api.json', line 87: // -// ["acl_plugin_get_version", -// ["u16", "_vl_msg_id"], -// ["u32", "client_index"], -// ["u32", "context"], -// {"crc" : "0xd7c07748"} -// ], +// "acl_plugin_get_version", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "client_index" +// ], +// [ +// "u32", +// "context" +// ], +// { +// "crc": "0x51077d14" +// } // type ACLPluginGetVersion struct { } @@ -100,22 +174,35 @@ func (*ACLPluginGetVersion) GetMessageType() api.MessageType { return api.RequestMessage } func (*ACLPluginGetVersion) GetCrcString() string { - return "d7c07748" + 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 36: +// 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" : "0x43eb59a5"} -// ], +// "acl_plugin_get_version_reply", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "context" +// ], +// [ +// "u32", +// "major" +// ], +// [ +// "u32", +// "minor" +// ], +// { +// "crc": "0x9b32cf86" +// } // type ACLPluginGetVersionReply struct { Major uint32 @@ -129,21 +216,31 @@ func (*ACLPluginGetVersionReply) GetMessageType() api.MessageType { return api.ReplyMessage } func (*ACLPluginGetVersionReply) GetCrcString() string { - return "43eb59a5" + 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 43: +// Generated from '../../bin_api/acl.api.json', line 127: // -// ["acl_plugin_control_ping", -// ["u16", "_vl_msg_id"], -// ["u32", "client_index"], -// ["u32", "context"], -// {"crc" : "0xfc22c86e"} -// ], +// "acl_plugin_control_ping", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "client_index" +// ], +// [ +// "u32", +// "context" +// ], +// { +// "crc": "0x51077d14" +// } // type ACLPluginControlPing struct { } @@ -155,23 +252,39 @@ func (*ACLPluginControlPing) GetMessageType() api.MessageType { return api.RequestMessage } func (*ACLPluginControlPing) GetCrcString() string { - return "fc22c86e" + 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 49: +// 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" : "0xe07e9231"} -// ], +// "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 @@ -186,25 +299,50 @@ func (*ACLPluginControlPingReply) GetMessageType() api.MessageType { return api.ReplyMessage } func (*ACLPluginControlPingReply) GetCrcString() string { - return "e07e9231" + 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 57: -// -// ["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" : "0x3c317936"} -// ], +// 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 @@ -220,22 +358,35 @@ func (*ACLAddReplace) GetMessageType() api.MessageType { return api.RequestMessage } func (*ACLAddReplace) GetCrcString() string { - return "3c317936" + 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 67: +// 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" : "0xa5e6d0cf"} -// ], +// "acl_add_replace_reply", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "context" +// ], +// [ +// "u32", +// "acl_index" +// ], +// [ +// "i32", +// "retval" +// ], +// { +// "crc": "0xac407b0c" +// } // type ACLAddReplaceReply struct { ACLIndex uint32 @@ -249,22 +400,35 @@ func (*ACLAddReplaceReply) GetMessageType() api.MessageType { return api.ReplyMessage } func (*ACLAddReplaceReply) GetCrcString() string { - return "a5e6d0cf" + 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 74: +// Generated from '../../bin_api/acl.api.json', line 230: // -// ["acl_del", -// ["u16", "_vl_msg_id"], -// ["u32", "client_index"], -// ["u32", "context"], -// ["u32", "acl_index"], -// {"crc" : "0x82cc30ed"} -// ], +// "acl_del", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "client_index" +// ], +// [ +// "u32", +// "context" +// ], +// [ +// "u32", +// "acl_index" +// ], +// { +// "crc": "0xef34fea4" +// } // type ACLDel struct { ACLIndex uint32 @@ -277,21 +441,31 @@ func (*ACLDel) GetMessageType() api.MessageType { return api.RequestMessage } func (*ACLDel) GetCrcString() string { - return "82cc30ed" + 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 81: +// Generated from '../../bin_api/acl.api.json', line 252: // -// ["acl_del_reply", -// ["u16", "_vl_msg_id"], -// ["u32", "context"], -// ["i32", "retval"], -// {"crc" : "0xbbb83d84"} -// ], +// "acl_del_reply", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "context" +// ], +// [ +// "i32", +// "retval" +// ], +// { +// "crc": "0xe8d4e804" +// } // type ACLDelReply struct { Retval int32 @@ -304,25 +478,47 @@ func (*ACLDelReply) GetMessageType() api.MessageType { return api.ReplyMessage } func (*ACLDelReply) GetCrcString() string { - return "bbb83d84" + 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 87: +// 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" : "0x98b53725"} -// ], +// "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 @@ -338,21 +534,31 @@ func (*ACLInterfaceAddDel) GetMessageType() api.MessageType { return api.RequestMessage } func (*ACLInterfaceAddDel) GetCrcString() string { - return "98b53725" + 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 97: +// Generated from '../../bin_api/acl.api.json', line 304: // -// ["acl_interface_add_del_reply", -// ["u16", "_vl_msg_id"], -// ["u32", "context"], -// ["i32", "retval"], -// {"crc" : "0xc1b3c077"} -// ], +// "acl_interface_add_del_reply", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "context" +// ], +// [ +// "i32", +// "retval" +// ], +// { +// "crc": "0xe8d4e804" +// } // type ACLInterfaceAddDelReply struct { Retval int32 @@ -365,25 +571,49 @@ func (*ACLInterfaceAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage } func (*ACLInterfaceAddDelReply) GetCrcString() string { - return "c1b3c077" + 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 103: -// -// ["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" : "0x7562419c"} -// ], +// 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 @@ -399,21 +629,31 @@ func (*ACLInterfaceSetACLList) GetMessageType() api.MessageType { return api.RequestMessage } func (*ACLInterfaceSetACLList) GetCrcString() string { - return "7562419c" + 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 113: +// Generated from '../../bin_api/acl.api.json', line 358: // -// ["acl_interface_set_acl_list_reply", -// ["u16", "_vl_msg_id"], -// ["u32", "context"], -// ["i32", "retval"], -// {"crc" : "0x435ddc2b"} -// ], +// "acl_interface_set_acl_list_reply", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "context" +// ], +// [ +// "i32", +// "retval" +// ], +// { +// "crc": "0xe8d4e804" +// } // type ACLInterfaceSetACLListReply struct { Retval int32 @@ -426,22 +666,35 @@ func (*ACLInterfaceSetACLListReply) GetMessageType() api.MessageType { return api.ReplyMessage } func (*ACLInterfaceSetACLListReply) GetCrcString() string { - return "435ddc2b" + 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 119: +// Generated from '../../bin_api/acl.api.json', line 376: // -// ["acl_dump", -// ["u16", "_vl_msg_id"], -// ["u32", "client_index"], -// ["u32", "context"], -// ["u32", "acl_index"], -// {"crc" : "0xc188156d"} -// ], +// "acl_dump", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "client_index" +// ], +// [ +// "u32", +// "context" +// ], +// [ +// "u32", +// "acl_index" +// ], +// { +// "crc": "0xef34fea4" +// } // type ACLDump struct { ACLIndex uint32 @@ -454,24 +707,46 @@ func (*ACLDump) GetMessageType() api.MessageType { return api.RequestMessage } func (*ACLDump) GetCrcString() string { - return "c188156d" + 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 126: -// -// ["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" : "0x1c8916b7"} -// ], +// 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 @@ -487,22 +762,35 @@ func (*ACLDetails) GetMessageType() api.MessageType { return api.ReplyMessage } func (*ACLDetails) GetCrcString() string { - return "1c8916b7" + 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 135: +// 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" : "0xadfe84b8"} -// ], +// "acl_interface_list_dump", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "client_index" +// ], +// [ +// "u32", +// "context" +// ], +// [ +// "u32", +// "sw_if_index" +// ], +// { +// "crc": "0x529cb13f" +// } // type ACLInterfaceListDump struct { SwIfIndex uint32 @@ -515,24 +803,45 @@ func (*ACLInterfaceListDump) GetMessageType() api.MessageType { return api.RequestMessage } func (*ACLInterfaceListDump) GetCrcString() string { - return "adfe84b8" + 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 142: -// -// ["acl_interface_list_details", -// ["u16", "_vl_msg_id"], -// ["u32", "context"], -// ["u32", "sw_if_index"], -// ["u8", "count"], -// ["u8", "n_input"], -// ["u32", "acls", 0, "count"], -// {"crc" : "0xc8150656"} -// ], +// 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 @@ -548,24 +857,46 @@ func (*ACLInterfaceListDetails) GetMessageType() api.MessageType { return api.ReplyMessage } func (*ACLInterfaceListDetails) GetCrcString() string { - return "c8150656" + 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 151: -// -// ["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" : "0x33356284"} -// ], +// 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"` @@ -580,22 +911,35 @@ func (*MacipACLAdd) GetMessageType() api.MessageType { return api.RequestMessage } func (*MacipACLAdd) GetCrcString() string { - return "33356284" + 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 160: +// 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" : "0x472edb4c"} -// ], +// "macip_acl_add_reply", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "context" +// ], +// [ +// "u32", +// "acl_index" +// ], +// [ +// "i32", +// "retval" +// ], +// { +// "crc": "0xac407b0c" +// } // type MacipACLAddReply struct { ACLIndex uint32 @@ -609,22 +953,136 @@ func (*MacipACLAddReply) GetMessageType() api.MessageType { return api.ReplyMessage } func (*MacipACLAddReply) GetCrcString() string { - return "472edb4c" + 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 167: +// 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" : "0xdde1141f"} -// ], +// "macip_acl_del", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "client_index" +// ], +// [ +// "u32", +// "context" +// ], +// [ +// "u32", +// "acl_index" +// ], +// { +// "crc": "0xef34fea4" +// } // type MacipACLDel struct { ACLIndex uint32 @@ -637,21 +1095,31 @@ func (*MacipACLDel) GetMessageType() api.MessageType { return api.RequestMessage } func (*MacipACLDel) GetCrcString() string { - return "dde1141f" + 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 174: +// Generated from '../../bin_api/acl.api.json', line 621: // -// ["macip_acl_del_reply", -// ["u16", "_vl_msg_id"], -// ["u32", "context"], -// ["i32", "retval"], -// {"crc" : "0xeeb60e0f"} -// ], +// "macip_acl_del_reply", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "context" +// ], +// [ +// "i32", +// "retval" +// ], +// { +// "crc": "0xe8d4e804" +// } // type MacipACLDelReply struct { Retval int32 @@ -664,24 +1132,43 @@ func (*MacipACLDelReply) GetMessageType() api.MessageType { return api.ReplyMessage } func (*MacipACLDelReply) GetCrcString() string { - return "eeb60e0f" + 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 180: -// -// ["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" : "0x03a4fab2"} -// ], +// 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 @@ -696,21 +1183,31 @@ func (*MacipACLInterfaceAddDel) GetMessageType() api.MessageType { return api.RequestMessage } func (*MacipACLInterfaceAddDel) GetCrcString() string { - return "03a4fab2" + 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 189: +// Generated from '../../bin_api/acl.api.json', line 669: // -// ["macip_acl_interface_add_del_reply", -// ["u16", "_vl_msg_id"], -// ["u32", "context"], -// ["i32", "retval"], -// {"crc" : "0x9e9ee485"} -// ], +// "macip_acl_interface_add_del_reply", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "context" +// ], +// [ +// "i32", +// "retval" +// ], +// { +// "crc": "0xe8d4e804" +// } // type MacipACLInterfaceAddDelReply struct { Retval int32 @@ -723,22 +1220,35 @@ func (*MacipACLInterfaceAddDelReply) GetMessageType() api.MessageType { return api.ReplyMessage } func (*MacipACLInterfaceAddDelReply) GetCrcString() string { - return "9e9ee485" + 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 195: +// 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" : "0xd38227cb"} -// ], +// "macip_acl_dump", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "client_index" +// ], +// [ +// "u32", +// "context" +// ], +// [ +// "u32", +// "acl_index" +// ], +// { +// "crc": "0xef34fea4" +// } // type MacipACLDump struct { ACLIndex uint32 @@ -751,24 +1261,46 @@ func (*MacipACLDump) GetMessageType() api.MessageType { return api.RequestMessage } func (*MacipACLDump) GetCrcString() string { - return "d38227cb" + 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 202: -// -// ["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" : "0xee1c50db"} -// ], +// 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 @@ -784,21 +1316,31 @@ func (*MacipACLDetails) GetMessageType() api.MessageType { return api.ReplyMessage } func (*MacipACLDetails) GetCrcString() string { - return "ee1c50db" + 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 211: +// Generated from '../../bin_api/acl.api.json', line 742: // -// ["macip_acl_interface_get", -// ["u16", "_vl_msg_id"], -// ["u32", "client_index"], -// ["u32", "context"], -// {"crc" : "0x317ce31c"} -// ], +// "macip_acl_interface_get", +// [ +// "u16", +// "_vl_msg_id" +// ], +// [ +// "u32", +// "client_index" +// ], +// [ +// "u32", +// "context" +// ], +// { +// "crc": "0x51077d14" +// } // type MacipACLInterfaceGet struct { } @@ -810,22 +1352,37 @@ func (*MacipACLInterfaceGet) GetMessageType() api.MessageType { return api.RequestMessage } func (*MacipACLInterfaceGet) GetCrcString() string { - return "317ce31c" + 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 217: +// 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" : "0x6c86a56c"} -// ] +// "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"` @@ -839,8 +1396,98 @@ func (*MacipACLInterfaceGetReply) GetMessageType() api.MessageType { return api.ReplyMessage } func (*MacipACLInterfaceGetReply) GetCrcString() string { - return "6c86a56c" + 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{} +} -- cgit 1.2.3-korg