aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/linux-cp/lcp.api
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2021-05-21 09:47:08 +0000
committerMatthew Smith <mgsmith@netgate.com>2021-05-25 14:34:57 +0000
commit6bb77dec7074e6b7b27d6bc94238bcddda375a66 (patch)
tree44316c04ad5870fa64acd595a074ed02de539613 /src/plugins/linux-cp/lcp.api
parent01930f568a2472a3352ab80ea1d3b4cccf4ae0c7 (diff)
linux-cp: A V2 variant of pair create API that returns the host
interface created Type: improvement Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: I31a83cd50513078895078bae3ae11372d351ddcd
Diffstat (limited to 'src/plugins/linux-cp/lcp.api')
-rw-r--r--src/plugins/linux-cp/lcp.api16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/plugins/linux-cp/lcp.api b/src/plugins/linux-cp/lcp.api
index 5bde88082df..319dd3e6483 100644
--- a/src/plugins/linux-cp/lcp.api
+++ b/src/plugins/linux-cp/lcp.api
@@ -79,6 +79,22 @@ autoreply autoendian define lcp_itf_pair_add_del
vl_api_lcp_itf_host_type_t host_if_type;
string namespace[32]; /* LCP_NS_LEN */
};
+autoendian define lcp_itf_pair_add_del_v2
+{
+ u32 client_index;
+ u32 context;
+ bool is_add;
+ vl_api_interface_index_t sw_if_index;
+ string host_if_name[16]; /* IFNAMSIZ */
+ vl_api_lcp_itf_host_type_t host_if_type;
+ string namespace[32]; /* LCP_NS_LEN */
+};
+define lcp_itf_pair_add_del_v2_reply
+{
+ u32 context;
+ i32 retval;
+ vl_api_interface_index_t host_sw_if_index;
+};
/** \brief Dump Linux Control Plane interface pair data
@param client_index - opaque cookie to identify the sender