Skip to content

Commit

Permalink
Recipes/SRIOVNetnsOvSRecipe.py: remove unused iterators
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Tluka <[email protected]>
  • Loading branch information
jtluka committed Feb 2, 2024
1 parent 1a72548 commit ee6b244
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lnst/Recipes/ENRT/SRIOVNetnsOvSRecipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def test_wide_configuration(self):
ipv4_addr = interface_addresses(self.params.net_ipv4)
ipv6_addr = interface_addresses(self.params.net_ipv6)

for i, host in enumerate([host1, host2]):
for host in [host1, host2]:
host.run("systemctl enable openvswitch")
host.run("systemctl start openvswitch")
host.run("ovs-vsctl set Open_vSwitch . other_config:hw-offload=true")
Expand Down Expand Up @@ -138,7 +138,7 @@ def test_wide_configuration(self):
def generate_test_wide_description(self, config: EnrtConfiguration):
desc = super().generate_test_wide_description(config)
host1, host2 = self.matched.host1, self.matched.host2
for i, host in enumerate([host1, host2]):
for host in [host1, host2]:
desc += [
f"Configured {host.hostid}.{host.eth0.name}.driver = switchdev\n"
f"Created virtual function on {host.hostid}.{host.eth0.name} = {host.newns.vf_eth0.name}\n"
Expand Down

0 comments on commit ee6b244

Please sign in to comment.