summaryrefslogtreecommitdiffstats
path: root/config/jolt/pserverToVmSpec.json
diff options
context:
space:
mode:
Diffstat (limited to 'config/jolt/pserverToVmSpec.json')
-rw-r--r--config/jolt/pserverToVmSpec.json47
1 files changed, 47 insertions, 0 deletions
diff --git a/config/jolt/pserverToVmSpec.json b/config/jolt/pserverToVmSpec.json
new file mode 100644
index 0000000..28896ed
--- /dev/null
+++ b/config/jolt/pserverToVmSpec.json
@@ -0,0 +1,47 @@
+[
+ // Use https://jolt-demo.appspot.com/#inception to develop/test
+ // any changes to this file
+ {
+ // This section extracts pservers from generic-vnf from service-decompostion
+ // and maps them to their associated vservers (VM)
+ // to org.onap.pomba.common.datatypes.ModelContext
+ "operation": "shift",
+ "spec": {
+ "generic-vnfs": {
+ "*": {
+ "pservers": {
+ "*": {
+ "pserver-id": "pServer[&1].uuid",
+ "p-interfaces": {
+ "p-interface": {
+ "*": {
+ "equipment-identifier": "pServer[&4].pInterfaceList[&1].uuid"
+ }
+ }
+ },
+ "relationship-list": {
+ "relationship": {
+ "*": {
+ "related-to": {
+ "vserver": {
+ "@(2,relationship-data)": {
+ "*": {
+ "relationship-key": {
+ "vserver.vserver-id": {
+ "@(2,relationship-value)": "pServer[&10].vserver-id"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+]