diff options
Diffstat (limited to 'internal/testbinapi/binapi2001/.vppapi/plugins/lb.api.json')
-rw-r--r-- | internal/testbinapi/binapi2001/.vppapi/plugins/lb.api.json | 1090 |
1 files changed, 1090 insertions, 0 deletions
diff --git a/internal/testbinapi/binapi2001/.vppapi/plugins/lb.api.json b/internal/testbinapi/binapi2001/.vppapi/plugins/lb.api.json new file mode 100644 index 0000000..ae9b8d0 --- /dev/null +++ b/internal/testbinapi/binapi2001/.vppapi/plugins/lb.api.json @@ -0,0 +1,1090 @@ +{ + "types": [ + [ + "address", + [ + "vl_api_address_family_t", + "af" + ], + [ + "vl_api_address_union_t", + "un" + ] + ], + [ + "prefix", + [ + "vl_api_address_t", + "address" + ], + [ + "u8", + "len" + ] + ], + [ + "mprefix", + [ + "vl_api_address_family_t", + "af" + ], + [ + "u16", + "grp_address_length" + ], + [ + "vl_api_address_union_t", + "grp_address" + ], + [ + "vl_api_address_union_t", + "src_address" + ] + ], + [ + "ip6_prefix", + [ + "vl_api_ip6_address_t", + "address" + ], + [ + "u8", + "len" + ] + ], + [ + "ip4_prefix", + [ + "vl_api_ip4_address_t", + "address" + ], + [ + "u8", + "len" + ] + ], + [ + "prefix_matcher", + [ + "u8", + "le" + ], + [ + "u8", + "ge" + ] + ], + [ + "lb_vip", + [ + "vl_api_address_with_prefix_t", + "pfx" + ], + [ + "vl_api_ip_proto_t", + "protocol" + ], + [ + "u16", + "port" + ] + ] + ], + "messages": [ + [ + "lb_conf", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + [ + "vl_api_ip4_address_t", + "ip4_src_address" + ], + [ + "vl_api_ip6_address_t", + "ip6_src_address" + ], + [ + "u32", + "sticky_buckets_per_core" + ], + [ + "u32", + "flow_timeout" + ], + { + "crc": "0x22ddb739" + } + ], + [ + "lb_conf_reply", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "i32", + "retval" + ], + { + "crc": "0xe8d4e804" + } + ], + [ + "lb_add_del_vip", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + [ + "vl_api_address_with_prefix_t", + "pfx" + ], + [ + "u8", + "protocol", + { + "default": 255 + } + ], + [ + "u16", + "port" + ], + [ + "vl_api_lb_encap_type_t", + "encap" + ], + [ + "u8", + "dscp" + ], + [ + "vl_api_lb_srv_type_t", + "type" + ], + [ + "u16", + "target_port" + ], + [ + "u16", + "node_port" + ], + [ + "u32", + "new_flows_table_length", + { + "default": 1024 + } + ], + [ + "bool", + "is_del" + ], + { + "crc": "0xd15b7ddc" + } + ], + [ + "lb_add_del_vip_reply", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "i32", + "retval" + ], + { + "crc": "0xe8d4e804" + } + ], + [ + "lb_add_del_as", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + [ + "vl_api_address_with_prefix_t", + "pfx" + ], + [ + "u8", + "protocol", + { + "default": 255 + } + ], + [ + "u16", + "port" + ], + [ + "vl_api_address_t", + "as_address" + ], + [ + "bool", + "is_del" + ], + [ + "bool", + "is_flush" + ], + { + "crc": "0x78628987" + } + ], + [ + "lb_add_del_as_reply", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "i32", + "retval" + ], + { + "crc": "0xe8d4e804" + } + ], + [ + "lb_flush_vip", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + [ + "vl_api_address_with_prefix_t", + "pfx" + ], + [ + "u8", + "protocol" + ], + [ + "u16", + "port" + ], + { + "crc": "0x1063f819" + } + ], + [ + "lb_flush_vip_reply", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "i32", + "retval" + ], + { + "crc": "0xe8d4e804" + } + ], + [ + "lb_vip_dump", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + [ + "vl_api_address_with_prefix_t", + "pfx" + ], + [ + "vl_api_prefix_matcher_t", + "pfx_matcher" + ], + [ + "u8", + "protocol", + { + "default": 255 + } + ], + [ + "u16", + "port" + ], + { + "crc": "0xc7bcb124" + } + ], + [ + "lb_vip_details", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "vl_api_lb_vip_t", + "vip" + ], + [ + "vl_api_lb_encap_type_t", + "encap" + ], + [ + "vl_api_ip_dscp_t", + "dscp" + ], + [ + "vl_api_lb_srv_type_t", + "srv_type" + ], + [ + "u16", + "target_port" + ], + [ + "u16", + "flow_table_length" + ], + { + "crc": "0x08f39bed" + } + ], + [ + "lb_as_dump", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + [ + "vl_api_address_with_prefix_t", + "pfx" + ], + [ + "u8", + "protocol" + ], + [ + "u16", + "port" + ], + { + "crc": "0x1063f819" + } + ], + [ + "lb_as_details", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "vl_api_lb_vip_t", + "vip" + ], + [ + "vl_api_address_t", + "app_srv" + ], + [ + "u8", + "flags" + ], + [ + "u32", + "in_use_since" + ], + { + "crc": "0x9c39f60e" + } + ], + [ + "lb_add_del_intf_nat4", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + [ + "bool", + "is_add" + ], + [ + "vl_api_interface_index_t", + "sw_if_index" + ], + { + "crc": "0x47d6e753" + } + ], + [ + "lb_add_del_intf_nat4_reply", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "i32", + "retval" + ], + { + "crc": "0xe8d4e804" + } + ], + [ + "lb_add_del_intf_nat6", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "client_index" + ], + [ + "u32", + "context" + ], + [ + "bool", + "is_add" + ], + [ + "vl_api_interface_index_t", + "sw_if_index" + ], + { + "crc": "0x47d6e753" + } + ], + [ + "lb_add_del_intf_nat6_reply", + [ + "u16", + "_vl_msg_id" + ], + [ + "u32", + "context" + ], + [ + "i32", + "retval" + ], + { + "crc": "0xe8d4e804" + } + ] + ], + "unions": [ + [ + "address_union", + [ + "vl_api_ip4_address_t", + "ip4" + ], + [ + "vl_api_ip6_address_t", + "ip6" + ] + ] + ], + "enums": [ + [ + "address_family", + [ + "ADDRESS_IP4", + 0 + ], + [ + "ADDRESS_IP6", + 1 + ], + { + "enumtype": "u32" + } + ], + [ + "ip_ecn", + [ + "IP_API_ECN_NONE", + 0 + ], + [ + "IP_API_ECN_ECT0", + 1 + ], + [ + "IP_API_ECN_ECT1", + 2 + ], + [ + "IP_API_ECN_CE", + 3 + ], + { + "enumtype": "u8" + } + ], + [ + "ip_dscp", + [ + "IP_API_DSCP_CS0", + 0 + ], + [ + "IP_API_DSCP_CS1", + 8 + ], + [ + "IP_API_DSCP_AF11", + 10 + ], + [ + "IP_API_DSCP_AF12", + 12 + ], + [ + "IP_API_DSCP_AF13", + 14 + ], + [ + "IP_API_DSCP_CS2", + 16 + ], + [ + "IP_API_DSCP_AF21", + 18 + ], + [ + "IP_API_DSCP_AF22", + 20 + ], + [ + "IP_API_DSCP_AF23", + 22 + ], + [ + "IP_API_DSCP_CS3", + 24 + ], + [ + "IP_API_DSCP_AF31", + 26 + ], + [ + "IP_API_DSCP_AF32", + 28 + ], + [ + "IP_API_DSCP_AF33", + 30 + ], + [ + "IP_API_DSCP_CS4", + 32 + ], + [ + "IP_API_DSCP_AF41", + 34 + ], + [ + "IP_API_DSCP_AF42", + 36 + ], + [ + "IP_API_DSCP_AF43", + 38 + ], + [ + "IP_API_DSCP_CS5", + 40 + ], + [ + "IP_API_DSCP_EF", + 46 + ], + [ + "IP_API_DSCP_CS6", + 48 + ], + [ + "IP_API_DSCP_CS7", + 50 + ], + { + "enumtype": "u8" + } + ], + [ + "ip_proto", + [ + "IP_API_PROTO_HOPOPT", + 0 + ], + [ + "IP_API_PROTO_ICMP", + 1 + ], + [ + "IP_API_PROTO_IGMP", + 2 + ], + [ + "IP_API_PROTO_TCP", + 6 + ], + [ + "IP_API_PROTO_UDP", + 17 + ], + [ + "IP_API_PROTO_GRE", + 47 + ], + [ + "IP_API_PROTO_AH", + 50 + ], + [ + "IP_API_PROTO_ESP", + 51 + ], + [ + "IP_API_PROTO_EIGRP", + 88 + ], + [ + "IP_API_PROTO_OSPF", + 89 + ], + [ + "IP_API_PROTO_SCTP", + 132 + ], + [ + "IP_API_PROTO_RESERVED", + 255 + ], + { + "enumtype": "u32" + } + ], + [ + "lb_srv_type", + [ + "LB_API_SRV_TYPE_CLUSTERIP", + 0 + ], + [ + "LB_API_SRV_TYPE_NODEPORT", + 1 + ], + [ + "LB_API_SRV_N_TYPES", + 2 + ], + { + "enumtype": "u32" + } + ], + [ + "lb_encap_type", + [ + "LB_API_ENCAP_TYPE_GRE4", + 0 + ], + [ + "LB_API_ENCAP_TYPE_GRE6", + 1 + ], + [ + "LB_API_ENCAP_TYPE_L3DSR", + 2 + ], + [ + "LB_API_ENCAP_TYPE_NAT4", + 3 + ], + [ + "LB_API_ENCAP_TYPE_NAT6", + 4 + ], + [ + "LB_API_ENCAP_N_TYPES", + 5 + ], + { + "enumtype": "u32" + } + ], + [ + "lb_lkp_type_t", + [ + "LB_API_LKP_SAME_IP_PORT", + 0 + ], + [ + "LB_API_LKP_DIFF_IP_PORT", + 1 + ], + [ + "LB_API_LKP_ALL_PORT_IP", + 2 + ], + [ + "LB_API_LKP_N_TYPES", + 3 + ], + { + "enumtype": "u32" + } + ], + [ + "lb_vip_type", + [ + "LB_API_VIP_TYPE_IP6_GRE6", + 0 + ], + [ + "LB_API_VIP_TYPE_IP6_GRE4", + 1 + ], + [ + "LB_API_VIP_TYPE_IP4_GRE6", + 2 + ], + [ + "LB_API_VIP_TYPE_IP4_GRE4", + 3 + ], + [ + "LB_API_VIP_TYPE_IP4_L3DSR", + 4 + ], + [ + "LB_API_VIP_TYPE_IP4_NAT4", + 5 + ], + [ + "LB_API_VIP_TYPE_IP6_NAT6", + 6 + ], + [ + "LB_API_VIP_N_TYPES", + 7 + ], + { + "enumtype": "u32" + } + ], + [ + "lb_nat_protocol", + [ + "LB_API_NAT_PROTOCOL_UDP", + 6 + ], + [ + "LB_API_NAT_PROTOCOL_TCP", + 23 + ], + [ + "LB_API_NAT_PROTOCOL_ANY", + 4294967295 + ], + { + "enumtype": "u32" + } + ], + [ + "if_status_flags", + [ + "IF_STATUS_API_FLAG_ADMIN_UP", + 1 + ], + [ + "IF_STATUS_API_FLAG_LINK_UP", + 2 + ], + { + "enumtype": "u32" + } + ], + [ + "mtu_proto", + [ + "MTU_PROTO_API_L3", + 1 + ], + [ + "MTU_PROTO_API_IP4", + 2 + ], + [ + "MTU_PROTO_API_IP6", + 3 + ], + [ + "MTU_PROTO_API_MPLS", + 4 + ], + [ + "MTU_PROTO_API_N", + 5 + ], + { + "enumtype": "u32" + } + ], + [ + "link_duplex", + [ + "LINK_DUPLEX_API_UNKNOWN", + 0 + ], + [ + "LINK_DUPLEX_API_HALF", + 1 + ], + [ + "LINK_DUPLEX_API_FULL", + 2 + ], + { + "enumtype": "u32" + } + ], + [ + "sub_if_flags", + [ + "SUB_IF_API_FLAG_NO_TAGS", + 1 + ], + [ + "SUB_IF_API_FLAG_ONE_TAG", + 2 + ], + [ + "SUB_IF_API_FLAG_TWO_TAGS", + 4 + ], + [ + "SUB_IF_API_FLAG_DOT1AD", + 8 + ], + [ + "SUB_IF_API_FLAG_EXACT_MATCH", + 16 + ], + [ + "SUB_IF_API_FLAG_DEFAULT", + 32 + ], + [ + "SUB_IF_API_FLAG_OUTER_VLAN_ID_ANY", + 64 + ], + [ + "SUB_IF_API_FLAG_INNER_VLAN_ID_ANY", + 128 + ], + [ + "SUB_IF_API_FLAG_MASK_VNET", + 254 + ], + [ + "SUB_IF_API_FLAG_DOT1AH", + 256 + ], + { + "enumtype": "u32" + } + ], + [ + "rx_mode", + [ + "RX_MODE_API_UNKNOWN", + 0 + ], + [ + "RX_MODE_API_POLLING", + 1 + ], + [ + "RX_MODE_API_INTERRUPT", + 2 + ], + [ + "RX_MODE_API_ADAPTIVE", + 3 + ], + [ + "RX_MODE_API_DEFAULT", + 4 + ], + { + "enumtype": "u32" + } + ], + [ + "if_type", + [ + "IF_API_TYPE_HARDWARE", + 1 + ], + [ + "IF_API_TYPE_SUB", + 2 + ], + [ + "IF_API_TYPE_P2P", + 3 + ], + [ + "IF_API_TYPE_PIPE", + 4 + ], + { + "enumtype": "u32" + } + ] + ], + "services": { + "lb_conf": { + "reply": "lb_conf_reply" + }, + "lb_add_del_vip": { + "reply": "lb_add_del_vip_reply" + }, + "lb_add_del_as": { + "reply": "lb_add_del_as_reply" + }, + "lb_flush_vip": { + "reply": "lb_flush_vip_reply" + }, + "lb_vip_dump": { + "reply": "lb_vip_details", + "stream": true + }, + "lb_as_dump": { + "reply": "lb_as_details", + "stream": true + }, + "lb_add_del_intf_nat4": { + "reply": "lb_add_del_intf_nat4_reply" + }, + "lb_add_del_intf_nat6": { + "reply": "lb_add_del_intf_nat6_reply" + } + }, + "options": { + "version": "1.0.0" + }, + "aliases": { + "ip4_address": { + "type": "u8", + "length": 4 + }, + "ip6_address": { + "type": "u8", + "length": 16 + }, + "address_with_prefix": { + "type": "vl_api_prefix_t" + }, + "ip4_address_with_prefix": { + "type": "vl_api_ip4_prefix_t" + }, + "ip6_address_with_prefix": { + "type": "vl_api_ip6_prefix_t" + }, + "interface_index": { + "type": "u32" + } + }, + "vl_api_version": "0x76c36b4c" +} |