X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FMemif.py;h=4a3186476f3a93255b4b855b1627e1055ae76cd0;hb=30c94055dd6ec2fe1cb83455cf6eb4bca8648d45;hp=e1f3d30d33e0b3770e642074feca464d155390d5;hpb=f65b8ddc723ed9fc444509525662eda6dbc74401;p=csit.git diff --git a/resources/libraries/python/Memif.py b/resources/libraries/python/Memif.py index e1f3d30d33..4a3186476f 100644 --- 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'])) + @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. @@ -80,7 +90,7 @@ class Memif(object): :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):