def _get_ips_by_interface(self, context, net_id, vif_id, project_id,
                                                               ip_version):
        tenant_id = project_id or FLAGS.quantum_default_tenant_id
        ip_list = self.m_conn.get_allocated_ips(net_id, vif_id, tenant_id)
        return [ip['address'] for ip in ip_list
                if IPNetwork(ip['address']).version == ip_version]
Helper method to fetch v4 or v6 addresses for a particular
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/network/quantum/melange_ipam_lib.py/QuantumMelangeIPAMLib._get_ips_by_interface