From: Matthew Smith Date: Mon, 18 Jul 2022 13:19:26 +0000 (+0000) Subject: linux-cp: API downgrade due to namespace keyword X-Git-Tag: v23.02-rc0~143 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=99e3b8b84e665616d5daa21d3f08c9c8358b8da4;p=vpp.git linux-cp: API downgrade due to namespace keyword Type: fix A user had trouble compiling C++ code to work with the linux-cp APIs because some messages contain a field called namespace, which is a reserved word for C++. We wish to rename those fields so the messages which are affected are being set to in_progress. Change-Id: I3bd1dc898c146a9980161a562b2b453313bb58fd Signed-off-by: Matthew Smith --- diff --git a/src/plugins/linux-cp/lcp.api b/src/plugins/linux-cp/lcp.api index 319dd3e6483..caeb31e273d 100644 --- a/src/plugins/linux-cp/lcp.api +++ b/src/plugins/linux-cp/lcp.api @@ -31,6 +31,7 @@ autoreply define lcp_default_ns_set u32 client_index; u32 context; string namespace[32]; /* LCP_NS_LEN */ + option in_progress; }; /** \brief get the default Linux Control Plane namespace @@ -52,6 +53,7 @@ define lcp_default_ns_get_reply { u32 context; string namespace[32]; /* LCP_NS_LEN */ + option in_progress; }; enum lcp_itf_host_type : u8 @@ -78,6 +80,7 @@ autoreply autoendian define lcp_itf_pair_add_del string host_if_name[16]; /* IFNAMSIZ */ vl_api_lcp_itf_host_type_t host_if_type; string namespace[32]; /* LCP_NS_LEN */ + option in_progress; }; autoendian define lcp_itf_pair_add_del_v2 { @@ -88,6 +91,7 @@ autoendian define lcp_itf_pair_add_del_v2 string host_if_name[16]; /* IFNAMSIZ */ vl_api_lcp_itf_host_type_t host_if_type; string namespace[32]; /* LCP_NS_LEN */ + option in_progress; }; define lcp_itf_pair_add_del_v2_reply { @@ -132,6 +136,7 @@ autoendian define lcp_itf_pair_details string host_if_name[16]; /* IFNAMSIZ */ vl_api_lcp_itf_host_type_t host_if_type; string namespace[32]; /* LCP_NS_LEN */ + option in_progress; }; service {