- VatExecutor.cmd_from_template(node,
- 'lisp/lisp_gpe_iface.vat',
- state=state)
+ args = dict(is_en=0 if state == 'disable' else 1)
+
+ cmd = 'gpe_enable_disable'
+ err_msg = "Failed to set LISP GPE status on host {host}".format(
+ host=node['host'])
+
+ with PapiSocketExecutor(node) as papi_exec:
+ papi_exec.add(cmd, **args).get_reply(err_msg)
+
+class LispGpeForwardEntry(object):
+ """The functionality needed for these methods is not implemented in VPP
+ (VAT). Bug https://jira.fd.io/browse/VPP-334 was open to cover this issue.
+
+ TODO: Implement when VPP-334 is fixed.
+ """
+
+ def __init__(self):
+ pass
+
+ @staticmethod
+ def add_lisp_gpe_forward_entry(node, *args):
+ """Not implemented"""
+ # TODO: Implement when VPP-334 is fixed.
+ pass
+
+ @staticmethod
+ def del_lisp_gpe_forward_entry(node, *args):
+ """Not implemented"""
+ # TODO: Implement when VPP-334 is fixed.
+ pass