-
Task
-
Resolution: Done
-
Medium
-
None
-
El Alto Sprint 1
Currently, SdncVFModel.insertVFCData uses deprecated ASDC TOSCA Parser API getVfcListByVf. We think this can be replaced by the following usage of getEntity:
// For each VF, insert VFC_MODEL // Step 1: Get any nested CVFCs under this VF String vfCustomizationUid = customizationUUID; EntityQuery entityQuery = EntityQuery.newBuilder(SdcTypes.CVFC) .build(); TopologyTemplateQuery topologyTemplateQuery = TopologyTemplateQuery.newBuilder(SdcTypes.VF) .customizationUUID(vfCustomizationUid) // customization UUID of the VF if exists .build(); List<IEntityDetails> nestedCvfcs = sdcCsarHelper.getEntity(entityQuery, topologyTemplateQuery, true); // true allows for nested search if (nestedCvfcs == null || nestedCvfcs.isEmpty()) { LOG.info("insertVFCDataEntity: Could not find the nested CVFCs for: " + vfCustomizationUid); }
While working on the migration of VFC-related ingestion to getEntity, I found that I needed to migrate SdncARModel also since it creates a SdncVFCModel object.