aboutsummaryrefslogtreecommitdiffstats
path: root/config/networkdiscovery.spec
blob: 8da7a874a9523c5738b7497a1031ffddeee6c9a5 (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
66
67
[
  // Use https://jolt-demo.appspot.com/#inception to develop/test
  // any changes to this file

  {
    // This sections adds nfNamingCode and dataQuality to the json
    // fields returned from service-decomposition that we are
    // interested in
    "operation": "default",
    "spec": {
      "generic-vnfs[]": {
        "*": {
          "vf-modules": {
            "vf-module[]": {
              "*": {}
            }
          },
          "vservers[]": {
            "*": {
              "nfNamingCode": "vserver"
            }
          },
          "l3-networks[]": {
            "*": {
              "type": "l3-network"
            }
          },
          "vnfcList[]": {
            "*": {
              "type": "vnfc"
            }
          }
        }
      }
    }
  },
  {
    // This section converts the updated json from service-decompostion
    // to org.onap.pomba.common.datatypes.ModelContext
    "operation": "shift",
    "spec": {
      "service-instance-id": "service.uuid",
      "generic-vnfs": {
        "*": {
          "vservers": {
            "*": {
              "vserver-id": "vfList[&3].vfModuleList[0].vmList[&1].uuid",
              "nfNamingCode": "vfList[&3].vfModuleList[0].vmList[&1].nfNamingCode"
            }
          },
          "l3-networks": {
            "*": {
              "network-id": "vfList[&3].vfModuleList[0].networkList[&1].uuid",
              "type": "vfList[&3].vfModuleList[0].networkList[&1].type"
            },
            "vnfcs": {
              "*": {
                "vnfc-id": "vfList[&2].vnfcList[&1].uuid",
                "type": "vfList[&2].vfModuleList[0].type"
              }
            }
          }
        }
      }
    }
  }
  ]