diff options
author | jan.hradil <jan.hradil@pantheon.tech> | 2017-04-27 12:07:59 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2017-05-17 07:26:08 +0000 |
commit | 03bb1e5611946a53f243a3d923c8f2d1aeee079a (patch) | |
tree | 5d6c2a6efd92c8ad1dfa28b49d0dfcea2fd143c7 /resources/libraries/python/LispUtil.py | |
parent | e7959d92d3cfd7c1ea917986e95d080f60ea4ea5 (diff) |
CSIT-563: HC Test: improved Lisp test coverage
added TC09-TC14 with following features:
Map Resolver
Map Server
PETR configuration
RLOC Probing
Map Register
Map Request mode
Change-Id: I0e8a573e9a0f7ef3c688a014ff879e2b3d6b9b1e
Signed-off-by: jan.hradil <jan.hradil@pantheon.tech>
Signed-off-by: selias <samelias@cisco.com>
Diffstat (limited to 'resources/libraries/python/LispUtil.py')
-rw-r--r-- | resources/libraries/python/LispUtil.py | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/resources/libraries/python/LispUtil.py b/resources/libraries/python/LispUtil.py index 82341d123e..89f12bb2f2 100644 --- a/resources/libraries/python/LispUtil.py +++ b/resources/libraries/python/LispUtil.py @@ -89,6 +89,76 @@ class LispUtil(object): return JsonParser().parse_data(vat.get_script_stdout()) @staticmethod + def vpp_show_lisp_map_register(node): + """Get LISP Map Register from VPP node. + + :param node: VPP node. + :type node: dict + :returns: LISP Map Register as python list. + :rtype: list + """ + + vat = VatExecutor() + vat.execute_script_json_out('lisp/show_lisp_map_register.vat', node) + return JsonParser().parse_data(vat.get_script_stdout()) + + @staticmethod + def vpp_show_lisp_map_request_mode(node): + """Get LISP Map Request mode from VPP node. + + :param node: VPP node. + :type node: dict + :returns: LISP Map Request mode as python list. + :rtype: list + """ + + vat = VatExecutor() + vat.execute_script_json_out('lisp/show_lisp_map_request_mode.vat', node) + return JsonParser().parse_data(vat.get_script_stdout()) + + @staticmethod + def vpp_show_lisp_map_server(node): + """Get LISP Map Server from VPP node. + + :param node: VPP node. + :type node: dict + :returns: LISP Map Server as python list. + :rtype: list + """ + + vat = VatExecutor() + vat.execute_script_json_out('lisp/show_lisp_map_server.vat', node) + return JsonParser().parse_data(vat.get_script_stdout()) + + @staticmethod + def vpp_show_lisp_petr_config(node): + """Get LISP PETR configuration from VPP node. + + :param node: VPP node. + :type node: dict + :returns: LISP PETR configuration as python list. + :rtype: list + """ + + vat = VatExecutor() + vat.execute_script_json_out('lisp/show_lisp_petr_config.vat', node) + return JsonParser().parse_data(vat.get_script_stdout()) + + @staticmethod + def vpp_show_lisp_rloc_config(node): + """Get LISP RLOC configuration from VPP node. + + :param node: VPP node. + :type node: dict + :returns: LISP RLOC configuration as python list. + :rtype: list + """ + + vat = VatExecutor() + vat.execute_script_json_out('lisp/show_lisp_rloc_config.vat', node) + return JsonParser().parse_data(vat.get_script_stdout()) + + @staticmethod def vpp_show_lisp_pitr(node): """Get Lisp PITR feature config from VPP node. |