def METHOD_NAME(self, output):
    hosts = self.split_output_lines(output)
    for host_data in hosts:
        if len(host_data) == 2:
            ip = self.clean_ip(host_data[1])
            hostname = host_data[0]
            self.add_host_info_to_items(ip, hostname)
        elif len(host_data) > 2:
            hostname = host_data.pop(0)
            for ip_address in host_data:
                ip = self.clean_ip(ip_address)
                self.add_host_info_to_items(ip, hostname)