Fixed getting the IPs from the HW nodes
Related-PROD: PROD-36943
Change-Id: I0b316d579cc68742e1f4bedd581aa1049cead8da
diff --git a/utils/ssh.py b/utils/ssh.py
index cb0a258..88e605d 100644
--- a/utils/ssh.py
+++ b/utils/ssh.py
@@ -224,8 +224,8 @@
output = transport.exec_command(command)
try:
all_ip_addresses = [line.split()[1] for line in
- output.decode().splitlines()
- if "/" in line.split()[1]]
+ output.decode().splitlines() if
+ line.split()[0] == 'inet']
for address in all_ip_addresses:
ip_addr = address.split('/')[0]
if IPAddress(ip_addr) in IPNetwork(cidr):