Hoi folks,

I noticed that linux-cp plugin is not quite right with endianness:

Example code:
lcp_add = vpp.api.lcp_itf_pair_add_del_v2(is_add=True, sw_if_index=17,

host_if_type=VppEnum.vl_api_lcp_itf_host_type_t.LCP_API_ITF_HOST_TAP,
        host_if_name="loop0", netns="dataplane")
print(lcp_add)

lcp_ret = vpp.api.lcp_itf_pair_get()
print(lcp_ret)


Before (note an incorrect host_sw_if_index in the return, is
*301989888, *expected
*18*):
VPP version is 23.02-rc0~212-gf06a518f8
lcp_itf_pair_add_del_v2_reply(_0=103, context=2, retval=0,
*host_sw_if_index=301989888*)
(lcp_itf_pair_get_reply(_0=105, context=3, retval=0, cursor=4294967295),
[lcp_itf_pair_details(_0=106, context=3, phy_sw_if_index=17,
*host_sw_if_index=18*, vif_index=594, host_if_name='loop0',
host_if_type=<vl_api_lcp_itf_host_type_t.LCP_API_ITF_HOST_TAP: 0>,
netns='dataplane')])

After:
VPP version is 23.02-rc0~212-gf06a518f8
lcp_itf_pair_add_del_v2_reply(_0=103, context=2, retval=0,
*host_sw_if_index=18*)
(lcp_itf_pair_get_reply(_0=105, context=3, retval=0, cursor=4294967295),
[lcp_itf_pair_details(_0=106, context=3, phy_sw_if_index=17,
host_sw_if_index=18, vif_index=595, host_if_name='loop0',
host_if_type=<vl_api_lcp_itf_host_type_t.LCP_API_ITF_HOST_TAP: 0>,
netns='dataplane')])

See https://gerrit.fd.io/r/c/vpp/+/37894

-- 
Pim van Pelt <p...@ipng.nl>
PBVP1-RIPE - http://www.ipng.nl/
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#22443): https://lists.fd.io/g/vpp-dev/message/22443
Mute This Topic: https://lists.fd.io/mt/96197927/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/leave/1480452/21656/631435203/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to