From e6936e94e9447823694c69ed646b7b93cb7b9517 Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sat, 3 Dec 2022 09:55:24 +0000 Subject: [PATCH] Remove workaround for gerrit.fd.io/r/c/vpp/+/35479 --- vppcfg/vpp/vppapi.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/vppcfg/vpp/vppapi.py b/vppcfg/vpp/vppapi.py index 2317531..e56b53d 100644 --- a/vppcfg/vpp/vppapi.py +++ b/vppcfg/vpp/vppapi.py @@ -209,19 +209,6 @@ class VPPApi: api_response = self.vpp.api.lcp_itf_pair_get() if isinstance(api_response, tuple) and api_response[0].retval == 0: for lcp in api_response[1]: - if lcp.phy_sw_if_index > 65535 or lcp.host_sw_if_index > 65535: - ## Work around endianness bug: https://gerrit.fd.io/r/c/vpp/+/35479 - ## TODO(pim) - remove this when 22.06 ships - lcp = lcp._replace( - phy_sw_if_index=socket.ntohl(lcp.phy_sw_if_index) - ) - lcp = lcp._replace( - host_sw_if_index=socket.ntohl(lcp.host_sw_if_index) - ) - lcp = lcp._replace(vif_index=socket.ntohl(lcp.vif_index)) - self.logger.warning( - f"LCP workaround for endianness issue on {lcp.host_if_name}" - ) self.cache["lcps"][lcp.phy_sw_if_index] = lcp self.lcp_enabled = True except AttributeError as err: