diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2020-12-04 14:57:51 -0500 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2020-12-07 08:17:10 +0000 |
commit | e061dad55e75ea5d5db20ceda28f557971dd9483 (patch) | |
tree | 178f317491a8c8b6f525a0d865cf45625fa36274 /test/lisp.py | |
parent | d6f221789d58374db4ea5368dde5e83f72e842c0 (diff) |
tests: py2 cleanup - remove subclassing of object
Type: refactor
Change-Id: I9096e3b473110350e1e8e5936e3c4c164f8969a7
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/lisp.py')
-rw-r--r-- | test/lisp.py | 10 |
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 |