Add support for ethernet address in LISP API
[vpp.git] / vpp / vpp-api / vpe.api
index 0184a3e..033ba24 100644 (file)
@@ -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;
@@ -2482,16 +2488,16 @@ 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;
 };