Details
-
Sub-task
-
Status: Closed
-
Medium
-
Resolution: Done
-
None
-
None
-
Dublin SO Sprint 2
Description
Support the PNF Model ingestion using the getEnitity API from the SDC Parser library.
This is the query:
EntityQuery entityQuery = EntityQuery.newBuilder(SdcTypes.PNF)
.build();
TopologyTemplateQuery topologyTemplateQuery = TopologyTemplateQuery.newBuilder(SdcTypes.SERVICE)
.build();
List<IEntityDetails> pnfs = sdcCsarHelper.getEntity(entityQuery, topologyTemplateQuery, false);
//you should check that the list is not empty first
Map<String, RequirementAssignment> reqs = pnfs.get(0).getRequirements();
Map<String, String> meta = pnfs.get(0).getMetadata().getAllProperties();