FD.io VPP  v18.10-34-gcce845e
Vector Packet Processing
nsim.api
Go to the documentation of this file.
1 /**
2  * @file nsim.api
3  * @brief VPP control-plane API messages for the network delay simulator
4  */
5 
6 option version = "1.0.0";
7 
8 /** \brief enable / disable the network delay simulation cross-connect
9  @param client_index - opaque cookie to identify the sender
10  @param context - sender context, to match reply w/ request
11  @param enable_disable - enable or disable the feature
12  @param sw_if_index0 - one interface to cross-connect
13  @param sw_if_index1 - the other interface to cross-connect
14 */
15 autoreply define nsim_enable_disable
16 {
17  /* Client identifier, set from api_main.my_client_index */
19 
20  /* Arbitrary context, so client can match reply to request */
22 
23  /* Enable / disable the feature on the interfaces */
25 
26  /* Interface handles */
29 };
30 
31 /** \brief configure the network delay simulation cross-connect
32  @param client_index - opaque cookie to identify the sender
33  @param context - sender context, to match reply w/ request
34  @param delay_in_usec - microseconds of link delay to simulate
35  @param average_packet_size - average packet size for wheel sizing
36  @param bandwidth_in_bits_per_second - bps for wheel sizing
37 */
38 autoreply define nsim_configure
39 {
40  /* Client identifier, set from api_main.my_client_index */
42 
43  /* Arbitrary context, so client can match reply to request */
45 
46  /* Configuration parameters */
50 };
unsigned long u64
Definition: types.h:89
static int nsim_configure(nsim_main_t *nsm, f64 bandwidth, f64 delay, f64 packet_size)
Definition: nsim.c:121
unsigned char u8
Definition: types.h:56
unsigned int u32
Definition: types.h:88
int nsim_enable_disable(nsim_main_t *nsm, u32 sw_if_index0, u32 sw_if_index1, int enable_disable)
Definition: nsim.c:70
option version
Definition: nsim.api:6
u64 bandwidth_in_bits_per_second
Definition: nsim.api:49