From e061dad55e75ea5d5db20ceda28f557971dd9483 Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Fri, 4 Dec 2020 14:57:51 -0500 Subject: tests: py2 cleanup - remove subclassing of object Type: refactor Change-Id: I9096e3b473110350e1e8e5936e3c4c164f8969a7 Signed-off-by: Paul Vinciguerra --- test/lisp.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/lisp.py') 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 -- cgit 1.2.3-korg