aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/nsim/nsim.api
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2018-09-21 13:10:28 -0400
committerDamjan Marion <dmarion@me.com>2018-09-24 08:08:34 +0000
commit9e3252b5cec76dddb9877e593c799ebe15cae0af (patch)
tree37a848d9e9bb0ff59f8b54e5bab9380df39a4ebc /src/plugins/nsim/nsim.api
parentbdc0e6b7204ea0211d4f7881497e4306586fb9ef (diff)
Network delay simulator plugin
Change-Id: I4a70c7df8f0cb368a4e1cb16f30eeef5c6058c79 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/plugins/nsim/nsim.api')
-rw-r--r--src/plugins/nsim/nsim.api50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/plugins/nsim/nsim.api b/src/plugins/nsim/nsim.api
new file mode 100644
index 00000000000..89174268aee
--- /dev/null
+++ b/src/plugins/nsim/nsim.api
@@ -0,0 +1,50 @@
+/**
+ * @file nsim.api
+ * @brief VPP control-plane API messages for the network delay simulator
+ */
+
+option version = "1.0.0";
+
+/** \brief enable / disable the network delay simulation cross-connect
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param enable_disable - enable or disable the feature
+ @param sw_if_index0 - one interface to cross-connect
+ @param sw_if_index1 - the other interface to cross-connect
+*/
+autoreply define nsim_enable_disable
+{
+ /* Client identifier, set from api_main.my_client_index */
+ u32 client_index;
+
+ /* Arbitrary context, so client can match reply to request */
+ u32 context;
+
+ /* Enable / disable the feature on the interfaces */
+ u8 enable_disable;
+
+ /* Interface handles */
+ u32 sw_if_index0;
+ u32 sw_if_index1;
+};
+
+/** \brief configure the network delay simulation cross-connect
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param delay_in_usec - microseconds of link delay to simulate
+ @param average_packet_size - average packet size for wheel sizing
+ @param bandwidth_in_bits_per_second - bps for wheel sizing
+*/
+autoreply define nsim_configure
+{
+ /* Client identifier, set from api_main.my_client_index */
+ u32 client_index;
+
+ /* Arbitrary context, so client can match reply to request */
+ u32 context;
+
+ /* Configuration parameters */
+ u32 delay_in_usec;
+ u32 average_packet_size;
+ u64 bandwidth_in_bits_per_second;
+};