aboutsummaryrefslogtreecommitdiffstats
path: root/test/vpp_ip_route.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2020-12-04 14:57:51 -0500
committerOle Tr�an <otroan@employees.org>2020-12-07 08:17:10 +0000
commite061dad55e75ea5d5db20ceda28f557971dd9483 (patch)
tree178f317491a8c8b6f525a0d865cf45625fa36274 /test/vpp_ip_route.py
parentd6f221789d58374db4ea5368dde5e83f72e842c0 (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/vpp_ip_route.py')
-rw-r--r--test/vpp_ip_route.py8
1 files changed, 4 insertions, 4 deletions
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