

def _parse_arp_table(self, arp_output):
    '\n        Parse arp command output and return a dictionary which maps mac address\n        to an IP address.\n\n        :return: Dictionary which maps mac address to IP address.\n        :rtype: ``dict``\n        '
    lines = arp_output.split('\n')
    arp_table = defaultdict(list)
    for line in lines:
        match = re.match('.*?\\((.*?)\\) at (.*?)\\s+', line)
        if (not match):
            continue
        groups = match.groups()
        ip_address = match[0]
        mac_address = groups[1]
        arp_table[mac_address].append(ip_address)
    return arp_table

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/libvirt_driver.py LibvirtNodeDriver._parse_arp_table/VarMisuse@69/170 `groups`->`match`