aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/LispSetup.py
diff options
context:
space:
mode:
authorAndrej Kozemcak <akozemca@cisco.com>2016-05-26 15:35:02 +0200
committerJan Gelety <jgelety@cisco.com>2016-06-22 19:46:01 +0000
commit3cd8b9041dfde2b67499f8d8946589d28bc46c60 (patch)
tree6f69fd6c5dcdfc87140d84840082a33a5392c76c /resources/libraries/python/LispSetup.py
parent7c3256ac58c86307c094b647c72a44fe83a43e98 (diff)
Lisp enable/disable test
Test lisp enable/disable API. Test disable lisp, re-enable it and check if everthing is still working. Enable lisp before every lisp API test Reformat source data Change-Id: I7bace01535562814d85d7b5f6035436d583abf53 Signed-off-by: Andrej Kozemcak <akozemca@cisco.com> (cherry picked from commit 628d2d69244c571403981db5f4ded5ac5288e8b5)
Diffstat (limited to 'resources/libraries/python/LispSetup.py')
-rw-r--r--resources/libraries/python/LispSetup.py17
1 files changed, 2 insertions, 15 deletions
diff --git a/resources/libraries/python/LispSetup.py b/resources/libraries/python/LispSetup.py
index 88fcfacda6..14f99293df 100644
--- a/resources/libraries/python/LispSetup.py
+++ b/resources/libraries/python/LispSetup.py
@@ -17,7 +17,7 @@ from resources.libraries.python.topology import NodeType
from resources.libraries.python.VatExecutor import VatExecutor
-class Lisp(object):
+class LispStatus(object):
"""Class for lisp API."""
def __init__(self):
@@ -34,7 +34,7 @@ class Lisp(object):
"""
VatExecutor.cmd_from_template(node,
- 'lisp/lisp.vat',
+ 'lisp/lisp_status.vat',
state=state)
@@ -494,16 +494,3 @@ class LispSetup(object):
lgi = LispGpeIface()
lgi.vpp_lisp_gpe_iface(node, state)
-
- @staticmethod
- def vpp_lisp_state(node, state):
- """Enable/Disable lisp on VPP node in topology.
-
- :param node: VPP node.
- :param state: State of the lisp, enable or disable
- :type node: dict
- :type state: str
- """
-
- lgi = Lisp()
- lgi.vpp_lisp_enable_disable(node, state)