Uploaded image for project: 'Common Controller SDK'
  1. Common Controller SDK
  2. CCSDK-1367

Enhance SDNC's ASDC data extraction solution to use get to getEntity TOSCA Parser API to populate VFC_MODEL, VNF_RELATED_NETWORK_ROLE and VFC_RELATED_NETWORK_ROLE

XMLWordPrintable

    • 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.

            lalena.aria lalena.aria
            lalena.aria lalena.aria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: