'Return a list of IPs for host'

def get_ips(self, exclude_local=True):

    ip_list = set()
    if re_ip.search(self.name):
        ip_list.add(self.name)
    if self.get('host-ip'):
        ip_list.add(self.get('host-ip'))
    if self.get('ips'):
        ip_list.update(self.ips)
    if exclude_local:
        for i in LOCAL_IP_LIST:
            if (i in ip_list):
                ip_list.remove(i)
    return list(ip_list)
