FD.io VPP  v21.01.1
Vector Packet Processing
flowprobe.api
Go to the documentation of this file.
1 /* Define a simple enable-disable binary API to control the feature */
2 
3 /** \file
4  This file defines the vpp control-plane API messages
5  used to control the flowprobe plugin
6 */
7 
8 option version = "1.0.0";
9 
10 import "vnet/interface_types.api";
11 
13 {
17 };
18 
20 {
24 };
25 
26 /** \brief Enable / disable per-packet IPFIX recording on an interface
27  @param client_index - opaque cookie to identify the sender
28  @param context - sender context, to match reply w/ request
29  @param is_add - add address if non-zero, else delete
30  @param which - flags indicating forwarding path
31  @param sw_if_index - index of the interface
32 */
33 autoreply define flowprobe_tx_interface_add_del
34 {
35  /* Client identifier, set from api_main.my_client_index */
37 
38  /* Arbitrary context, so client can match reply to request */
40 
41  /* Enable / disable the feature */
42  bool is_add;
43  vl_api_flowprobe_which_flags_t which;
44 
45  /* Interface handle */
46  vl_api_interface_index_t sw_if_index;
47  option vat_help = "<intfc> [disable]";
48 };
49 
50 autoreply define flowprobe_params
51 {
54  vl_api_flowprobe_record_flags_t record_flags;
55  u32 active_timer; /* ~0 is off, 0 is default */
56  u32 passive_timer; /* ~0 is off, 0 is default */
57  option vat_help = "record <[l2] [l3] [l4]> [active <timer> passive <timer>]";
58 };
vl_api_interface_index_t sw_if_index
Definition: flowprobe.api:46
vl_api_flowprobe_which_flags_t which
Definition: flowprobe.api:43
unsigned char u8
Definition: types.h:56
unsigned int u32
Definition: types.h:88
static int flowprobe_params(flowprobe_main_t *fm, u8 record_l2, u8 record_l3, u8 record_l4, u32 active_timer, u32 passive_timer)
Definition: flowprobe.c:672
flowprobe_which_flags
Definition: flowprobe.api:12
flowprobe_record_flags
Definition: flowprobe.api:19
option version
Definition: flowprobe.api:8
vl_api_flowprobe_record_flags_t record_flags
Definition: flowprobe.api:54