diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/hook.py | 2 | ||||
-rw-r--r-- | test/ipfix.py | 2 | ||||
-rw-r--r-- | test/lisp.py | 10 | ||||
-rw-r--r-- | test/remote_test.py | 4 | ||||
-rw-r--r-- | test/template_ipsec.py | 4 | ||||
-rw-r--r-- | test/util.py | 4 | ||||
-rw-r--r-- | test/vpp_ip_route.py | 8 | ||||
-rw-r--r-- | test/vpp_object.py | 2 |
8 files changed, 18 insertions, 18 deletions
diff --git a/test/hook.py b/test/hook.py index 97b05d05153..7f2b8e01640 100644 --- a/test/hook.py +++ b/test/hook.py @@ -10,7 +10,7 @@ from log import RED, single_line_delim, double_line_delim from util import check_core_path, get_core_path -class Hook(object): +class Hook: """ Generic hooks before/after API/CLI calls """ diff --git a/test/ipfix.py b/test/ipfix.py index 5b32a85a2e7..bac6dfd4c2a 100644 --- a/test/ipfix.py +++ b/test/ipfix.py @@ -501,7 +501,7 @@ bind_layers(IPFIX, Set) bind_layers(UDP, IPFIX, dport=4739) -class IPFIXDecoder(object): +class IPFIXDecoder: """ IPFIX data set decoder """ def __init__(self): 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 diff --git a/test/remote_test.py b/test/remote_test.py index c9686f57f06..134d90ffa83 100644 --- a/test/remote_test.py +++ b/test/remote_test.py @@ -12,7 +12,7 @@ import sys from enum import IntEnum, IntFlag -class SerializableClassCopy(object): +class SerializableClassCopy: """ Empty class used as a basis for a serializable copy of another class. """ @@ -22,7 +22,7 @@ class SerializableClassCopy(object): return '<SerializableClassCopy dict=%s>' % self.__dict__ -class RemoteClassAttr(object): +class RemoteClassAttr: """ Wrapper around attribute of a remotely executed class. """ diff --git a/test/template_ipsec.py b/test/template_ipsec.py index 7bd0b9ec81f..129f220c314 100644 --- a/test/template_ipsec.py +++ b/test/template_ipsec.py @@ -15,7 +15,7 @@ from util import ppp, reassemble4, fragment_rfc791, fragment_rfc8200 from vpp_papi import VppEnum -class IPsecIPv4Params(object): +class IPsecIPv4Params: addr_type = socket.AF_INET addr_any = "0.0.0.0" @@ -54,7 +54,7 @@ class IPsecIPv4Params(object): self.dscp = 0 -class IPsecIPv6Params(object): +class IPsecIPv6Params: addr_type = socket.AF_INET6 addr_any = "0::0" diff --git a/test/util.py b/test/util.py index b691deb642f..e21fdb81026 100644 --- a/test/util.py +++ b/test/util.py @@ -112,7 +112,7 @@ def check_core_path(logger, core_path): " current core pattern is: %s" % corefmt) -class NumericConstant(object): +class NumericConstant: desc_dict = {} @@ -131,7 +131,7 @@ class NumericConstant(object): return "" -class Host(object): +class Host: """ Generic test host "connected" to VPPs interface. """ @property diff --git a/test/vpp_ip_route.py b/test/vpp_ip_route.py index c64ad5fb921..a50693c4f26 100644 --- a/test/vpp_ip_route.py +++ b/test/vpp_ip_route.py @@ -348,7 +348,7 @@ class VppIpInterfaceBind(VppObject): return "interface-bind-%s-%s" % (self.intf, self.table) -class VppMplsLabel(object): +class VppMplsLabel: def __init__(self, value, mode=MplsLspMode.PIPE, ttl=64, exp=0): self.value = value self.mode = mode @@ -380,7 +380,7 @@ class VppMplsLabel(object): return not (self == other) -class VppFibPathNextHop(object): +class VppFibPathNextHop: def __init__(self, addr, via_label=MPLS_LABEL_INVALID, next_hop_id=INVALID_INDEX): @@ -411,7 +411,7 @@ class VppFibPathNextHop(object): self.obj_id == other.obj_id) -class VppRoutePath(object): +class VppRoutePath: def __init__( self, @@ -691,7 +691,7 @@ class VppIpMRoute(VppObject): return c[0][self.stats_index] -class VppMFibSignal(object): +class VppMFibSignal: def __init__(self, test, route, interface, packet): self.route = route self.interface = interface diff --git a/test/vpp_object.py b/test/vpp_object.py index 2a993ff9e7c..8dd2afac97c 100644 --- a/test/vpp_object.py +++ b/test/vpp_object.py @@ -48,7 +48,7 @@ class VppObject(metaclass=abc.ABCMeta): return not self.__eq__(other) -class VppObjectRegistry(object): +class VppObjectRegistry: """ Class which handles automatic configuration cleanup. """ _shared_state = {} |