diff options
author | Jan Gelety <jgelety@cisco.com> | 2018-09-07 15:32:06 +0200 |
---|---|---|
committer | Jan Gelety <jgelety@cisco.com> | 2018-10-10 08:45:42 +0200 |
commit | 12eab1e564e0d5ab34a341039b92612de2973f3c (patch) | |
tree | 9bc185d4a6522ddae7cdaee5838caa3c8471b7ca /resources/libraries/python/IPv4Util.py | |
parent | 3b0dfef0cadee1ca820d7c8ff7e1fc6691ff2fe2 (diff) |
Add VXLAN scale perf tests
Jira: CSIT-1273
Change-Id: Ic2a41661c158384a5aaa7d4e73f30ffca13ddf82
Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries/python/IPv4Util.py')
-rw-r--r-- | resources/libraries/python/IPv4Util.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/resources/libraries/python/IPv4Util.py b/resources/libraries/python/IPv4Util.py index fa9d0fe6a9..c40e391c36 100644 --- a/resources/libraries/python/IPv4Util.py +++ b/resources/libraries/python/IPv4Util.py @@ -18,6 +18,7 @@ from robot.api.deco import keyword from resources.libraries.python.topology import Topology from resources.libraries.python.IPv4Setup import get_node +from resources.libraries.python.VatExecutor import VatTerminal from resources.libraries.python.ssh import exec_cmd @@ -227,3 +228,13 @@ class IPv4Util(object): if ret_code != 0: raise RuntimeError("Arp set not successful, reason:{}". format(stderr)) + + @staticmethod + def vpp_show_ip_table(node): + """Get IP FIB table data from a VPP node. + + :param node: VPP node. + :type node: dict + """ + with VatTerminal(node, json_param=False) as vat: + vat.vat_terminal_exec_cmd_from_template("show_ip_fib.vat") |