vcl session: switch to generic cert key apis
[vpp.git] / src / vnet / session / session.api
index b897ae0..53e2834 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015-2019 Cisco and/or its affiliates.
+ * Copyright (c) 2015-2020 Cisco and/or its affiliates.
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at:
@@ -13,7 +13,7 @@
  * limitations under the License.
  */
 
-option version = "3.1.0";
+option version = "4.0.0";
 
 import "vnet/interface_types.api";
 import "vnet/ip/ip_types.api";
@@ -37,11 +37,11 @@ enum transport_proto : u8
  define app_attach {
     u32 client_index;
     u32 context;
-    u64 options[17];
+    u64 options[18];
     string namespace_id[];
  };
 
- /** \brief Application attach reply
+/** \brief Application attach reply
     @param context - sender context, to match reply w/ request
     @param retval - return code for the request
     @param app_mq - app message queue
@@ -70,7 +70,7 @@ define app_attach_reply {
     string segment_name[];
 };
 
- /** \brief client->vpp, attach application to session layer
+/** \brief Application detach from session layer
     @param client_index - opaque cookie to identify the sender
     @param context - sender context, to match reply w/ request
 */
@@ -125,6 +125,7 @@ autoreply define app_del_cert_key_pair {
     @param cert - certificate as a string
 */
 autoreply define application_tls_cert_add {
+    option deprecated="to be removed post 21.06";
     u32 client_index;
     u32 context;
     u32 app_index;
@@ -140,6 +141,7 @@ autoreply define application_tls_cert_add {
     @param key - PEM encoded key as a string
 */
 autoreply define application_tls_key_add {
+    option deprecated="to be removed post 21.06";
     u32 client_index;
     u32 context;
     u32 app_index;
@@ -218,7 +220,7 @@ define app_namespace_add_del {
   u32 client_index;
   u32 context;
   u64 secret;
-  vl_api_interface_index_t sw_if_index;
+  vl_api_interface_index_t sw_if_index [default=0xffffffff];
   u32 ip4_fib_id;
   u32 ip6_fib_id;
   string namespace_id[];