From 54ff8d827f0aa3c689e26583952d04d86be503e7 Mon Sep 17 00:00:00 2001 From: Jan Gelety Date: Wed, 11 Mar 2020 15:04:08 +0100 Subject: CSIT-1597 API cleanup: vpe - cover API changes in VPP: https://gerrit.fd.io/r/c/vpp/+/25567 - update vpp stable to version 20.05-rc0~352 Change-Id: I205d7d3de48d480e070d3e2d3e3ab83480b69c77 Signed-off-by: Jan Gelety --- resources/libraries/python/VPPUtil.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'resources/libraries') diff --git a/resources/libraries/python/VPPUtil.py b/resources/libraries/python/VPPUtil.py index 6e6dad70fc..8744dc0154 100644 --- a/resources/libraries/python/VPPUtil.py +++ b/resources/libraries/python/VPPUtil.py @@ -346,15 +346,7 @@ class VPPUtil: with PapiSocketExecutor(node) as papi_exec: reply = papi_exec.add(cmd).get_reply() - threads_data = list() - for thread in reply[u"thread_data"]: - thread_data = list() - for item in thread: - if isinstance(item, str): - item = item.rstrip('\x00') - thread_data.append(item) - threads_data.append(thread_data) - + threads_data = reply[u"thread_data"] logger.trace(f"show threads:\n{threads_data}") return threads_data -- cgit 1.2.3-korg