3 * @brief VPP control-plane API messages for the network delay simulator
6 option version = "2.1.1";
7 import "vnet/interface_types.api";
9 /** \brief enable / disable the network delay simulation cross-connect
10 @param client_index - opaque cookie to identify the sender
11 @param context - sender context, to match reply w/ request
12 @param enable_disable - enable or disable the feature
13 @param sw_if_index0 - one interface to cross-connect
14 @param sw_if_index1 - the other interface to cross-connect
16 autoreply define nsim_cross_connect_enable_disable
18 /* Client identifier, set from api_main.my_client_index */
21 /* Arbitrary context, so client can match reply to request */
24 /* Enable / disable the feature on the interfaces */
27 /* Interface handles */
28 vl_api_interface_index_t sw_if_index0;
29 vl_api_interface_index_t sw_if_index1;
30 option vat_help = "[<intfc0> | sw_if_index <swif0>] [<intfc1> | sw_if_index <swif1>] [disable]";
33 /** \brief enable / disable the network delay simulation output feature
34 @param client_index - opaque cookie to identify the sender
35 @param context - sender context, to match reply w/ request
36 @param enable_disable - enable or disable the feature
37 @param sw_if_index0 - interface
39 autoreply define nsim_output_feature_enable_disable
41 /* Client identifier, set from api_main.my_client_index */
44 /* Arbitrary context, so client can match reply to request */
47 /* Enable / disable the feature on the interfaces */
50 /* Interface handles */
51 vl_api_interface_index_t sw_if_index;
52 option vat_help = "[<intfc> | sw_if_index <nnn> [disable]";
55 /** \brief configure the network delay simulation cross-connect
56 @param client_index - opaque cookie to identify the sender
57 @param context - sender context, to match reply w/ request
58 @param delay_in_usec - microseconds of link delay to simulate
59 @param average_packet_size - average packet size for wheel sizing
60 @param bandwidth_in_bits_per_second - bps for wheel sizing
62 autoreply define nsim_configure
64 /* Client identifier, set from api_main.my_client_index */
67 /* Arbitrary context, so client can match reply to request */
70 /* Configuration parameters */
72 u32 average_packet_size;
73 u64 bandwidth_in_bits_per_second;
75 option vat_help = "delay <time> bandwidth <bw> [packet-size <nn>] [packets-per-drop <nnnn>]";