summaryrefslogtreecommitdiffstats
path: root/test/lisp.py
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-03-04 23:55:43 +0100
committerOle Troan <ot@cisco.com>2019-03-04 23:55:43 +0100
commite1ade684eb5a7e5743abfda47488165452cc5b64 (patch)
tree63b4e3ccc361904b42e0020bfc16b4d110cd0095 /test/lisp.py
parentfd06084a9e86c5f67c4b1dc37e78a95a9bacf2a4 (diff)
test framework: Fix wrapper functions to match API message names.
In preparation to remove the wrappers in vpp_papi_provider.py, ensure names used in tests match the actual API message names. Change-Id: I230ca4eb75aa727ff68d702e085a2edbbc6b6d19 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'test/lisp.py')
-rw-r--r--test/lisp.py27
1 files changed, 14 insertions, 13 deletions
diff --git a/test/lisp.py b/test/lisp.py
index 90b8914b150..b1a185ab713 100644
--- a/test/lisp.py
+++ b/test/lisp.py
@@ -19,7 +19,7 @@ class VppLispLocatorSet(VppObject):
return self._ls_name
def add_vpp_config(self):
- self.test.vapi.lisp_locator_set(ls_name=self._ls_name)
+ self.test.vapi.lisp_add_del_locator_set(ls_name=self._ls_name)
self._test.registry.register(self, self.test.logger)
def get_lisp_locator_sets_dump_entry(self):
@@ -33,7 +33,8 @@ class VppLispLocatorSet(VppObject):
return self.get_lisp_locator_sets_dump_entry() is not None
def remove_vpp_config(self):
- self.test.vapi.lisp_locator_set(ls_name=self._ls_name, is_add=0)
+ self.test.vapi.lisp_add_del_locator_set(ls_name=self._ls_name,
+ is_add=0)
def object_id(self):
return 'lisp-locator-set-%s' % self._ls_name
@@ -72,10 +73,10 @@ class VppLispLocator(VppObject):
return self._weight
def add_vpp_config(self):
- self.test.vapi.lisp_locator(ls_name=self._ls_name,
- sw_if_index=self._sw_if_index,
- priority=self._priority,
- weight=self._weight)
+ self.test.vapi.lisp_add_del_locator(ls_name=self._ls_name,
+ sw_if_index=self._sw_if_index,
+ priority=self._priority,
+ weight=self._weight)
self._test.registry.register(self, self.test.logger)
def get_lisp_locator_dump_entry(self):
@@ -91,7 +92,7 @@ class VppLispLocator(VppObject):
return locator is not None
def remove_vpp_config(self):
- self.test.vapi.lisp_locator(
+ self.test.vapi.lisp_add_del_locator(
ls_name=self._ls_name, sw_if_index=self._sw_if_index,
priority=self._priority, weight=self._weight, is_add=0)
self._test.registry.register(self, self.test.logger)
@@ -212,14 +213,14 @@ class VppLocalMapping(VppLispMapping):
return self._key
def add_vpp_config(self):
- self.test.vapi.lisp_local_mapping(
+ self.test.vapi.lisp_add_del_local_eid(
ls_name=self._ls_name, eid_type=self._eid.eid_type,
eid=str(self._eid), prefix_len=self._eid.prefix_length,
vni=self._vni, key_id=self._key_id, key=self._key)
self._test.registry.register(self, self.test.logger)
def remove_vpp_config(self):
- self.test.vapi.lisp_local_mapping(
+ self.test.vapi.lisp_add_del_local_eid(
ls_name=self._ls_name, eid_type=self._eid.eid_type,
eid=str(self._eid), prefix_len=self._eid.prefix_length,
vni=self._vni, is_add=0)
@@ -240,14 +241,14 @@ class VppRemoteMapping(VppLispMapping):
return self._rlocs
def add_vpp_config(self):
- self.test.vapi.lisp_remote_mapping(
+ self.test.vapi.lisp_add_del_remote_mapping(
rlocs=self._rlocs, eid_type=self._eid.eid_type,
eid=str(self._eid), eid_prefix_len=self._eid.prefix_length,
vni=self._vni, rlocs_num=len(self._rlocs))
self._test.registry.register(self, self.test.logger)
def remove_vpp_config(self):
- self.test.vapi.lisp_remote_mapping(
+ self.test.vapi.lisp_add_del_remote_mapping(
eid_type=self._eid.eid_type, eid=str(self._eid),
eid_prefix_len=self._eid.prefix_length, vni=self._vni,
is_add=0, rlocs_num=0)
@@ -284,7 +285,7 @@ class VppLispAdjacency(VppObject):
return self._vni
def add_vpp_config(self):
- self.test.vapi.lisp_adjacency(
+ self.test.vapi.lisp_add_del_adjacency(
leid=str(self._leid),
reid=str(self._reid), eid_type=self._leid.eid_type,
leid_len=self._leid.prefix_length,
@@ -316,7 +317,7 @@ class VppLispAdjacency(VppObject):
return False
def remove_vpp_config(self):
- self.test.vapi.lisp_adjacency(
+ self.test.vapi.lisp_add_del_adjacency(
leid=str(self._leid),
reid=str(self._reid), eid_type=self._leid.eid_type,
leid_len=self._leid.prefix_length,