diff options
author | selias <samelias@cisco.com> | 2016-12-09 18:35:11 +0100 |
---|---|---|
committer | Samuel Eliáš <samelias@cisco.com> | 2016-12-16 11:14:41 +0000 |
commit | bd8ed88219178bb3b810d290b4ef9ba885baaf61 (patch) | |
tree | 23f323a4f92156a965cbb3917f13ea54c63cb5e2 /resources/libraries/python/LispUtil.py | |
parent | 1813672eb9f6988046bc65167235ae37b088298c (diff) |
CSIT-484: HC Test: Lisp
- add Lisp test suite
- add Lisp test data
- add keywords and methods used in Lisp tests
Change-Id: Ie7819e20cf48e7dac106d60cce316ce69ab75786
Signed-off-by: selias <samelias@cisco.com>
Diffstat (limited to 'resources/libraries/python/LispUtil.py')
-rw-r--r-- | resources/libraries/python/LispUtil.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/resources/libraries/python/LispUtil.py b/resources/libraries/python/LispUtil.py index 2926d01dfb..82341d123e 100644 --- a/resources/libraries/python/LispUtil.py +++ b/resources/libraries/python/LispUtil.py @@ -89,6 +89,20 @@ class LispUtil(object): return JsonParser().parse_data(vat.get_script_stdout()) @staticmethod + def vpp_show_lisp_pitr(node): + """Get Lisp PITR feature config from VPP node. + + :param node: VPP node. + :type node: dict + :returns: Lisp PITR config data. + :rtype: dict + """ + + vat = VatExecutor() + vat.execute_script_json_out('lisp/show_lisp_pitr.vat', node) + return JsonParser().parse_data(vat.get_script_stdout()) + + @staticmethod def lisp_should_be_equal(lisp_val1, lisp_val2): """Fail if the lisp values are not equal. |