diff options
author | Pim van Pelt <pim@ipng.nl> | 2022-02-27 23:15:22 +0000 |
---|---|---|
committer | Matthew Smith <mgsmith@netgate.com> | 2022-03-28 17:41:25 +0000 |
commit | 7d6f7d0d67face9889e43bdb5f71f352294b918a (patch) | |
tree | a5a04c9cee66eb658198565fd0646294360c795b /src/plugins/linux-cp/lcp_interface.h | |
parent | d53e13de8e7304af34ecabc160c452d5fdb5916a (diff) |
linux-cp: Fix API response
* Correct endianness issue
* lip_namespace is a vector not a string
* Provide null termination to avoid unpack() failures in the client
Responses in the python API now look like:
lcp_itf_pair_details(_0=328, context=3, phy_sw_if_index=1,
host_sw_if_index=3, vif_index=19, host_if_name='ice0',
host_if_type=<vl_api_lcp_itf_host_type_t.LCP_API_ITF_HOST_TAP: 0>,
namespace='dataplane')
lcp_itf_pair_details(_0=328, context=3, phy_sw_if_index=2,
host_sw_if_index=4, vif_index=20, host_if_name='ice1',
host_if_type=<vl_api_lcp_itf_host_type_t.LCP_API_ITF_HOST_TAP: 0>,
namespace='dataplane')
lcp_itf_pair_details(_0=328, context=3, phy_sw_if_index=5,
host_sw_if_index=6, vif_index=21, host_if_name='ice0.1234',
host_if_type=<vl_api_lcp_itf_host_type_t.LCP_API_ITF_HOST_TAP: 0>,
namespace='dataplane')
Type: fix
Signed-off-by: Pim van Pelt <pim@ipng.nl>
Change-Id: If4bf06a8b70977676ec7f5b1413cee6cc9d1714a
Diffstat (limited to 'src/plugins/linux-cp/lcp_interface.h')
0 files changed, 0 insertions, 0 deletions