'Returns a friendly name for host'

def get_name(self):

    if re_ip.search(self.name):
        if self.get('netbios-name'):
            return self.get('netbios-name').lower()
        elif self.get('host-fqdn'):
            return self.get('host-fqdn').lower()
        else:
            return self.name
    else:
        return self.name
