summaryrefslogtreecommitdiffstats
path: root/ms/gra/gra-app/src/test/resources/preload1-rpc-vfmodule.json
blob: 12553b06cd0eb3e61b328c2fa7b46219042e88d6 (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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
{
  "input": {
    "preload-vf-module-topology-information": {
      "vf-module-topology": {
        "aic-clli": "AIC12345",
        "aic-cloud-region": "Cloud9",
        "cloud-owner": "aic",
        "onap-model-information": {
          "model-customization-uuid": "123123123",
          "model-invariant-uuid": "123123123",
          "model-name": "frankfurt",
          "model-uuid": "121212",
          "model-version": "frankfurt"
        },
        "sdnc-generated-cloud-resources": true,
        "tenant": "tenant",
        "vf-module-assignments": {
          "dhcp-subnet-assignments": {
            "dhcp-subnet-assignment": [
              {
                "ip-version": "ipv4",
                "network-role": "netrole",
                "neutron-subnet-id": "sub1"
              }
            ]
          },
          "vf-module-status": "Active",
          "vlan-vnfc-instance-groups": {
            "vlan-vnfc-instance-group": [
              {
                "instance-group-function": "function",
                "instance-group-id": "groupid",
                "vnf-id": "123",
                "vnfcs": {
                  "vnfc": [
                    {
                      "vnfc-name": "vnc1",
                      "vnic-groups": {
                        "vnic-group": [
                          {
                            "network-instance-group-function": "func1",
                            "vlan-assignment-policy-name": "policy1",
                            "vlan-common-ip-addresses": {
                              "ip-addresses": {
                                "ipv4-address": "10.1.2.1"
                              }
                            },
                            "vlan-tag-index-next": 0,
                            "vlan-vnics": {
                              "vlan-vnic": [
                                {
                                  "vnic-port-id": "8080",
                                  "vnic-sub-interfaces": {
                                    "sub-interface-network-data": [
                                      {
                                        "floating-ips": {
                                          "floating-ip-v4": [
                                            "10.1.2.1"
                                          ]
                                        },
                                        "network-id": "string",
                                        "network-information-items": {
                                          "network-information-item": [
                                            {
                                              "ip-count": 0,
                                              "ip-version": "ipv4",
                                              "network-ips": {
                                                "network-ip": [
                                                  "10.1.2.2"
                                                ]
                                              },
                                              "use-dhcp": "Y"
                                            }
                                          ]
                                        },
                                        "network-name": 0,
                                        "network-role": "role1",
                                        "network-role-tag": "tag1",
                                        "neutron-network-id": "net1",
                                        "vlan-tag-id": 0
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            "vnic-interface-role": "vnicrole1"
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            ]
          },
          "vms": {
            "vm": [
              {
                "nfc-naming-code": "name1",
                "onap-model-information": {
                  "model-customization-uuid": "456456456",
                  "model-invariant-uuid": "456456456",
                  "model-name": "model2",
                  "model-uuid": "678678678",
                  "model-version": "version2"
                },
                "vm-count": 0,
                "vm-names": {
                  "vm-name": [
                    "vm1"
                  ],
                  "vnfc-names": [
                    {
                      "vnfc-name": "vnc1",
                      "vnfc-networks": {
                        "vnfc-network-data": [
                          {
                            "connection-point": {
                              "connection-point-id": "conn1",
                              "port-id": "8181",
                              "vlan-data": [
                                {
                                  "vlan-role": "role2",
                                  "vlan-tag-description": "tag2",
                                  "vlan-tag-id": "1",
                                  "vlan-uuid": "78789789"
                                }
                              ]
                            },
                            "vnfc-network-role": "role3",
                            "vnfc-ports": {
                              "vnfc-port": [
                                {
                                  "common-sub-interface-role": "subrole1",
                                  "vnfc-port-id": "8787",
                                  "vnic-sub-interfaces": {
                                    "sub-interface-network-data": [
                                      {
                                        "floating-ips": {
                                          "floating-ip-v4": [
                                            "10.1.3.10"
                                          ]
                                        },
                                        "network-id": "net2",
                                        "network-information-items": {
                                          "network-information-item": [
                                            {
                                              "ip-count": 0,
                                              "ip-version": "ipv4",
                                              "network-ips": {
                                                "network-ip": [
                                                  "10.1.3.4"
                                                ]
                                              },
                                              "use-dhcp": "Y"
                                            }
                                          ]
                                        },
                                        "network-name": 0,
                                        "network-role": "netrole4",
                                        "network-role-tag": "tag5",
                                        "neutron-network-id": "nnet5",
                                        "vlan-tag-id": 0
                                      }
                                    ]
                                  }
                                }
                              ]
                            },
                            "vnfc-subnet": [
                              {
                                "vnfc-ip-assignments": [
                                  {
                                    "vnfc-address-family": "ipv4",
                                    "vnfc-subnet-dhcp": "Y",
                                    "vnfc-subnet-ip": [
                                      {
                                        "ip-type": "FIXED",
                                        "vnfc-client-key": "string",
                                        "vnfc-ip-address": "10.1.7.1"
                                      }
                                    ],
                                    "vnfc-subnet-ip-count": 0
                                  }
                                ],
                                "vnfc-subnet-role": "string"
                              }
                            ],
                            "vnfc-type": "string"
                          }
                        ]
                      }
                    }
                  ]
                },
                "vm-networks": {
                  "vm-network": [
                    {
                      "floating-ips": {
                        "floating-ip-v4": [
                          "10.1.9.1"
                        ]
                      },
                      "interface-route-prefixes": {
                        "interface-route-prefix": [
                          "10"
                        ]
                      },
                      "is-trunked": true,
                      "mac-addresses": {
                        "mac-address": [
                          "cafe:beef"
                        ]
                      },
                      "network-information-items": {
                        "network-information-item": [
                          {
                            "ip-count": 0,
                            "ip-version": "ipv4",
                            "network-ips": {
                              "network-ip": [
                                "10.2.3.10"
                              ]
                            },
                            "use-dhcp": "Y"
                          }
                        ]
                      },
                      "network-role": "netrole9",
                      "network-role-tag": "tag9",
                      "related-networks": {
                        "related-network": [
                          {
                            "network-id": "net9",
                            "network-role": "netrole9",
                            "vlan-tags": {
                              "is-private": true,
                              "lower-tag-id": 0,
                              "upper-tag-id": 0,
                              "vlan-interface": "vlan0"
                            }
                          }
                        ]
                      },
                      "segmentation-id": "seg1",
                      "sriov-parameters": {
                        "application-tags": {
                          "c-tags": {
                            "c-tag": [
                              "ctag1"
                            ]
                          },
                          "s-tags": {
                            "s-tag": [
                              "stag1"
                            ]
                          }
                        },
                        "heat-vlan-filters": {
                          "heat-vlan-filter": [
                            "10"
                          ]
                        }
                      }
                    }
                  ]
                },
                "vm-type": "vmtype1",
                "vm-type-tag": "vmtag1"
              }
            ]
          }
        },
        "vf-module-parameters": {
          "param": [
            {
              "name": "vfmodname",
              "resource-resolution-data": {
                "capability-name": "cap1",
                "payload": "payload1",
                "resource-key": [
                  {
                    "name": "key1",
                    "value": "value1"
                  }
                ],
                "status": "active"
              },
              "value": "value1"
            }
          ]
        },
        "vf-module-topology-identifier": {
          "vf-module-id": "vfmodule1",
          "vf-module-name": "vfmodule1",
          "vf-module-type": "router"
        }
      },
      "vnf-resource-assignments": {
        "availability-zones": {
          "availability-zone": [
            "zone1"
          ],
          "max-count": 0
        },
        "vnf-networks": {
          "vnf-network": [
            {
              "contrail-network-fqdn": "skynet.net",
              "is-trunked": true,
              "network-id": "net1",
              "network-name": "net1",
              "network-role": "netrole1",
              "neutron-id": "neutron1",
              "related-networks": {
                "related-network": [
                  {
                    "network-id": "net2",
                    "network-role": "netrole2",
                    "vlan-tags": {
                      "is-private": true,
                      "lower-tag-id": 0,
                      "upper-tag-id": 0,
                      "vlan-interface": "vlan2"
                    }
                  }
                ]
              },
              "segmentation-id": "seg2",
              "subnets-data": {
                "subnet-data": [
                  {
                    "cidr-mask": "255.255",
                    "dhcp-enabled": "Y",
                    "gateway-address": "10.1.2.254",
                    "ip-version": "ipv4",
                    "network-start-address": "10.1.2.1",
                    "sdnc-subnet-id": "sub1",
                    "subnet-id": "sub1",
                    "subnet-name": "sub1",
                    "subnet-role": "subrole1"
                  }
                ]
              }
            }
          ]
        },
        "vnf-status": "active"
      },
      "vnf-topology-identifier-structure": {
        "nf-code": "code1",
        "nf-function": "function1",
        "nf-role": "role1",
        "nf-type": "type1",
        "vnf-id": "preload1",
        "vnf-name": "vnf1",
        "vnf-type": "vnftype1"
      }
    },
    "request-information": {
      "notification-url": "http://dev.null",
      "order-number": "order123",
      "order-version": "1",
      "request-action": "CreateNetworkInstance",
      "request-id": "req001",
      "source": "curl"
    },
    "sdnc-request-header": {
      "svc-action": "reserve",
      "svc-notification-url": "http://dev.null",
      "svc-request-id": "svcreq001"
    }
  }
}