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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
[
// 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": {
"dataQuality": {
"status": "ok"
},
"generic-vnfs[]": {
"*": {
"dataQuality": {
"status": "ok"
},
"nfNamingCode": "vf",
"vf-modules": {
"vf-module[]": {
"*": {
"dataQuality": {
"status": "ok"
},
"nfNamingCode": "vfModule"
}
}
},
"vservers[]": {
"*": {
"dataQuality": {
"status": "ok"
},
"nfNamingCode": "vserver"
}
},
"l3-networks[]": {
"*": {
"dataQuality": {
"status": "ok"
},
"nfNamingCode": "l3-network"
}
},
"vnfcList[]": {
"*": {
"dataQuality": {
"status": "ok"
},
"nfNamingCode": "vnfc"
}
}
}
}
}
},
{
// This section converts the updated json from service-decompostion
// to org.onap.pomba.common.datatypes.ModelContext
"operation": "shift",
"spec": {
"dataQuality": {
"status": "dataQuality.status"
},
"service-instance-name": "service.name",
"model-invariant-id": "service.invariantUUID",
"service-instance-id": "service.uuid",
"generic-vnfs": {
"*": {
"vnf-name": "vfList[&1].name",
"model-invariant-id": "vfList[&1].invariantUUID",
"vnf-id": "vfList[&1].uuid",
"nfNamingCode": "vfList[&1].nfNamingCode",
"dataQuality": {
"status": "vfList[&2].dataQuality.status"
},
"vf-modules": {
"vf-module": {
"*": {
"vf-module-name": "vfList[&4].vfModuleList[0].name",
"model-invariant-id": "vfList[&4].vfModuleList[0].invariantUUID",
"vf-module-id": "vfList[&4].vfModuleList[0].uuid",
"nfNamingCode": "vfList[&4].vfModuleList[0].nfNamingCode",
"dataQuality": {
"status": "vfList[&5].vfModuleList[0].dataQuality.status"
}
}
}
},
"vservers": {
"*": {
"vserver-name": "vfList[&3].vfModuleList[0].vmList[&1].name",
"model-invariant-id": "vfList[&3].vfModuleList[0].vmList[&1].invariantUUID",
"vserver-id": "vfList[&3].vfModuleList[0].vmList[&1].uuid",
"nfNamingCode": "vfList[&3].vfModuleList[0].vmList[&1].nfNamingCode",
"dataQuality": {
"status": "vfList[&4].vfModuleList[0].vmList[&2].dataQuality.status"
}
}
},
"l3-networks": {
"*": {
"network-name": "vfList[&3].vfModuleList[0].networkList[&1].name",
"model-invariant-id": "vfList[&3].vfModuleList[0].networkList[&1].invariantUUID",
"network-id": "vfList[&3].vfModuleList[0].networkList[&1].uuid",
"nfNamingCode": "vfList[&3].vfModuleList[0].networkList[&1].nfNamingCode",
"dataQuality": {
"status": "vfList[&4].vfModuleList[0].networkList[&2].dataQuality.status"
}
},
"vnfcs": {
"*": {
"vnfc-name": "vfList[&2].vnfcList[&1].name",
"model-invariant-id": "vfList[&2].vnfcList[&1].invariantUUID",
"vnfc-id": "vfList[&2].vnfcList[&1].uuid",
"nfNamingCode": "vfList[&2].vfModuleList[0].nfNamingCode",
"dataQuality": {
"status": "vfList[&3].vfModuleList[0].dataQuality.status"
}
}
}
}
}
}
}
},
{
"operation": "default",
"spec": {
"service": {
"dataQuality": {
"status": "ok"
}
}
}
}
]
|