Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update CRC list and support 21997/7
[csit.git]
/
resources
/
libraries
/
python
/
VPPUtil.py
diff --git
a/resources/libraries/python/VPPUtil.py
b/resources/libraries/python/VPPUtil.py
index
4e2b237
..
6e3ff70
100644
(file)
--- a/
resources/libraries/python/VPPUtil.py
+++ b/
resources/libraries/python/VPPUtil.py
@@
-160,8
+160,9
@@
class VPPUtil(object):
:returns: VPP version.
:rtype: str
"""
:returns: VPP version.
:rtype: str
"""
+ cmd = 'show_version'
with PapiSocketExecutor(node) as papi_exec:
with PapiSocketExecutor(node) as papi_exec:
- reply = papi_exec.add(
'show_version'
).get_reply()
+ reply = papi_exec.add(
cmd
).get_reply()
return_version = reply['version'].rstrip('\0x00')
version = 'VPP version: {ver}\n'.format(ver=return_version)
if verbose:
return_version = reply['version'].rstrip('\0x00')
version = 'VPP version: {ver}\n'.format(ver=return_version)
if verbose:
@@
-313,8
+314,9
@@
class VPPUtil(object):
:returns: VPP thread data.
:rtype: list
"""
:returns: VPP thread data.
:rtype: list
"""
+ cmd = 'show_threads'
with PapiSocketExecutor(node) as papi_exec:
with PapiSocketExecutor(node) as papi_exec:
- reply = papi_exec.add(
'show_threads'
).get_reply()
+ reply = papi_exec.add(
cmd
).get_reply()
threads_data = list()
for thread in reply["thread_data"]:
threads_data = list()
for thread in reply["thread_data"]: