api: API cleanup
[vpp.git] / src / vpp / api / vpe.api
index 9531ea5..3db34fe 100644 (file)
 /** \file
 
     This file defines vpe control-plane API messages which are generally
-    called through a shared memory interface. 
+    called through a shared memory interface.
 */
 
-option version = "1.5.0";
+option version = "1.6.1";
 
 import "vpp/api/vpe_types.api";
 
-/* 
+/*
  * Note: API placement cleanup in progress
  * If you're looking for interface APIs, please
  * see .../src/vnet/{interface.api,interface_api.c}
@@ -32,7 +32,6 @@ import "vpp/api/vpe_types.api";
  * GENEVE APIs: see .../src/vnet/geneve/{geneve.api, geneve_api.c}
  * LLDP APIs: see .../src/vnet/lldp/{lldp.api, lldp_api.c}
  * AF-PACKET APIs: see ... /vnet/devices/af_packet/{af_packet.api, af_packet_api.c}
- * NETMAP APIs: see ... /src/vnet/devices/netmap/{netmap.api, netmap_api.c}
  * VHOST-USER APIs: see .../vnet/devices/virtio/{vhost_user.api, vhost_user_api.c}
  * VXLAN GPE APIs: see .../src/vnet/vxlan-gpe/{vxlan_gpe.api, vxlan_gpe_api.c}
  * GRE APIs: see .../src/vnet/gre/{gre.api, gre_api.c}
@@ -92,7 +91,7 @@ define cli_inband
 {
   u32 client_index;
   u32 context;
-  string cmd;
+  string cmd[];
 };
 
 /** \brief vpe parser cli string response
@@ -110,7 +109,7 @@ define cli_inband_reply
 {
   u32 context;
   i32 retval;
-  string reply;
+  string reply[];
 };
 
 /** \brief Get node index using name request
@@ -122,7 +121,7 @@ define get_node_index
 {
   u32 client_index;
   u32 context;
-  u8 node_name[64];
+  string node_name[64];
 };
 
 /** \brief Get node index using name request
@@ -147,8 +146,8 @@ define add_node_next
 {
   u32 client_index;
   u32 context;
-  u8 node_name[64];
-  u8 next_name[64];
+  string node_name[64];
+  string next_name[64];
 };
 
 /** \brief IP Set the next node for a given node response
@@ -184,10 +183,10 @@ define show_version_reply
 {
   u32 context;
   i32 retval;
-  string program [limit = 32];
-  string version [limit = 32];
-  string build_date [limit = 32];
-  string build_directory [limit = 256];
+  string program[32];
+  string version[32];
+  string build_date[32];
+  string build_directory[256];
 };
 
 
@@ -213,11 +212,11 @@ define show_threads
     @param core - thread pinned to actual physical core.
     @param cpu_socket - thread is running on which cpu socket.
 */
-typeonly define thread_data
+typedef thread_data
 {
   u32 id;
-  u8 name[64];
-  u8 type[64];
+  string name[64];
+  string type[64];
   u32 pid;
   u32 cpu_id;
   u32 core;
@@ -269,8 +268,8 @@ define get_next_index
 {
   u32 client_index;
   u32 context;
-  u8 node_name[64];
-  u8 next_name[64];
+  string node_name[64];
+  string next_name[64];
 };
 
 /** \brief Reply for get next node index
@@ -295,8 +294,8 @@ define log_details {
   u32 context;
   vl_api_timestamp_t timestamp;
   vl_api_log_level_t level;
-  string msg_class [limit=32];
-  string message [limit=256];
+  string msg_class[32];
+  string message[256];
 };
 
 /** \brief Show the current system timestamp.