def METHOD_NAME(self):
    results = {}
    results['inventory_hostname'] = self.name
    if patterns['ipv4'].match(self.name) or patterns['ipv6'].match(self.name):
        results['inventory_hostname_short'] = self.name
    else:
        results['inventory_hostname_short'] = self.name.split('.')[0]
    results['group_names'] = sorted([g.name for g in self.get_groups() if g.name != 'all'])
    return results