'Return dictionary containing information on system\'s nodes.'

def get_node_info(self):

    nodes = {}
    resp = self.ssh.lsnode()
    for node_data in resp:
        try:
            if (node_data['status'] != 'online'):
                continue
            node = {}
            node['id'] = node_data['id']
            node['name'] = node_data['name']
            node['IO_group'] = node_data['IO_group_id']
            node['iscsi_name'] = node_data['iscsi_name']
            node['WWNN'] = node_data['WWNN']
            node['status'] = node_data['status']
            node['WWPN'] = []
            node['ipv4'] = []
            node['ipv6'] = []
            node['enabled_protocols'] = []
            nodes[node['id']] = node
        except KeyError:
            self.handle_keyerror('lsnode', node_data)
    return nodes
