diff options
author | Ondrej Fabry <ofabry@cisco.com> | 2020-07-22 04:40:55 +0200 |
---|---|---|
committer | Ondrej Fabry <ofabry@cisco.com> | 2020-07-22 04:40:55 +0200 |
commit | 58da9ac6e691a8c660eb8ca838a154e11da0db68 (patch) | |
tree | a1bbda04c6d0621ce0fc20779276620f1820190b /internal/testbinapi/binapi2001/.vppapi/core/sr_mpls.api.json | |
parent | a155cd438c6558da266c1c5931361ea088b35653 (diff) |
Fix binapigen decoding and minor improvements
- fixed allocating byte slices before copying decoded data
- simplified encoding functions
- several minor improvements
Change-Id: I6669424b89eb86333805cb1b57e4551169980cc2
Signed-off-by: Ondrej Fabry <ofabry@cisco.com>
Diffstat (limited to 'internal/testbinapi/binapi2001/.vppapi/core/sr_mpls.api.json')
-rw-r--r-- | internal/testbinapi/binapi2001/.vppapi/core/sr_mpls.api.json | 324 |
1 files changed, 324 insertions, 0 deletions
diff --git a/internal/testbinapi/binapi2001/.vppapi/core/sr_mpls.api.json b/internal/testbinapi/binapi2001/.vppapi/core/sr_mpls.api.json new file mode 100644 index 0000000..6fc2497 --- /dev/null +++ b/internal/testbinapi/binapi2001/.vppapi/core/sr_mpls.api.json @@ -0,0 +1,324 @@ +{ + "types": [], + "messages": [ + [ + "sr_mpls_policy_add", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + [ + "u32", + "bsid" + ], + [ + "u32", + "weight" + ], + [ + "u8", + "type" + ], + [ + "u8", + "n_segments" + ], + [ + "u32", + "segments", + 0, + "n_segments" + ], + { + "crc": "0x6f5b21cc" + } + ], + [ + "sr_mpls_policy_add_reply", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "i32", + "retval" + ], + { + "crc": "0xe8d4e804" + } + ], + [ + "sr_mpls_policy_mod", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + [ + "u32", + "bsid" + ], + [ + "u8", + "operation" + ], + [ + "u32", + "sl_index" + ], + [ + "u32", + "weight" + ], + [ + "u8", + "n_segments" + ], + [ + "u32", + "segments", + 0, + "n_segments" + ], + { + "crc": "0x09d338ac" + } + ], + [ + "sr_mpls_policy_mod_reply", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "i32", + "retval" + ], + { + "crc": "0xe8d4e804" + } + ], + [ + "sr_mpls_policy_del", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + [ + "u32", + "bsid" + ], + { + "crc": "0xe29d34fa" + } + ], + [ + "sr_mpls_policy_del_reply", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "i32", + "retval" + ], + { + "crc": "0xe8d4e804" + } + ], + [ + "sr_mpls_steering_add_del", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + [ + "u8", + "is_del" + ], + [ + "u32", + "bsid" + ], + [ + "u32", + "table_id" + ], + [ + "u8", + "prefix_addr", + 16 + ], + [ + "u32", + "mask_width" + ], + [ + "u8", + "traffic_type" + ], + [ + "u8", + "next_hop", + 16 + ], + [ + "u8", + "nh_type" + ], + [ + "u32", + "color" + ], + [ + "u8", + "co_bits" + ], + [ + "u32", + "vpn_label" + ], + { + "crc": "0x1591f94a" + } + ], + [ + "sr_mpls_steering_add_del_reply", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "i32", + "retval" + ], + { + "crc": "0xe8d4e804" + } + ], + [ + "sr_mpls_policy_assign_endpoint_color", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + [ + "u32", + "bsid" + ], + [ + "u8", + "endpoint", + 16 + ], + [ + "u8", + "endpoint_type" + ], + [ + "u32", + "color" + ], + { + "crc": "0x6c82a6da" + } + ], + [ + "sr_mpls_policy_assign_endpoint_color_reply", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "i32", + "retval" + ], + { + "crc": "0xe8d4e804" + } + ] + ], + "unions": [], + "enums": [], + "services": { + "sr_mpls_policy_add": { + "reply": "sr_mpls_policy_add_reply" + }, + "sr_mpls_policy_mod": { + "reply": "sr_mpls_policy_mod_reply" + }, + "sr_mpls_policy_del": { + "reply": "sr_mpls_policy_del_reply" + }, + "sr_mpls_steering_add_del": { + "reply": "sr_mpls_steering_add_del_reply" + }, + "sr_mpls_policy_assign_endpoint_color": { + "reply": "sr_mpls_policy_assign_endpoint_color_reply" + } + }, + "options": { + "version": "1.0.0" + }, + "aliases": {}, + "vl_api_version": "0x933a0861" +} |