@unittest.skip("Disabled: orphan subnets don't migrate because tenant is "
                   "specified in filter.")
    def test_subnets_exist_on_dst(self):
        tenants_subnets = []
        for tenant_name, tenant in self.deleted_tenants:
            all_subnets = self.dst_cloud.neutronclient.list_subnets()

            dst_admin_subnets = \
                [subnet for subnet in all_subnets['subnets'] if
                 subnet['tenant_id'] ==
                 self.dst_tenants[self.dst_cloud.tenant]]

            net_list = []

            for network in tenant['networks']:
                net_list.append(network['subnets'])
            src_tenant_subnets_list = sum(net_list, [])

            migrated_subnets = []
            for src_subnet in src_tenant_subnets_list:
                for dst_subnet in dst_admin_subnets:
                    if src_subnet['name'] == dst_subnet['name']:
                        migrated_subnets.append(src_subnet['name'])

            src_tenant_net_names = [subnet['name'] for
                                    subnet in src_tenant_subnets_list]

            non_migrated_subnets = set(
                src_tenant_net_names) ^ set(migrated_subnets)

            if non_migrated_subnets:
                tenants_subnets.append({tenant_name: non_migrated_subnets})

        if tenants_subnets:
            msg = 'Tenant\'s subnets do not exist on destination,' \
                  ' but should be!'
            self.fail(msg.format(tenants_subnets))
Validate deleted tenant's subnets were migrated.
dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry_devlab/cloudferry_devlab/tests/testcases/test_verify_dst_del_tenant_resources.py/VerifyDstDeletedTenantResources.test_subnets_exist_on_dst