Add an option to dump details about specific LISP EID in API/CLI
[vpp.git] / vpp / vpp-api / vpe.api
index 0184a3e..bf13efb 100644 (file)
@@ -857,7 +857,7 @@ define set_ip_flow_hash_reply {
 /** \brief IPv6 router advertisement config request
     @param client_index - opaque cookie to identify the sender
     @param context - sender context, to match reply w/ request
-    @param surpress -
+    @param suppress -
     @param managed -
     @param other -
     @param ll_option -
@@ -875,7 +875,7 @@ define sw_interface_ip6nd_ra_config {
     u32 client_index;
     u32 context;
     u32 sw_if_index;
-    u8 surpress;
+    u8 suppress;
     u8  managed;
     u8 other;
     u8 ll_option;
@@ -2201,18 +2201,21 @@ define lisp_add_del_locator_reply {
     @param client_index - opaque cookie to identify the sender
     @param context - sender context, to match reply w/ request
     @param is_add - add address if non-zero, else delete
-    @param is_ipv6 - if non-zero the address is ipv6, else ipv4
-    @param ip_address - array of address bytes
+    @param eid_type:
+      0 : ipv4
+      1 : ipv6
+      2 : mac
+    @param eid - EID can be ip4, ip6 or mac
     @param prefix_len - prefix len
     @param locator_set_name - name of locator_set to add/del eid-table
-    @param vni - vitual network instance
+    @param vni - virtual network instance
 */
 define lisp_add_del_local_eid {
     u32 client_index;
     u32 context;
     u8  is_add;
-    u8  is_ipv6;
-    u8  ip_address[16];
+    u8  eid_type;
+    u8  eid[16];
     u8  prefix_len;
     u8  locator_set_name[64];
     u32 vni;
@@ -2374,7 +2377,10 @@ define lisp_pitr_set_locator_set_reply {
     @param del_all - if set, delete all remote mappings
     @param vni - virtual network instance
     @param action - negative map-reply action
-    @param eid_is_ip4 - ipv4/6 of source and destination EIDs
+    @param eid_type -
+      0 : ipv4
+      1 : ipv6
+      2 : mac
     @param deid - destination EID
     @param seid - source EID
     @param rloc_num - number of remote locators
@@ -2387,7 +2393,7 @@ define lisp_add_del_remote_mapping {
     u8 del_all;
     u32 vni;
     u8 action;
-    u8 eid_is_ip4;
+    u8 eid_type;
     u8 deid[16];
     u8 seid[16];
     u8 deid_len;
@@ -2400,12 +2406,50 @@ define lisp_add_del_remote_mapping {
     @param context - returned sender context, to match reply w/ request
     @param retval - return code
 */
-
 define lisp_add_del_remote_mapping_reply {
     u32 context;
     i32 retval;
 };
 
+/** \brief add or delete LISP adjacency adjacency
+    @param client_index - opaque cookie to identify the sender
+    @param context - sender context, to match reply w/ request
+    @param is_add - add address if non-zero, else delete
+    @param vni - virtual network instance
+    @param action - negative mapping action
+    @param eid_type -
+      0 : ipv4
+      1 : ipv6
+      2 : mac
+    @param deid - destination EID
+    @param seid - source EID
+    @param rloc_num - number of remote locators
+    @param rlocs - remote locator data
+*/
+define lisp_add_del_adjacency {
+    u32 client_index;
+    u32 context;
+    u8  is_add;
+    u32 vni;
+    u8 action;
+    u8 eid_type;
+    u8 deid[16];
+    u8 seid[16];
+    u8 deid_len;
+    u8 seid_len;
+    u32 rloc_num;
+    u8 rlocs[0];
+};
+
+/** \brief Reply for lisp_add_del_adjacency
+    @param context - returned sender context, to match reply w/ request
+    @param retval - return code
+*/
+define lisp_add_del_adjacency_reply {
+    u32 context;
+    i32 retval;
+};
+
 /** \brief add or delete map request itr rlocs
     @param client_index - opaque cookie to identify the sender
     @param context - sender context, to match reply w/ request
@@ -2482,26 +2526,41 @@ define lisp_locator_set_dump {
 
 /** \brief LISP local eid table status
     @param locator_set_name - name of the locator_set
-    @param eid_is_ipv6 - if non-zero the address is ipv6, else ipv4
-    @param eid_ip_address - array of address bytes
+    @param eid_type - ip4, ip6 or l2 mac address
+    @param eid - array of address bytes
     @param eid_prefix_len - prefix len
  */
 manual_java define lisp_local_eid_table_details {
     u32 context;
     u8  locator_set_name[64];
-    u8  eid_is_ipv6;
+    u8  eid_type;
     u32 vni;
-    u8  eid_ip_address[16];
+    u8  eid[16];
     u8  eid_prefix_len;
 };
 
 /** \brief Request for local eid table summary status
     @param client_index - opaque cookie to identify the sender
     @param context - sender context, to match reply w/ request
+    @param eid_set - if non-zero request info about specific mapping
+    @param vni - virtual network instance; valid only if eid_set != 0
+    @param prefix_length - prefix length if EID is IP address;
+      valid only if eid_set != 0
+    @param eid_type - EID type; valid only if eid_set != 0
+      Supported values:
+        0: EID is IPv4
+        1: EID is IPv6
+        2: EID is ethernet address
+    @param eid - endpoint identifier
  */
 define lisp_local_eid_table_dump {
     u32 client_index;
     u32 context;
+    u8  eid_set;
+    u8  prefix_length;
+    u32 vni;
+    u8  eid_type;
+    u8  eid[16];
 };
 
 /** \brief Shows relationship between vni and vrf