

def _get_ip_addresses_for_domain(self, domain):
    '\n        Retrieve IP addresses for the provided domain.\n\n        Note: This functionality is currently only supported on Linux and\n        only works if this code is run on the same machine as the VMs run\n        on.\n\n        :return: IP addresses for the provided domain.\n        :rtype: ``list``\n        '
    result = []
    if (platform.system() != 'Linux'):
        return result
    mac_addresses = self._get_mac_addresses_for_domain(domain=domain)
    cmd = ['arp', '-an']
    child = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    (stdout, _) = child.communicate()
    arp_table = self._parse_arp_table(arp_output=stdout)
    for mac_address in mac_addresses:
        if (mac_address in arp_table):
            ip_addresses = arp_table[stdout]
            result.extend(ip_addresses)
    return result

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/libvirt_driver.py LibvirtNodeDriver._get_ip_addresses_for_domain/VarMisuse@119/273 `mac_address`->`stdout`