Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
FIX: Memif tests failing
[csit.git]
/
resources
/
libraries
/
python
/
Memif.py
diff --git
a/resources/libraries/python/Memif.py
b/resources/libraries/python/Memif.py
index
e1f3d30
..
4a31864
100644
(file)
--- a/
resources/libraries/python/Memif.py
+++ b/
resources/libraries/python/Memif.py
@@
-72,6
+72,16
@@
class Memif(object):
raise ValueError('Create Memif interface failed on node '
'{}'.format(node['host']))
raise ValueError('Create Memif interface failed on node '
'{}'.format(node['host']))
+ @staticmethod
+ def dump_memif(node):
+ """Dump Memif data for the given node.
+
+ :param node: Given node to show Memif data on.
+ :type node: dict
+ """
+ vat = VatExecutor()
+ vat.execute_script("memif_dump.vat", node, json_out=False)
+
@staticmethod
def show_memif(node):
"""Show Memif data for the given node.
@staticmethod
def show_memif(node):
"""Show Memif data for the given node.
@@
-80,7
+90,7
@@
class Memif(object):
:type node: dict
"""
vat = VatExecutor()
:type node: dict
"""
vat = VatExecutor()
- vat.execute_script("
memif_dump
.vat", node, json_out=False)
+ vat.execute_script("
show_memif
.vat", node, json_out=False)
@staticmethod
def clear_memif_socks(node, *socks):
@staticmethod
def clear_memif_socks(node, *socks):