def build(self, interfaces):
        networks = {}
        for interface in interfaces:
            try:
                network_label = self._extract_network_label(interface)
            except __HOLE__:
                continue

            if network_label not in networks:
                networks[network_label] = []

            ip_addresses = list(self._extract_ipv4_addresses(interface))

            if FLAGS.use_ipv6:
                ipv6_address = self._extract_ipv6_address(interface)
                if ipv6_address is not None:
                    ip_addresses.append(ipv6_address)

            networks[network_label].extend(ip_addresses)

        return networks
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/views/addresses.py/ViewBuilderV11.build