summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorTait,Trevor(rt0435) <rtait@amdocs.com>2018-11-04 16:30:21 -0500
committerTait,Trevor(rt0435) <rtait@amdocs.com>2018-11-04 16:30:44 -0500
commit3f5ba3e09c2056a83e7376c24b7c44ac3e6d32dd (patch)
tree3d2ca1183a550085f10b817d6d98834166972b45 /config
parent23b36e3c69f25d8322afb79d5e6bace519db7cd3 (diff)
Attributes for GENERIC-RESOURCE-API and VNF-API
Extract Attributes for GENERIC-RESOURCE-API and VNF-API Issue-ID: LOG-797 Change-Id: I6ae2727bd85069fc89d65c0083167ca69b343895 Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
Diffstat (limited to 'config')
-rw-r--r--config/sdncgenericresource.spec204
-rw-r--r--config/vnflist.spec38
2 files changed, 129 insertions, 113 deletions
diff --git a/config/sdncgenericresource.spec b/config/sdncgenericresource.spec
index 652afb9..a3883e4 100644
--- a/config/sdncgenericresource.spec
+++ b/config/sdncgenericresource.spec
@@ -1,94 +1,110 @@
-[
- // Use https://jolt-demo.appspot.com/#inception to develop/test
- // any changes to this file
-
- {
- // This section converts the GENERIC-RESOURCES-API response from sdnc
- // to org.onap.pomba.common.datatypes.ModelContext
- "operation": "shift",
- "spec": {
- "service": {
- "*": {
- "service-data": {
- "service-topology": {
- "service-topology-identifier": {
- "service-instance-id": "service.uuid",
- "service-instance-name": "service.name"
- },
- "onap-model-information": {
- "model-invariant-uuid": "service.invariantUUID"
- }
- },
- "vnfs": {
- "vnf": {
- "*": {
- "vnf-data": {
- "vnf-topology": {
- "onap-model-information": {
- "model-uuid": "vfList[&4].uuid",
- "model-invariant-uuid": "vfList[&4].invariantUUID"
- },
- "vnf-topology-identifier-structure": {
- "vnf-type": "vfList[&4].type",
- "vnf-name": "vfList[&4].name"
- }
- },
- "vf-modules": {
- "vf-module": {
- "*": {
- "vf-module-data": {
- "vf-module-topology": {
- "vf-module-topology-identifier": {
- "vf-module-name": "vfList[&8].vfModuleList[&4].name"
- },
- "onap-model-information": {
- "model-uuid": "vfList[&8].vfModuleList[&4].uuid",
- "model-invariant-uuid": "vfList[&8].vfModuleList[&4].invariantUUID"
- },
- "vf-module-assignments": {
- "vms": {
- "vm": {
- "*": {
- "vm-names": {
- "vm-name": {
- "@(2,vm-type)": "vfList[&13].vfModuleList[&9].vmList[&3].nfNamingCode",
- "*": "vfList[&13].vfModuleList[&9].vmList[&3].name"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- },
- "networks": {
- "network": {
- "*": {
- "network-data": {
- "network-topology": {
- "onap-model-information": {
- "model-uuid": "vfList[0].vfModuleList[0].networkList[&4].uuid",
- "model-invariant-uuid": "vfList[0].vfModuleList[0].networkList[&4].invariantUUID"
- },
- "network-topology-identifier-structure": {
- "network-type": "vfList[0].vfModuleList[0].networkList[&4].type",
- "network-name": "vfList[0].vfModuleList[0].networkList[&4].name"
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
- ]
+[
+ // Use https://jolt-demo.appspot.com/#inception to develop/test
+ // any changes to this file
+
+ {
+ // This section converts the GENERIC-RESOURCES-API response from sdnc
+ // to org.onap.pomba.common.datatypes.ModelContext
+ "operation": "shift",
+ "spec": {
+ "service": {
+ "*": {
+ "service-data": {
+ "service-topology": {
+ "service-topology-identifier": {
+ "service-instance-id": "service.uuid",
+ "service-instance-name": "service.name"
+ },
+ "onap-model-information": {
+ "model-invariant-uuid": "service.invariantUUID"
+ }
+ },
+ "vnfs": {
+ "vnf": {
+ "*": {
+ "vnf-data": {
+ "vnf-topology": {
+ "onap-model-information": {
+ "model-uuid": "vfList[&4].uuid",
+ "model-invariant-uuid": "vfList[&4].invariantUUID"
+ },
+ "vnf-topology-identifier-structure": {
+ "vnf-type": "vfList[&4].type",
+ "vnf-name": "vfList[&4].name"
+ }
+ },
+ "vf-modules": {
+ "vf-module": {
+ "*": {
+ "vf-module-data": {
+ "vf-module-topology": {
+ "vf-module-topology-identifier": {
+ "vf-module-name": "vfList[&8].vfModuleList[&4].name"
+ },
+ "onap-model-information": {
+ "model-uuid": "vfList[&8].vfModuleList[&4].uuid",
+ "model-invariant-uuid": "vfList[&8].vfModuleList[&4].invariantUUID"
+ },
+ "vf-module-assignments": {
+ "vms": {
+ "vm": {
+ "*": {
+ "vm-type": "vfList[&11].vfModuleList[&7].vmList[&1].nfNamingCode",
+ "vm-names": {
+ "vm-name": {
+ "*": "vfList[&13].vfModuleList[&9].vmList[&3].name"
+ }
+ },
+ "inMaint": {
+ "#lockedBoolean": "vfList[&12].vfModuleList[&8].vmList[&2].attributeList[0].name",
+ "@(1,inMaint)": "vfList[&12].vfModuleList[&8].vmList[&2].attributeList[0].value"
+ },
+ "prov-status": {
+ "#provStatus": "vfList[&12].vfModuleList[&8].vmList[&2].attributeList[1].name",
+ "@(1,prov-status)": "vfList[&12].vfModuleList[&8].vmList[&2].attributeList[1].value"
+ },
+ "pserver": {
+ "#hostName": "vfList[&12].vfModuleList[&8].vmList[&2].attributeList[2].name",
+ "hostname": "vfList[&12].vfModuleList[&8].vmList[&2].attributeList[2].value"
+ },
+ "image": {
+ "#imageId": "vfList[&12].vfModuleList[&8].vmList[&2].attributeList[3].name",
+ "image-name": "vfList[&12].vfModuleList[&8].vmList[&2].attributeList[3].value"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "networks": {
+ "network": {
+ "*": {
+ "network-data": {
+ "network-topology": {
+ "onap-model-information": {
+ "model-uuid": "vfList[0].vfModuleList[0].networkList[&4].uuid",
+ "model-invariant-uuid": "vfList[0].vfModuleList[0].networkList[&4].invariantUUID"
+ },
+ "network-topology-identifier-structure": {
+ "network-type": "vfList[0].vfModuleList[0].networkList[&4].type",
+ "network-name": "vfList[0].vfModuleList[0].networkList[&4].name"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ ]
diff --git a/config/vnflist.spec b/config/vnflist.spec
index 49c2434..ae55a5f 100644
--- a/config/vnflist.spec
+++ b/config/vnflist.spec
@@ -1,19 +1,19 @@
-[
- // Use https://jolt-demo.appspot.com/#inception to develop/test
- // any changes to this file
-
- {
- // This section converts aai response for GET VNF-API from SDNC
- // to org.onap.pomba.common.datatypes.VF
- "operation": "shift",
- "spec": {
- "vnfs": {
- "vnf-list": {
- "*": {
- "*": "vnf-list[&1].&"
- }
- }
- }
- }
- }
- ]
+[
+ // Use https://jolt-demo.appspot.com/#inception to develop/test
+ // any changes to this file
+
+ {
+ // This section converts aai response for GET VNF-API from SDNC
+ // to org.onap.pomba.common.datatypes.VF
+ "operation": "shift",
+ "spec": {
+ "vnfs": {
+ "vnf-list": {
+ "*": {
+ "*": "vnf-list[&1].&"
+ }
+ }
+ }
+ }
+ }
+ ]