ikev2: add support for custom ipsec-over-udp port
[vpp.git] / src / plugins / nsim / nsim.api
index 42531cd..b9623a1 100644 (file)
@@ -3,7 +3,8 @@
  * @brief VPP control-plane API messages for the network delay simulator
  */
 
-option version = "2.1.0";
+option version = "2.1.1";
+import "vnet/interface_types.api";
 
 /** \brief enable / disable the network delay simulation cross-connect
     @param client_index - opaque cookie to identify the sender
@@ -21,11 +22,12 @@ autoreply define nsim_cross_connect_enable_disable
   u32 context;
   
   /* Enable / disable the feature on the interfaces */
-  u8 enable_disable;
+  bool enable_disable;
   
   /* Interface handles */
-  u32 sw_if_index0;
-  u32 sw_if_index1;
+  vl_api_interface_index_t sw_if_index0;
+  vl_api_interface_index_t sw_if_index1;
+  option vat_help = "[<intfc0> | sw_if_index <swif0>] [<intfc1> | sw_if_index <swif1>] [disable]";
 };
 
 /** \brief enable / disable the network delay simulation output feature
@@ -43,10 +45,11 @@ autoreply define nsim_output_feature_enable_disable
   u32 context;
   
   /* Enable / disable the feature on the interfaces */
-  u8 enable_disable;
+  bool enable_disable;
   
   /* Interface handles */
-  u32 sw_if_index;
+  vl_api_interface_index_t sw_if_index;
+  option vat_help = "[<intfc> | sw_if_index <nnn> [disable]";
 };
 
 /** \brief configure the network delay simulation cross-connect
@@ -69,6 +72,7 @@ autoreply define nsim_configure
   u32 average_packet_size;
   u64 bandwidth_in_bits_per_second;
   u32 packets_per_drop;
+  option vat_help = "delay <time> bandwidth <bw> [packet-size <nn>] [packets-per-drop <nnnn>]";
 };