'Add iSCSI IP addresses to system node information.'

def add_iscsi_ip_addrs(self, storage_nodes):

    resp = self.ssh.lsportip()
    for ip_data in resp:
        try:
            state = ip_data['state']
            if ((ip_data['node_id'] in storage_nodes) and ((state == 'configured') or (state == 'online'))):
                node = storage_nodes[ip_data['node_id']]
                if len(ip_data['IP_address']):
                    node['ipv4'].append(ip_data['IP_address'])
                if len(ip_data['IP_address_6']):
                    node['ipv6'].append(ip_data['IP_address_6'])
        except KeyError:
            self.handle_keyerror('lsportip', ip_data)
