session vcl: support abstract sockets for app ns
[vpp.git] / src / vnet / session / session.api
index 53e2834..43bde1a 100644 (file)
@@ -217,6 +217,7 @@ autoreply define session_enable_disable {
     @param namespace_id - namespace id
 */
 define app_namespace_add_del {
+  option deprecated;
   u32 client_index;
   u32 context;
   u64 secret;
@@ -226,12 +227,50 @@ define app_namespace_add_del {
   string namespace_id[];
 };
 
+/** \brief add/del application namespace
+    @param client_index - opaque cookie to identify the sender
+                          client to vpp direction only
+    @param context - sender context, to match reply w/ request
+    @param secret - secret shared between app and vpp
+    @param sw_if_index - local interface that "supports" namespace. Set to
+                         ~0 if no preference
+    @param ip4_fib_id - id of ip4 fib that "supports" the namespace. Ignored
+                        if sw_if_index set.
+    @param ip6_fib_id - id of ip6 fib that "supports" the namespace. Ignored
+                        if sw_if_index set.
+    @param namespace_id - namespace id
+    @param netns - linux net namespace
+*/
+define app_namespace_add_del_v2 {
+  u32 client_index;
+  u32 context;
+  u64 secret;
+  vl_api_interface_index_t sw_if_index [default=0xffffffff];
+  u32 ip4_fib_id;
+  u32 ip6_fib_id;
+  string namespace_id[64];
+  string netns[64];
+};
+
 /** \brief Reply for app namespace add/del
     @param context - returned sender context, to match reply w/ request
     @param retval - return code
     @param appns_index - app namespace index
 */
 define app_namespace_add_del_reply
+{
+  option deprecated;
+  u32 context;
+  i32 retval;
+  u32 appns_index;
+};
+
+/** \brief Reply for app namespace add/del
+    @param context - returned sender context, to match reply w/ request
+    @param retval - return code
+    @param appns_index - app namespace index
+*/
+define app_namespace_add_del_v2_reply
 {
   u32 context;
   i32 retval;