aboutsummaryrefslogtreecommitdiffstats
path: root/config/jolt
diff options
context:
space:
mode:
authorNorm Traxler <normant@amdocs.com>2019-01-21 21:03:59 +0000
committerNorm Traxler <normant@amdocs.com>2019-01-22 14:23:19 +0000
commit5c07f0088fd71e30bfd8dc92b870f604b4297420 (patch)
tree8f4fca51f25c591888b6dad00c6b94ee0db6a1ce /config/jolt
parentcdad28821c2ac6834e284aae72f10ad2d0529147 (diff)
NetworkDiscCtxBuilder error handling
Issue-ID: LOG-938 Change-Id: I20e8592efe5f1ca8960f228041303c8d25628018 Signed-off-by: Norm Traxler <normant@amdocs.com>
Diffstat (limited to 'config/jolt')
-rw-r--r--config/jolt/sdToModelContextSpec.json31
-rw-r--r--config/jolt/sdToNdResourcesSpec.json43
2 files changed, 74 insertions, 0 deletions
diff --git a/config/jolt/sdToModelContextSpec.json b/config/jolt/sdToModelContextSpec.json
new file mode 100644
index 0000000..88201a7
--- /dev/null
+++ b/config/jolt/sdToModelContextSpec.json
@@ -0,0 +1,31 @@
+[
+ // Use https://jolt-demo.appspot.com/#inception to develop/test
+ // any changes to this file
+ {
+ // This section converts the updated json from service-decompostion
+ // to org.onap.pomba.common.datatypes.ModelContext
+ "operation": "shift",
+ "spec": {
+ "service-instance-id": "service.uuid",
+ "generic-vnfs": {
+ "*": {
+ "vservers": {
+ "*": {
+ "vserver-id": "vnfList[&3].vfModuleList[0].vmList[&1].uuid"
+ }
+ },
+ "l3-networks": {
+ "*": {
+ "network-id": "vnfList[&3].vfModuleList[0].networkList[&1].uuid"
+ }
+ },
+ "vnfcs": {
+ "*": {
+ "vnfc-id": "vnfList[&3].vnfcList[&1].uuid"
+ }
+ }
+ }
+ }
+ }
+ }
+ ]
diff --git a/config/jolt/sdToNdResourcesSpec.json b/config/jolt/sdToNdResourcesSpec.json
new file mode 100644
index 0000000..c7d7496
--- /dev/null
+++ b/config/jolt/sdToNdResourcesSpec.json
@@ -0,0 +1,43 @@
+[
+ // Use https://jolt-demo.appspot.com/#inception to develop/test
+ // any changes to this file
+ {
+ // This section converts the updated json from service-decomposition
+ // to org.onap.pomba.contextbuilder.networkdiscovery.model.NdResources
+ "operation": "shift",
+ "spec": {
+ "generic-vnfs": {
+ "*": {
+ "vservers": {
+ "*": {
+ "vserver-id": {
+ "@": "tempResourceId",
+ "#vserver": "tempResourceType"
+
+ }
+ }},
+ "l3-networks": {
+ "*": {
+ "network-id": {
+ "@": "tempResourceId",
+ "#l3-network": "tempResourceType"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ {
+ "operation": "shift",
+ "spec": {
+ "tempResourceType": {
+ "*": {
+ "@": "ndResources[&].resourceType",
+ "@(2,tempResourceId[&])": "ndResources[&].resourceId"
+ }
+ }
+ }
+ }
+
+]