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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
[
// Use https://jolt-demo.appspot.com/#inception to develop/test
// any changes to this file
{
// This section converts the GENERIC-RESOURCES-API response from sdnc
// to org.onap.pomba.common.datatypes.ModelContext
"operation": "shift",
"spec": {
"service": {
"*": {
"service-data": {
"service-topology": {
"service-topology-identifier": {
"service-instance-id": "service.uuid",
"service-instance-name": "service.name"
},
"onap-model-information": {
"model-invariant-uuid": "service.invariantUUID"
}
},
"vnfs": {
"vnf": {
"*": {
"vnf-data": {
"vnf-topology": {
"onap-model-information": {
"model-uuid": "vfList[&4].uuid",
"model-invariant-uuid": "vfList[&4].invariantUUID"
},
"vnf-topology-identifier-structure": {
"vnf-type": "vfList[&4].type",
"vnf-name": "vfList[&4].name"
}
},
"vf-modules": {
"vf-module": {
"*": {
"vf-module-data": {
"vf-module-topology": {
"vf-module-topology-identifier": {
"vf-module-name": "vfList[&8].vfModuleList[&4].name"
},
"onap-model-information": {
"model-uuid": "vfList[&8].vfModuleList[&4].uuid",
"model-invariant-uuid": "vfList[&8].vfModuleList[&4].invariantUUID"
},
"vf-module-assignments": {
"vms": {
"vm": {
"*": {
"vm-names": {
"vm-name": {
"@(2,vm-type)": "vfList[&13].vfModuleList[&9].vmList[&3].nfNamingCode",
"*": "vfList[&13].vfModuleList[&9].vmList[&3].name"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
},
"networks": {
"network": {
"*": {
"network-data": {
"network-topology": {
"onap-model-information": {
"model-uuid": "vfList[0].vfModuleList[0].networkList[&4].uuid",
"model-invariant-uuid": "vfList[0].vfModuleList[0].networkList[&4].invariantUUID"
},
"network-topology-identifier-structure": {
"network-type": "vfList[0].vfModuleList[0].networkList[&4].type",
"network-name": "vfList[0].vfModuleList[0].networkList[&4].name"
}
}
}
}
}
}
}
}
}
}
}
]
|