aboutsummaryrefslogtreecommitdiffstats
path: root/config/jolt/sdToNdResourcesSpec.json
blob: bce2d68fe0a6dba35caf6eee57d2f03d0d81c7d8 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[
  // 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": {
       "l3-networks": {
         "*": {
          "network-id": {
            "@": "tempResourceId",
            "#l3-network": "tempResourceType"
          }
        }
      },
      "generic-vnfs": {
        "*": {
          "vservers": {
            "*": {
              "vserver-id":  {
                   "@": "tempResourceId",
                   "#vserver": "tempResourceType"
                    
              }
              }},
          "vf-modules": {
            "vf-module": {
              "*": {
                "l3-networks":  {
                  "*": {
                    "network-id": {
                    "@": "tempResourceId",
                    "#l3-network": "tempResourceType"
                    }
                  }
                }
              }
            }
          },
          "l3-networks": {
            "*": {
              "network-id": {
                 "@": "tempResourceId",
                 "#l3-network": "tempResourceType"
              }
            }
          } 
        }
      }
    }
  },
  {
    "operation": "shift",
    "spec": {
      "tempResourceType": {
        "*": {
          "@": "ndResources[&].resourceType",
          "@(2,tempResourceId[&])": "ndResources[&].resourceId"
        }
      }
    }
  }
  
]