aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-01-20 17:11:48 -0800
committerFlorin Coras <florin.coras@gmail.com>2019-01-22 05:04:15 +0000
commit6d9e045b00e12c1e195342925c444a8d3756acbd (patch)
treef2564bfe674ee160f7745f34b598ac89739b565b
parentd6c15af33f3f153e084f14484e884f3ca68dbc23 (diff)
VTL: test/lisp.py. Add missing method: object_id().
Change-Id: I7609a7b173cbfc1de10b346cc8075bca5a40ef3a Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
-rw-r--r--test/lisp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lisp.py b/test/lisp.py
index a1f0c1675a0..7b803adb072 100644
--- a/test/lisp.py
+++ b/test/lisp.py
@@ -184,6 +184,10 @@ class VppLispMapping(VppObject):
mapping = self.get_lisp_mapping_dump_entry()
return mapping
+ def object_id(self):
+ return 'lisp-mapping-[%s]-%s-%s-%s' % (
+ self.vni, self.eid, self.priority, self.weight)
+
class VppLocalMapping(VppLispMapping):
""" LISP Local mapping """