summaryrefslogtreecommitdiffstats
path: root/config/jolt/sdToNdResourcesSpec.json
blob: c7d749664237aadd99392d2731f31fc4780e308c (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
[
  // 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"
        }
      }
    }
  }
  
]