Skip to content

Commit 7768897

Browse files
committed
Review comments addressed - removed not needed indexing
1 parent e61406e commit 7768897

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tests/common/dualtor/tor_failure_utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def shutdown_tor_bgp(duthost, shutdown_all=True):
3232

3333
time.sleep(1)
3434
for duthost in torhost:
35-
duthost = torhost[0]
3635
logger.info("Starting BGP sessions on {}".format(duthost.hostname))
3736
duthost.shell("config bgp startup all")
3837

@@ -52,7 +51,6 @@ def shutdown_tor_heartbeat(duthost):
5251
yield shutdown_tor_heartbeat
5352

5453
for duthost in torhost:
55-
duthost = torhost[0]
5654
duthost.shell("systemctl start mux")
5755
duthost.shell("systemctl enable mux")
5856

@@ -74,7 +72,6 @@ def tor_blackhole_traffic(duthost, kernel=False, asic=False):
7472
yield tor_blackhole_traffic
7573

7674
for duthost in torhost:
77-
duthost = torhost[0]
7875
lo_ipv4 = None
7976
lo_ipv6 = None
8077
config_facts = duthost.config_facts(host=duthost.hostname, source="running")['ansible_facts']
@@ -107,7 +104,6 @@ def reboot_tor(duthost, reboot_type=REBOOT_TYPE_COLD):
107104
# TODO Add IO check capability
108105

109106
for duthost in torhost:
110-
duthost = torhost[0]
111107
dut_ip = duthost.setup()['ansible_facts']['ansible_eth0']['ipv4']['address']
112108
logger.info("Waiting for ssh to startup on {}".format((duthost.hostname)))
113109
res = localhost.wait_for(host=dut_ip,

0 commit comments

Comments
 (0)