Lines Matching refs:line
50 for line in out.splitlines():
51 line = line.strip()
56 if line.startswith("HBA Port WWN:"):
59 wwpn = line.split()[-1]
62 elif line.startswith("Port Mode:"):
63 mode = line.split()[-1]
67 elif line.startswith("State:"):
68 state = line.split()[-1]
71 elif line.startswith("Node WWN:"):
72 wwnn = line.split()[-1]
141 for line in [l.strip() for l in out.splitlines()]:
142 if line.startswith("OS Device Name:"):
143 host_device = line.split()[-1]
144 if line.startswith("Remote Port WWN:"):
145 remote_port = line.split()[-1]
146 if line.startswith("LUN:"):
147 lun = line.split()[-1]