aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/lisp-cp/lisp.api
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-01-24 11:38:18 -0800
committerDamjan Marion <dmarion.lists@gmail.com>2017-01-26 08:21:51 +0000
commitba888e46f799a1ae209c51fffdd6159d75b20cdd (patch)
treebd07381021852decd23fd417ed102bc9491e4822 /src/vnet/lisp-cp/lisp.api
parent2d6b2d6d1bbb130921ec525a1cc6e88f42717c79 (diff)
Add option to use LISP Proxy-ETR
When enabled, destinations with negative mappings or those not reachable via underlay have their traffic forwarded to the PETR. Change-Id: I1056b0959736144f27fcca7b79263f921e7a8bd9 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/lisp-cp/lisp.api')
-rw-r--r--src/vnet/lisp-cp/lisp.api51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/vnet/lisp-cp/lisp.api b/src/vnet/lisp-cp/lisp.api
index 20c17aa39b1..f0feafeecc8 100644
--- a/src/vnet/lisp-cp/lisp.api
+++ b/src/vnet/lisp-cp/lisp.api
@@ -220,6 +220,57 @@ define lisp_pitr_set_locator_set_reply
i32 retval;
};
+/** \brief configure or disable use of PETR
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+ @param is_ip4 - Address is IPv4 if set and IPv6 otherwise
+ @param address - PETR IP address
+ @param is_add - add locator set if non-zero, else disable pitr
+*/
+define lisp_use_petr
+{
+ u32 client_index;
+ u32 context;
+ u8 is_ip4;
+ u8 address[16];
+ u8 is_add;
+};
+
+/** \brief Reply for lisp_pitr_set_locator_set
+ @param context - returned sender context, to match reply w/ request
+ @param retval - return code
+*/
+define lisp_use_petr_reply
+{
+ u32 context;
+ i32 retval;
+};
+
+/** \brief Request for LISP PETR status
+ @param client_index - opaque cookie to identify the sender
+ @param context - sender context, to match reply w/ request
+*/
+define show_lisp_use_petr
+{
+ u32 client_index;
+ u32 context;
+};
+
+/** \brief LISP PETR status, enable or disable
+ @param context - sender context, to match reply w/ request
+ @param status - LISP PETR enable if non-zero, else disable
+ @param is_ip4 - Address is IPv4 if non-zero, else IPv6
+ @param address - PETR IP address
+*/
+define show_lisp_use_petr_reply
+{
+ u32 context;
+ i32 retval;
+ u8 status;
+ u8 is_ip4;
+ u8 address[16];
+};
+
/** \brief Get state of LISP RLOC probing
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request