nsim: add packet loss simulation, docs
[vpp.git] / src / plugins / lb / lb.api
index de3d0c1..d36f857 100644 (file)
@@ -61,6 +61,7 @@ autoreply define lb_add_del_vip {
     @param port - destination port.
     @param as_address - The application server address (IPv4 in lower order 32 bits).
     @param is_del - The AS should be removed.
+    @param is_flush - The sessions related to this AS should be flushed.
 */
 autoreply define lb_add_del_as {
   u32 client_index;
@@ -71,5 +72,22 @@ autoreply define lb_add_del_as {
   u16 port;
   u8 as_address[16];
   u8 is_del;
+  u8 is_flush;
 };
 
+/** \brief Flush a given vip
+    @param client_index - opaque cookie to identify the sender
+    @param context - sender context, to match reply w/ request
+    @param ip_prefix - IP address (IPv4 in lower order 32 bits).
+    @param prefix_length - IP prefix length (96 + 'IPv4 prefix length' for IPv4).
+    @param protocol - tcp or udp.
+    @param port - destination port.
+*/
+autoreply define lb_flush_vip {
+  u32 client_index;
+  u32 context;
+  u8 ip_prefix[16];
+  u8 prefix_length;
+  u8 protocol;
+  u16 port;
+};