def iscsi_get_nodes():
 cmd = 'iscsiadm --mode node'
 output = utils.system_output(cmd)
 pattern = '(\\d+\\.\\d+\\.\\d+\\.\\d+|\\W:{2}\\d\\W):\\d+,\\d+\\s+([\\w\\.\\-:\\d]+)'
 nodes = []
 if ('No records found' not in output):
  nodes = re.findall(pattern, output)
 return nodes

def iscsi_get_nodes ( ) : cmd = 'iscsiadm --mode node' output = utils . system_output ( cmd ) pattern = '(\\d+\\.\\d+\\.\\d+\\.\\d+|\\W:{2}\\d\\W):\\d+,\\d+\\s+([\\w\\.\\-:\\d]+)' nodes = [ ] if ( 'No records found' not in output ) : nodes = re . findall ( pattern , output ) return nodes
get the iscsi nodes .