diff --git a/ovn-tester/ovn_context.py b/ovn-tester/ovn_context.py index cbc7e90a..9eb89fa7 100644 --- a/ovn-tester/ovn_context.py +++ b/ovn-tester/ovn_context.py @@ -10,7 +10,7 @@ ITERATION_STAT_NAME = 'Iteration Total' -class Context(object): +class Context: def __init__( self, cluster, diff --git a/ovn-tester/ovn_ext_cmd.py b/ovn-tester/ovn_ext_cmd.py index ac1058b7..43eaa2a5 100644 --- a/ovn-tester/ovn_ext_cmd.py +++ b/ovn-tester/ovn_ext_cmd.py @@ -13,7 +13,7 @@ def __init__(self, central_node, container): ) -class ExtCmdUnit(object): +class ExtCmdUnit: def __init__(self, conf, central_node, worker_nodes): self.iteration = conf.get('iteration') self.cmd = conf.get('cmd') @@ -59,7 +59,7 @@ def _node_exec(self, node): return stdout.getvalue().strip() -class ExtCmd(object): +class ExtCmd: def __init__(self, config, central_node, worker_nodes): self.cmd_map = defaultdict(list) for ext_cmd in config.get('ext_cmd', list()): diff --git a/ovn-tester/ovn_load_balancer.py b/ovn-tester/ovn_load_balancer.py index a52627a4..7bfae664 100644 --- a/ovn-tester/ovn_load_balancer.py +++ b/ovn-tester/ovn_load_balancer.py @@ -11,7 +11,7 @@ def __str__(self): return f"Invalid Protocol: {self.args}" -class OvnLoadBalancer(object): +class OvnLoadBalancer: def __init__(self, lb_name, nbctl, vips=None, protocols=VALID_PROTOCOLS): ''' Create load balancers with optional vips. @@ -114,7 +114,7 @@ def get_vip_map(vip, vport, backends, backend_port, version): } -class OvnLoadBalancerGroup(object): +class OvnLoadBalancerGroup: def __init__(self, group_name, nbctl): self.nbctl = nbctl self.name = group_name diff --git a/ovn-tester/ovn_sandbox.py b/ovn-tester/ovn_sandbox.py index 9320e0c7..3be57c22 100644 --- a/ovn-tester/ovn_sandbox.py +++ b/ovn-tester/ovn_sandbox.py @@ -50,7 +50,7 @@ def run(self, cmd="", stdout=None, raise_on_error=False): log.info(out) -class PhysicalNode(object): +class PhysicalNode: def __init__(self, hostname, log_cmds): self.ssh = SSH(hostname, log_cmds) @@ -58,7 +58,7 @@ def run(self, cmd="", stdout=None, raise_on_error=False): self.ssh.run(cmd=cmd, stdout=stdout, raise_on_error=raise_on_error) -class Sandbox(object): +class Sandbox: def __init__(self, phys_node, container): self.phys_node = phys_node self.container = container diff --git a/ovn-tester/ovn_workload.py b/ovn-tester/ovn_workload.py index 1a91682e..2baba573 100644 --- a/ovn-tester/ovn_workload.py +++ b/ovn-tester/ovn_workload.py @@ -456,7 +456,7 @@ def get_connection_string(self, cluster_cfg, port): DEFAULT_BACKEND_PORT = 8080 -class Namespace(object): +class Namespace: def __init__(self, cluster, name, global_cfg): self.cluster = cluster self.nbctl = cluster.nbctl @@ -747,7 +747,7 @@ def provision_vips_to_load_balancers(self, backend_lists, version): self.load_balancer.add_vips(vips) -class Cluster(object): +class Cluster: def __init__(self, central_node, worker_nodes, cluster_cfg, brex_cfg): # In clustered mode use the first node for provisioning. self.central_node = central_node