aboutsummaryrefslogtreecommitdiffstats
path: root/config/jolt/pserverToVmSpec.json
diff options
context:
space:
mode:
authorTait,Trevor(rt0435) <rtait@amdocs.com>2019-02-19 14:54:54 -0500
committerTait,Trevor(rt0435) <rtait@amdocs.com>2019-02-20 13:56:41 -0500
commita63304affd6cb323fedcf76c2961c9cb983a7597 (patch)
tree89821b037fcf9eb86480806c9b7824839befd775 /config/jolt/pserverToVmSpec.json
parent85dda672f8d9a3bed20ca36852fa6e94c378f5b4 (diff)
ND Context Builder Updates for port/p-interface
Issue-ID: LOG-977 Change-Id: I321036e0f51297092b9c88ff668c4e09c89b36a0 Signed-off-by: Tait,Trevor(rt0435) <rtait@amdocs.com>
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"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+]