aboutsummaryrefslogtreecommitdiffstats
path: root/config/jolt/sdToModelContextSpec.json
blob: 77a71f1bebe5c977086f6e115150dd152b2eb847 (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 converts the updated json from service-decompostion
    // to org.onap.pomba.common.datatypes.ModelContext
    "operation": "shift",
    "spec": {
      "service-instance-id": "service.uuid",
      "l3-networks": {
        "*": {
          "network-id": "networkList[&1].uuid"
        }
      },
      "generic-vnfs": {
         "*": {
          "vservers": {
            "*": {
              "vserver-id": "vnfList[&3].vfModuleList[0].vmList[&1].uuid"            
            }
          },
          "l3-networks": {
            "*": {
              "network-id": "vnfList[&3].networkList[&1].uuid"
            }
          },
          "vf-modules": {
             "vf-module": {
               "*": {
                 "l3-networks" : {
                   "*": {
                     "network-id": "vnfList[&6].vfModuleList[0].networkList[&1].uuid"
                   }              
                }
               }
             }
          },
          "vnfcs": {
            "*": {
              "vnfc-id": "vnfList[&3].vnfcList[&1].uuid"
            }
          }
        }
      }
    }
  }
]