aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp.py')
-rw-r--r--test/lisp.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/lisp.py b/test/lisp.py
index a2e711f9d2a..bd5e1ab7c5f 100644
--- a/test/lisp.py
+++ b/test/lisp.py
@@ -102,19 +102,19 @@ class VppLispLocator(VppObject):
return 'lisp-locator-%s-%d' % (self._ls_name, self._sw_if_index)
-class LispEIDType(object):
+class LispEIDType:
PREFIX = 0
MAC = 1
NSH = 2
-class LispKeyIdType(object):
+class LispKeyIdType:
NONE = 0
SHA1 = 1
SHA256 = 2
-class LispEID(object):
+class LispEID:
""" Lisp endpoint identifier """
def __init__(self, eid):
self.eid = eid
@@ -155,7 +155,7 @@ class LispEID(object):
return Exception('Unimplemented')
-class LispKey(object):
+class LispKey:
""" Lisp Key """
def __init__(self, key_type, key):
self._key_type = key_type
@@ -244,7 +244,7 @@ class VppLocalMapping(VppLispMapping):
return 'lisp-eid-local-mapping-%s[%d]' % (self._eid.address, self._vni)
-class LispRemoteLocator(object):
+class LispRemoteLocator:
def __init__(self, addr, priority=1, weight=1):
self.addr = addr
self.priority = priority