aboutsummaryrefslogtreecommitdiffstats
path: root/config/jolt/pserverToVmSpec.json
blob: 28896ed75516bd9dd7495a4d36fe384ff2fd84c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
]