Merge "workflow parameters API"
[vid.git] / vid-webpack-master / src / app / drawingBoard / service-planning / objectsToTree / objectToModelTree / objectToModelTree.service.spec.ts
1 import {HttpClientTestingModule, HttpTestingController} from "@angular/common/http/testing";
2 import {getTestBed, TestBed} from "@angular/core/testing";
3 import {MockNgRedux, NgReduxTestingModule} from "@angular-redux/store/testing";
4 import {NgRedux} from "@angular-redux/store";
5 import {ObjectToTreeService} from "../objectToTree.service";
6 import {ObjectToModelTreeService} from "./objectToModelTree.service";
7 import {DefaultDataGeneratorService} from "../../../../shared/services/defaultDataServiceGenerator/default.data.generator.service";
8 import {DynamicInputsService} from "../dynamicInputs.service";
9 import {SharedTreeService} from "../shared.tree.service";
10 import {DrawingBoardModes} from "../../drawing-board.modes";
11 import {AvailableModelsTreeService} from "../../available-models-tree/available-models-tree.service";
12 import {DialogService} from "ng2-bootstrap-modal";
13 import {VnfPopupService} from "../../../../shared/components/genericFormPopup/genericFormServices/vnf/vnf.popup.service";
14 import {BasicControlGenerator} from "../../../../shared/components/genericForm/formControlsServices/basic.control.generator";
15 import {GenericFormService} from "../../../../shared/components/genericForm/generic-form.service";
16 import {FormBuilder} from "@angular/forms";
17 import {LogService} from "../../../../shared/utils/log/log.service";
18 import {IframeService} from "../../../../shared/utils/iframe.service";
19 import {BasicPopupService} from "../../../../shared/components/genericFormPopup/genericFormServices/basic.popup.service";
20 import {NetworkPopupService} from "../../../../shared/components/genericFormPopup/genericFormServices/network/network.popup.service";
21 import {NetworkControlGenerator} from "../../../../shared/components/genericForm/formControlsServices/networkGenerator/network.control.generator";
22 import {VfModulePopuopService} from "../../../../shared/components/genericFormPopup/genericFormServices/vfModule/vfModule.popuop.service";
23 import {VfModuleControlGenerator} from "../../../../shared/components/genericForm/formControlsServices/vfModuleGenerator/vfModule.control.generator";
24 import {FeatureFlagsService} from "../../../../shared/services/featureFlag/feature-flags.service";
25 import {VnfControlGenerator} from "../../../../shared/components/genericForm/formControlsServices/vnfGenerator/vnf.control.generator";
26 import {AaiService} from "../../../../shared/services/aaiService/aai.service";
27 import {VnfGroupPopupService} from "../../../../shared/components/genericFormPopup/genericFormServices/vnfGroup/vnfGroup.popup.service";
28 import {VnfGroupControlGenerator} from "../../../../shared/components/genericForm/formControlsServices/vnfGroupGenerator/vnfGroup.control.generator";
29 import {DuplicateService} from "../../duplicate/duplicate.service";
30 import {SdcUiComponentsModule} from "onap-ui-angular";
31 import {ComponentInfoService} from "../../component-info/component-info.service";
32
33 class MockAppStore<T> {
34   getState() {
35     return {
36       global: {
37         'drawingBoardStatus': DrawingBoardModes.CREATE
38       }
39     }
40   }
41 }
42
43 describe('Model Tree Generator service', () => {
44   let injector;
45   let service: ObjectToModelTreeService;
46   let httpMock: HttpTestingController;
47
48   beforeEach(() => {
49
50     TestBed.configureTestingModule({
51       imports: [HttpClientTestingModule, NgReduxTestingModule, SdcUiComponentsModule],
52       providers: [
53         AvailableModelsTreeService,
54         ObjectToTreeService,
55         ObjectToModelTreeService,
56         DefaultDataGeneratorService,
57         DynamicInputsService,
58         SharedTreeService,
59         DialogService,
60         VnfPopupService,
61         VnfGroupPopupService,
62         BasicControlGenerator,
63         GenericFormService,
64         FormBuilder,
65         LogService,
66         IframeService,
67         BasicPopupService,
68         NetworkPopupService,
69         NetworkControlGenerator,
70         VfModulePopuopService,
71         VfModuleControlGenerator,
72         VnfGroupControlGenerator,
73         DialogService,
74         FeatureFlagsService,
75         VnfControlGenerator,
76         AaiService,
77         DialogService,
78         DuplicateService,
79         ComponentInfoService,
80         {provide: NgRedux, useClass: MockAppStore},
81         MockNgRedux]
82     }).compileComponents();
83
84     injector = getTestBed();
85     service = injector.get(ObjectToModelTreeService);
86     httpMock = injector.get(HttpTestingController);
87   });
88
89   test('ObjectToModelTreeService should be defined', () => {
90     expect(service).toBeDefined();
91   });
92
93   test('should return nodes correctly: VNF', () => {
94
95     let convertToNodes = service.convertServiceHierarchyModelToTreeNodes(getServiceHeirarchyVNF());
96     convertToNodes.map((item) => {
97       delete item['onAddClick'];
98       delete item['getNodeCount'];
99       delete item['showNodeIcons'];
100       delete item['menuActions'];
101       delete item['getMenuAction'];
102       delete item['trackById'];
103
104       if (item.children) {
105         item.children.map((child) => {
106           delete child['onAddClick'];
107           delete child['getNodeCount'];
108           delete child['showNodeIcons'];
109           delete child['menuActions'];
110           delete child['getMenuAction'];
111           delete child['trackById'];
112         });
113       }
114     });
115
116     expect(Object.assign({}, convertToNodes)).toEqual(Object.assign({}, expectNodesResultVNF()));
117   });
118
119
120   function expectNodesResultVNF() {
121     return [{
122       "id": "280dec31-f16d-488b-9668-4aae55d6648a",
123       "modelVersionId": "0903e1c0-8e03-4936-b5c2-260653b96413",
124       "name": "2017-388_ADIOD-vPE 1",
125       "tooltip": "VF",
126       "type": "VF",
127       "count": 0,
128       "max": 1,
129       "children": [],
130       "disabled": false,
131       "modelCustomizationId": "280dec31-f16d-488b-9668-4aae55d6648a",
132       "modelUniqueId": "280dec31-f16d-488b-9668-4aae55d6648a",
133       "dynamicInputs": [],
134       "isEcompGeneratedNaming": true,
135       "typeName": 'VNF'
136     }, {
137       "id": "b3c76f73-eeb5-4fb6-9d31-72a889f1811c",
138       "modelVersionId": "afacccf6-397d-45d6-b5ae-94c39734b168",
139       "modelCustomizationId": "b3c76f73-eeb5-4fb6-9d31-72a889f1811c",
140       "modelUniqueId": "b3c76f73-eeb5-4fb6-9d31-72a889f1811c",
141       "name": "2017-388_ADIOD-vPE 0",
142       "tooltip": "VF",
143       "type": "VF",
144       "count": 0,
145       "max": 1,
146       "children": [],
147       "disabled": false,
148       "dynamicInputs": [],
149       "isEcompGeneratedNaming": true,
150       "typeName": 'VNF'
151     }, {
152       "id": "1da7b585-5e61-4993-b95e-8e6606c81e45",
153       "modelVersionId": "69e09f68-8b63-4cc9-b9ff-860960b5db09",
154       "modelCustomizationId": "1da7b585-5e61-4993-b95e-8e6606c81e45",
155       "modelUniqueId": "1da7b585-5e61-4993-b95e-8e6606c81e45",
156       "name": "2017-488_ADIOD-vPE 0",
157       "tooltip": "VF",
158       "type": "VF",
159       "count": 0,
160       "max": 1,
161       "children": [{
162         "id": "f7e7c365-60cf-49a9-9ebf-a1aa11b9d401",
163         "modelVersionId": "25284168-24bb-4698-8cb4-3f509146eca5",
164         "modelCustomizationId": "f7e7c365-60cf-49a9-9ebf-a1aa11b9d401",
165         "modelUniqueId": "f7e7c365-60cf-49a9-9ebf-a1aa11b9d401",
166         "name": "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vRE_BV..module-1",
167         "tooltip": "VFmodule",
168         "type": "VFmodule",
169         "count": 0,
170         "max": 1,
171         "children": [],
172         "disabled": false,
173         "dynamicInputs": [],
174         "isEcompGeneratedNaming": true,
175         "typeName": 'M'
176       }, {
177         "id": "a55961b2-2065-4ab0-a5b7-2fcee1c227e3",
178         "modelVersionId": "f8360508-3f17-4414-a2ed-6bc71161e8db",
179         "modelCustomizationId": "a55961b2-2065-4ab0-a5b7-2fcee1c227e3",
180         "modelUniqueId": "a55961b2-2065-4ab0-a5b7-2fcee1c227e3",
181         "name": "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_base_vPE_BV..module-0",
182         "tooltip": "VFmodule",
183         "type": "VFmodule",
184         "count": 0,
185         "max": 1,
186         "children": [],
187         "disabled": false,
188         "dynamicInputs": [],
189         "isEcompGeneratedNaming": true,
190         "typeName": 'M'
191       }, {
192         "id": "3cd946bb-50e0-40d8-96d3-c9023520b557",
193         "modelVersionId": "0a0dd9d4-31d3-4c3a-ae89-a02f383e6a9a",
194         "modelCustomizationId": "3cd946bb-50e0-40d8-96d3-c9023520b557",
195         "modelUniqueId": "3cd946bb-50e0-40d8-96d3-c9023520b557",
196         "name": "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vPFE_BV..module-2",
197         "tooltip": "VFmodule",
198         "type": "VFmodule",
199         "count": 0,
200         "max": 1,
201         "children": [],
202         "disabled": false,
203         "dynamicInputs": [],
204         "isEcompGeneratedNaming": true,
205         "typeName": 'M'
206       }],
207       "disabled": false,
208       "dynamicInputs": [],
209       "isEcompGeneratedNaming": true,
210       "typeName": 'VNF'
211     }]
212
213   }
214
215   function getServiceHeirarchyVNF() {
216     return {
217       "service": {
218         "uuid": "1a80c596-27e5-4ca9-b5bb-e03a7fd4c0fd",
219         "invariantUuid": "cdb90b57-ed78-4d44-a5b4-7f43a02ec632",
220         "name": "action-data",
221         "version": "1.0",
222         "toscaModelURL": null,
223         "category": "Network L1-3",
224         "serviceType": "pnf",
225         "serviceRole": "Testing",
226         "description": "ADIOD vMX vPE based on Juniper 17.2 release. Updated with updated VF for v8.0 of VLM",
227         "serviceEcompNaming": "false",
228         "instantiationType": "Macro",
229         "inputs": {},
230         "vidNotions": {"instantiationUI": "legacy", "modelCategory": "other"}
231       },
232       "vnfs": {
233         "2017-388_ADIOD-vPE 1": {
234           "uuid": "0903e1c0-8e03-4936-b5c2-260653b96413",
235           "invariantUuid": "00beb8f9-6d39-452f-816d-c709b9cbb87d",
236           "description": "Name ADIOD vPE Description The provider edge function for the ADIOD service supported by the Junipers VMX product Category Router Vendor Juniper Vendor Release Code 17.2 Owners Mary Fragale. Updated 9-25 to use v8.0 of the Juniper Valid 2 VLM",
237           "name": "2017-388_ADIOD-vPE",
238           "version": "1.0",
239           "customizationUuid": "280dec31-f16d-488b-9668-4aae55d6648a",
240           "inputs": {},
241           "commands": {},
242           "properties": {
243             "vmxvre_retype": "RE-VMX",
244             "vnf_config_template_version": "get_input:2017488_adiodvpe0_vnf_config_template_version",
245             "sriov44_net_id": "48d399b3-11ee-48a8-94d2-f0ea94d6be8d",
246             "int_ctl_net_id": "2f323477-6936-4d01-ac53-d849430281d9",
247             "vmxvpfe_sriov41_0_port_mac": "00:11:22:EF:AC:DF",
248             "int_ctl_net_name": "VMX-INTXI",
249             "vmx_int_ctl_prefix": "10.0.0.10",
250             "sriov43_net_id": "da349ca1-6de9-4548-be88-2d88e99bfef5",
251             "sriov42_net_id": "760669ba-013d-4d9b-b0e7-4151fe2e6279",
252             "sriov41_net_id": "25ad52d5-c165-40f8-b3b0-ddfc2373280a",
253             "nf_type": "vPE",
254             "vmxvpfe_int_ctl_ip_1": "10.0.0.10",
255             "is_AVPN_service": "false",
256             "vmx_RSG_name": "vREXI-affinity",
257             "vmx_int_ctl_forwarding": "l2",
258             "vmxvre_oam_ip_0": "10.0.0.10",
259             "vmxvpfe_sriov44_0_port_mac": "00:11:22:EF:AC:DF",
260             "vmxvpfe_sriov41_0_port_vlanstrip": "false",
261             "vmxvpfe_sriov42_0_port_vlanfilter": "4001",
262             "vmxvpfe_sriov44_0_port_unknownunicastallow": "true",
263             "vmxvre_image_name_0": "VRE-ENGINE_17.2-S2.1.qcow2",
264             "vmxvre_instance": "0",
265             "vmxvpfe_sriov43_0_port_mac": "00:11:22:EF:AC:DF",
266             "vmxvre_flavor_name": "ns.c1r16d32.v5",
267             "vmxvpfe_volume_size_0": "40.0",
268             "vmxvpfe_sriov43_0_port_vlanfilter": "4001",
269             "nf_naming": "{ecomp_generated_naming=true}",
270             "multi_stage_design": "true",
271             "nf_naming_code": "Navneet",
272             "vmxvre_name_0": "vREXI",
273             "vmxvpfe_sriov42_0_port_vlanstrip": "false",
274             "vmxvpfe_volume_name_0": "vPFEXI_FBVolume",
275             "vmx_RSG_id": "bd89a33c-13c3-4a04-8fde-1a57eb123141",
276             "vmxvpfe_image_name_0": "VPE_ROUTING-ENGINE_17.2R1-S2.1.qcow2",
277             "vmxvpfe_sriov43_0_port_unknownunicastallow": "true",
278             "vmxvpfe_sriov44_0_port_unknownmulticastallow": "true",
279             "vmxvre_console": "vidconsole",
280             "vmxvpfe_sriov44_0_port_vlanfilter": "4001",
281             "vmxvpfe_sriov42_0_port_mac": "00:11:22:EF:AC:DF",
282             "vmxvpfe_volume_id_0": "47cede15-da2f-4397-a101-aa683220aff3",
283             "vmxvpfe_sriov42_0_port_unknownmulticastallow": "true",
284             "vmxvpfe_sriov44_0_port_vlanstrip": "false",
285             "vf_module_id": "123",
286             "nf_function": "JAI",
287             "vmxvpfe_sriov43_0_port_unknownmulticastallow": "true",
288             "vmxvre_int_ctl_ip_0": "10.0.0.10",
289             "ecomp_generated_naming": "true",
290             "AIC_CLLI": "get_input:2017488_adiodvpe0_AIC_CLLI",
291             "vnf_name": "mtnj309me6vre",
292             "vmxvpfe_sriov41_0_port_unknownunicastallow": "true",
293             "vmxvre_volume_type_1": "HITACHI",
294             "vmxvpfe_sriov44_0_port_broadcastallow": "true",
295             "vmxvre_volume_type_0": "HITACHI",
296             "vmxvpfe_volume_type_0": "HITACHI",
297             "vmxvpfe_sriov43_0_port_broadcastallow": "true",
298             "bandwidth_units": "get_input:2017488_adiodvpe0_bandwidth_units",
299             "vnf_id": "123",
300             "vmxvre_oam_prefix": "24",
301             "availability_zone_0": "mtpocfo-kvm-az01",
302             "ASN": "get_input:2017488_adiodvpe0_ASN",
303             "vmxvre_chassis_i2cid": "161",
304             "vmxvpfe_name_0": "vPFEXI",
305             "bandwidth": "get_input:2017488_adiodvpe0_bandwidth",
306             "availability_zone_max_count": "1",
307             "vmxvre_volume_size_0": "45.0",
308             "vmxvre_volume_size_1": "50.0",
309             "vmxvpfe_sriov42_0_port_broadcastallow": "true",
310             "vmxvre_oam_gateway": "10.0.0.10",
311             "vmxvre_volume_name_1": "vREXI_FAVolume",
312             "vmxvre_ore_present": "0",
313             "vmxvre_volume_name_0": "vREXI_FBVolume",
314             "vmxvre_type": "0",
315             "vnf_instance_name": "get_input:2017488_adiodvpe0_vnf_instance_name",
316             "vmxvpfe_sriov41_0_port_unknownmulticastallow": "true",
317             "oam_net_id": "b95eeb1d-d55d-4827-abb4-8ebb94941429",
318             "vmx_int_ctl_len": "24",
319             "vmxvpfe_sriov43_0_port_vlanstrip": "false",
320             "vmxvpfe_sriov41_0_port_broadcastallow": "true",
321             "vmxvre_volume_id_1": "6e86797e-03cd-4fdc-ba72-2957119c746d",
322             "vmxvpfe_sriov41_0_port_vlanfilter": "4001",
323             "nf_role": "Testing",
324             "vmxvre_volume_id_0": "f4eacb79-f687-4e9d-b760-21847c8bb15a",
325             "vmxvpfe_sriov42_0_port_unknownunicastallow": "true",
326             "vmxvpfe_flavor_name": "ns.c20r16d25.v5"
327           },
328           "type": "VF",
329           "modelCustomizationName": "2017-388_ADIOD-vPE 1",
330           "vfModules": {},
331           "volumeGroups": {},
332           "vfcInstanceGroups": {}
333         },
334         "2017-388_ADIOD-vPE 0": {
335           "uuid": "afacccf6-397d-45d6-b5ae-94c39734b168",
336           "invariantUuid": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8",
337           "description": "Name ADIOD vPE Description The provider edge function for the ADIOD service supported by the Junipers VMX product Category Router Vendor Juniper Vendor Release Code 17.2 Owners Mary Fragale. Updated 9-25 to use v8.0 of the Juniper Valid 2 VLM",
338           "name": "2017-388_ADIOD-vPE",
339           "version": "4.0",
340           "customizationUuid": "b3c76f73-eeb5-4fb6-9d31-72a889f1811c",
341           "inputs": {},
342           "commands": {},
343           "properties": {
344             "vmxvre_retype": "RE-VMX",
345             "vnf_config_template_version": "get_input:2017488_adiodvpe0_vnf_config_template_version",
346             "sriov44_net_id": "48d399b3-11ee-48a8-94d2-f0ea94d6be8d",
347             "int_ctl_net_id": "2f323477-6936-4d01-ac53-d849430281d9",
348             "vmxvpfe_sriov41_0_port_mac": "00:11:22:EF:AC:DF",
349             "int_ctl_net_name": "VMX-INTXI",
350             "vmx_int_ctl_prefix": "10.0.0.10",
351             "sriov43_net_id": "da349ca1-6de9-4548-be88-2d88e99bfef5",
352             "sriov42_net_id": "760669ba-013d-4d9b-b0e7-4151fe2e6279",
353             "sriov41_net_id": "25ad52d5-c165-40f8-b3b0-ddfc2373280a",
354             "nf_type": "vPE",
355             "vmxvpfe_int_ctl_ip_1": "10.0.0.10",
356             "is_AVPN_service": "false",
357             "vmx_RSG_name": "vREXI-affinity",
358             "vmx_int_ctl_forwarding": "l2",
359             "vmxvre_oam_ip_0": "10.0.0.10",
360             "vmxvpfe_sriov44_0_port_mac": "00:11:22:EF:AC:DF",
361             "vmxvpfe_sriov41_0_port_vlanstrip": "false",
362             "vmxvpfe_sriov42_0_port_vlanfilter": "4001",
363             "vmxvpfe_sriov44_0_port_unknownunicastallow": "true",
364             "vmxvre_image_name_0": "VRE-ENGINE_17.2-S2.1.qcow2",
365             "vmxvre_instance": "0",
366             "vmxvpfe_sriov43_0_port_mac": "00:11:22:EF:AC:DF",
367             "vmxvre_flavor_name": "ns.c1r16d32.v5",
368             "vmxvpfe_volume_size_0": "40.0",
369             "vmxvpfe_sriov43_0_port_vlanfilter": "4001",
370             "nf_naming": "{ecomp_generated_naming=true}",
371             "multi_stage_design": "true",
372             "nf_naming_code": "Navneet",
373             "vmxvre_name_0": "vREXI",
374             "vmxvpfe_sriov42_0_port_vlanstrip": "false",
375             "vmxvpfe_volume_name_0": "vPFEXI_FBVolume",
376             "vmx_RSG_id": "bd89a33c-13c3-4a04-8fde-1a57eb123141",
377             "vmxvpfe_image_name_0": "VPE_ROUTING-ENGINE_17.2R1-S2.1.qcow2",
378             "vmxvpfe_sriov43_0_port_unknownunicastallow": "true",
379             "vmxvpfe_sriov44_0_port_unknownmulticastallow": "true",
380             "vmxvre_console": "vidconsole",
381             "vmxvpfe_sriov44_0_port_vlanfilter": "4001",
382             "vmxvpfe_sriov42_0_port_mac": "00:11:22:EF:AC:DF",
383             "vmxvpfe_volume_id_0": "47cede15-da2f-4397-a101-aa683220aff3",
384             "vmxvpfe_sriov42_0_port_unknownmulticastallow": "true",
385             "vmxvpfe_sriov44_0_port_vlanstrip": "false",
386             "vf_module_id": "123",
387             "nf_function": "JAI",
388             "vmxvpfe_sriov43_0_port_unknownmulticastallow": "true",
389             "vmxvre_int_ctl_ip_0": "10.0.0.10",
390             "ecomp_generated_naming": "true",
391             "AIC_CLLI": "get_input:2017488_adiodvpe0_AIC_CLLI",
392             "vnf_name": "mtnj309me6vre",
393             "vmxvpfe_sriov41_0_port_unknownunicastallow": "true",
394             "vmxvre_volume_type_1": "HITACHI",
395             "vmxvpfe_sriov44_0_port_broadcastallow": "true",
396             "vmxvre_volume_type_0": "HITACHI",
397             "vmxvpfe_volume_type_0": "HITACHI",
398             "vmxvpfe_sriov43_0_port_broadcastallow": "true",
399             "bandwidth_units": "get_input:2017488_adiodvpe0_bandwidth_units",
400             "vnf_id": "123",
401             "vmxvre_oam_prefix": "24",
402             "availability_zone_0": "mtpocfo-kvm-az01",
403             "ASN": "get_input:2017488_adiodvpe0_ASN",
404             "vmxvre_chassis_i2cid": "161",
405             "vmxvpfe_name_0": "vPFEXI",
406             "bandwidth": "get_input:2017488_adiodvpe0_bandwidth",
407             "availability_zone_max_count": "1",
408             "vmxvre_volume_size_0": "45.0",
409             "vmxvre_volume_size_1": "50.0",
410             "vmxvpfe_sriov42_0_port_broadcastallow": "true",
411             "vmxvre_oam_gateway": "10.0.0.10",
412             "vmxvre_volume_name_1": "vREXI_FAVolume",
413             "vmxvre_ore_present": "0",
414             "vmxvre_volume_name_0": "vREXI_FBVolume",
415             "vmxvre_type": "0",
416             "vnf_instance_name": "get_input:2017488_adiodvpe0_vnf_instance_name",
417             "vmxvpfe_sriov41_0_port_unknownmulticastallow": "true",
418             "oam_net_id": "b95eeb1d-d55d-4827-abb4-8ebb94941429",
419             "vmx_int_ctl_len": "24",
420             "vmxvpfe_sriov43_0_port_vlanstrip": "false",
421             "vmxvpfe_sriov41_0_port_broadcastallow": "true",
422             "vmxvre_volume_id_1": "6e86797e-03cd-4fdc-ba72-2957119c746d",
423             "vmxvpfe_sriov41_0_port_vlanfilter": "4001",
424             "nf_role": "Testing",
425             "vmxvre_volume_id_0": "f4eacb79-f687-4e9d-b760-21847c8bb15a",
426             "vmxvpfe_sriov42_0_port_unknownunicastallow": "true",
427             "vmxvpfe_flavor_name": "ns.c20r16d25.v5"
428           },
429           "type": "VF",
430           "modelCustomizationName": "2017-388_ADIOD-vPE 0",
431           "vfModules": {},
432           "volumeGroups": {},
433           "vfcInstanceGroups": {}
434         },
435         "2017-488_ADIOD-vPE 0": {
436           "uuid": "69e09f68-8b63-4cc9-b9ff-860960b5db09",
437           "invariantUuid": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8",
438           "description": "Name ADIOD vPE Description The provider edge function for the ADIOD service supported by the Junipers VMX product Category Router Vendor Juniper Vendor Release Code 17.2 Owners Mary Fragale. Updated 9-25 to use v8.0 of the Juniper Valid 2 VLM",
439           "name": "2017-488_ADIOD-vPE",
440           "version": "5.0",
441           "customizationUuid": "1da7b585-5e61-4993-b95e-8e6606c81e45",
442           "inputs": {},
443           "commands": {},
444           "properties": {
445             "vmxvre_retype": "RE-VMX",
446             "vnf_config_template_version": "get_input:2017488_adiodvpe0_vnf_config_template_version",
447             "sriov44_net_id": "48d399b3-11ee-48a8-94d2-f0ea94d6be8d",
448             "int_ctl_net_id": "2f323477-6936-4d01-ac53-d849430281d9",
449             "vmxvpfe_sriov41_0_port_mac": "00:11:22:EF:AC:DF",
450             "int_ctl_net_name": "VMX-INTXI",
451             "vmx_int_ctl_prefix": "10.0.0.10",
452             "sriov43_net_id": "da349ca1-6de9-4548-be88-2d88e99bfef5",
453             "sriov42_net_id": "760669ba-013d-4d9b-b0e7-4151fe2e6279",
454             "sriov41_net_id": "25ad52d5-c165-40f8-b3b0-ddfc2373280a",
455             "nf_type": "vPE",
456             "vmxvpfe_int_ctl_ip_1": "10.0.0.10",
457             "is_AVPN_service": "false",
458             "vmx_RSG_name": "vREXI-affinity",
459             "vmx_int_ctl_forwarding": "l2",
460             "vmxvre_oam_ip_0": "10.0.0.10",
461             "vmxvpfe_sriov44_0_port_mac": "00:11:22:EF:AC:DF",
462             "vmxvpfe_sriov41_0_port_vlanstrip": "false",
463             "vmxvpfe_sriov42_0_port_vlanfilter": "4001",
464             "vmxvpfe_sriov44_0_port_unknownunicastallow": "true",
465             "vmxvre_image_name_0": "VRE-ENGINE_17.2-S2.1.qcow2",
466             "vmxvre_instance": "0",
467             "vmxvpfe_sriov43_0_port_mac": "00:11:22:EF:AC:DF",
468             "vmxvre_flavor_name": "ns.c1r16d32.v5",
469             "vmxvpfe_volume_size_0": "40.0",
470             "vmxvpfe_sriov43_0_port_vlanfilter": "4001",
471             "nf_naming": "{ecomp_generated_naming=true}",
472             "multi_stage_design": "true",
473             "nf_naming_code": "Navneet",
474             "vmxvre_name_0": "vREXI",
475             "vmxvpfe_sriov42_0_port_vlanstrip": "false",
476             "vmxvpfe_volume_name_0": "vPFEXI_FBVolume",
477             "vmx_RSG_id": "bd89a33c-13c3-4a04-8fde-1a57eb123141",
478             "vmxvpfe_image_name_0": "VPE_ROUTING-ENGINE_17.2R1-S2.1.qcow2",
479             "vmxvpfe_sriov43_0_port_unknownunicastallow": "true",
480             "vmxvpfe_sriov44_0_port_unknownmulticastallow": "true",
481             "vmxvre_console": "vidconsole",
482             "vmxvpfe_sriov44_0_port_vlanfilter": "4001",
483             "vmxvpfe_sriov42_0_port_mac": "00:11:22:EF:AC:DF",
484             "vmxvpfe_volume_id_0": "47cede15-da2f-4397-a101-aa683220aff3",
485             "vmxvpfe_sriov42_0_port_unknownmulticastallow": "true",
486             "vmxvpfe_sriov44_0_port_vlanstrip": "false",
487             "vf_module_id": "123",
488             "nf_function": "JAI",
489             "vmxvpfe_sriov43_0_port_unknownmulticastallow": "true",
490             "vmxvre_int_ctl_ip_0": "10.0.0.10",
491             "ecomp_generated_naming": "true",
492             "AIC_CLLI": "get_input:2017488_adiodvpe0_AIC_CLLI",
493             "vnf_name": "mtnj309me6vre",
494             "vmxvpfe_sriov41_0_port_unknownunicastallow": "true",
495             "vmxvre_volume_type_1": "HITACHI",
496             "vmxvpfe_sriov44_0_port_broadcastallow": "true",
497             "vmxvre_volume_type_0": "HITACHI",
498             "vmxvpfe_volume_type_0": "HITACHI",
499             "vmxvpfe_sriov43_0_port_broadcastallow": "true",
500             "bandwidth_units": "get_input:2017488_adiodvpe0_bandwidth_units",
501             "vnf_id": "123",
502             "vmxvre_oam_prefix": "24",
503             "availability_zone_0": "mtpocfo-kvm-az01",
504             "ASN": "get_input:2017488_adiodvpe0_ASN",
505             "vmxvre_chassis_i2cid": "161",
506             "vmxvpfe_name_0": "vPFEXI",
507             "bandwidth": "get_input:2017488_adiodvpe0_bandwidth",
508             "availability_zone_max_count": "1",
509             "vmxvre_volume_size_0": "45.0",
510             "vmxvre_volume_size_1": "50.0",
511             "vmxvpfe_sriov42_0_port_broadcastallow": "true",
512             "vmxvre_oam_gateway": "10.0.0.10",
513             "vmxvre_volume_name_1": "vREXI_FAVolume",
514             "vmxvre_ore_present": "0",
515             "vmxvre_volume_name_0": "vREXI_FBVolume",
516             "vmxvre_type": "0",
517             "vnf_instance_name": "get_input:2017488_adiodvpe0_vnf_instance_name",
518             "vmxvpfe_sriov41_0_port_unknownmulticastallow": "true",
519             "oam_net_id": "b95eeb1d-d55d-4827-abb4-8ebb94941429",
520             "vmx_int_ctl_len": "24",
521             "vmxvpfe_sriov43_0_port_vlanstrip": "false",
522             "vmxvpfe_sriov41_0_port_broadcastallow": "true",
523             "vmxvre_volume_id_1": "6e86797e-03cd-4fdc-ba72-2957119c746d",
524             "vmxvpfe_sriov41_0_port_vlanfilter": "4001",
525             "nf_role": "Testing",
526             "vmxvre_volume_id_0": "f4eacb79-f687-4e9d-b760-21847c8bb15a",
527             "vmxvpfe_sriov42_0_port_unknownunicastallow": "true",
528             "vmxvpfe_flavor_name": "ns.c20r16d25.v5"
529           },
530           "type": "VF",
531           "modelCustomizationName": "2017-488_ADIOD-vPE 0",
532           "vfModules": {
533             "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vRE_BV..module-1": {
534               "uuid": "25284168-24bb-4698-8cb4-3f509146eca5",
535               "invariantUuid": "7253ff5c-97f0-4b8b-937c-77aeb4d79aa1",
536               "customizationUuid": "f7e7c365-60cf-49a9-9ebf-a1aa11b9d401",
537               "description": null,
538               "name": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",
539               "version": "6",
540               "modelCustomizationName": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",
541               "properties": {
542                 "minCountInstances": 0,
543                 "maxCountInstances": null,
544                 "initialCount": 0,
545                 "vfModuleLabel": "ADIOD_vRE_BV",
546                 "baseModule": false
547               },
548               "inputs": {},
549               "volumeGroupAllowed": true
550             },
551             "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_base_vPE_BV..module-0": {
552               "uuid": "f8360508-3f17-4414-a2ed-6bc71161e8db",
553               "invariantUuid": "b34833bb-6aa9-4ad6-a831-70b06367a091",
554               "customizationUuid": "a55961b2-2065-4ab0-a5b7-2fcee1c227e3",
555               "description": null,
556               "name": "2017488AdiodVpe..ADIOD_base_vPE_BV..module-0",
557               "version": "5",
558               "modelCustomizationName": "2017488AdiodVpe..ADIOD_base_vPE_BV..module-0",
559               "properties": {
560                 "minCountInstances": 1,
561                 "maxCountInstances": 1,
562                 "initialCount": 1,
563                 "vfModuleLabel": "ADIOD_base_vPE_BV",
564                 "baseModule": true
565               },
566               "inputs": {},
567               "volumeGroupAllowed": false
568             },
569             "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vPFE_BV..module-2": {
570               "uuid": "0a0dd9d4-31d3-4c3a-ae89-a02f383e6a9a",
571               "invariantUuid": "eff8cc59-53a1-4101-aed7-8cf24ecf8339",
572               "customizationUuid": "3cd946bb-50e0-40d8-96d3-c9023520b557",
573               "description": null,
574               "name": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",
575               "version": "6",
576               "modelCustomizationName": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",
577               "properties": {
578                 "minCountInstances": 0,
579                 "maxCountInstances": null,
580                 "initialCount": 0,
581                 "vfModuleLabel": "ADIOD_vPFE_BV",
582                 "baseModule": false
583               },
584               "inputs": {},
585               "volumeGroupAllowed": true
586             }
587           },
588           "volumeGroups": {
589             "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vRE_BV..module-1": {
590               "uuid": "25284168-24bb-4698-8cb4-3f509146eca5",
591               "invariantUuid": "7253ff5c-97f0-4b8b-937c-77aeb4d79aa1",
592               "customizationUuid": "f7e7c365-60cf-49a9-9ebf-a1aa11b9d401",
593               "description": null,
594               "name": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",
595               "version": "6",
596               "modelCustomizationName": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",
597               "properties": {
598                 "minCountInstances": 0,
599                 "maxCountInstances": null,
600                 "initialCount": 0,
601                 "vfModuleLabel": "ADIOD_vRE_BV",
602                 "baseModule": false
603               },
604               "inputs": {}
605             },
606             "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vPFE_BV..module-2": {
607               "uuid": "0a0dd9d4-31d3-4c3a-ae89-a02f383e6a9a",
608               "invariantUuid": "eff8cc59-53a1-4101-aed7-8cf24ecf8339",
609               "customizationUuid": "3cd946bb-50e0-40d8-96d3-c9023520b557",
610               "description": null,
611               "name": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",
612               "version": "6",
613               "modelCustomizationName": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",
614               "properties": {
615                 "minCountInstances": 0,
616                 "maxCountInstances": null,
617                 "initialCount": 0,
618                 "vfModuleLabel": "ADIOD_vPFE_BV",
619                 "baseModule": false
620               },
621               "inputs": {}
622             }
623           },
624           "vfcInstanceGroups": {}
625         }
626       },
627       "networks": {},
628       "collectionResource": {},
629       "configurations": {},
630       "fabricConfigurations": {},
631       "serviceProxies": {},
632       "vfModules": {
633         "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vRE_BV..module-1": {
634           "uuid": "25284168-24bb-4698-8cb4-3f509146eca5",
635           "invariantUuid": "7253ff5c-97f0-4b8b-937c-77aeb4d79aa1",
636           "customizationUuid": "f7e7c365-60cf-49a9-9ebf-a1aa11b9d401",
637           "description": null,
638           "name": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",
639           "version": "6",
640           "modelCustomizationName": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",
641           "properties": {
642             "minCountInstances": 0,
643             "maxCountInstances": null,
644             "initialCount": 0,
645             "vfModuleLabel": "ADIOD_vRE_BV",
646             "baseModule": false
647           },
648           "inputs": {},
649           "volumeGroupAllowed": true
650         },
651         "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_base_vPE_BV..module-0": {
652           "uuid": "f8360508-3f17-4414-a2ed-6bc71161e8db",
653           "invariantUuid": "b34833bb-6aa9-4ad6-a831-70b06367a091",
654           "customizationUuid": "a55961b2-2065-4ab0-a5b7-2fcee1c227e3",
655           "description": null,
656           "name": "2017488AdiodVpe..ADIOD_base_vPE_BV..module-0",
657           "version": "5",
658           "modelCustomizationName": "2017488AdiodVpe..ADIOD_base_vPE_BV..module-0",
659           "properties": {
660             "minCountInstances": 1,
661             "maxCountInstances": 1,
662             "initialCount": 1,
663             "vfModuleLabel": "ADIOD_base_vPE_BV",
664             "baseModule": true
665           },
666           "inputs": {},
667           "volumeGroupAllowed": false
668         },
669         "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vPFE_BV..module-2": {
670           "uuid": "0a0dd9d4-31d3-4c3a-ae89-a02f383e6a9a",
671           "invariantUuid": "eff8cc59-53a1-4101-aed7-8cf24ecf8339",
672           "customizationUuid": "3cd946bb-50e0-40d8-96d3-c9023520b557",
673           "description": null,
674           "name": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",
675           "version": "6",
676           "modelCustomizationName": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",
677           "properties": {
678             "minCountInstances": 0,
679             "maxCountInstances": null,
680             "initialCount": 0,
681             "vfModuleLabel": "ADIOD_vPFE_BV",
682             "baseModule": false
683           },
684           "inputs": {},
685           "volumeGroupAllowed": true
686         }
687       },
688       "volumeGroups": {
689         "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vRE_BV..module-1": {
690           "uuid": "25284168-24bb-4698-8cb4-3f509146eca5",
691           "invariantUuid": "7253ff5c-97f0-4b8b-937c-77aeb4d79aa1",
692           "customizationUuid": "f7e7c365-60cf-49a9-9ebf-a1aa11b9d401",
693           "description": null,
694           "name": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",
695           "version": "6",
696           "modelCustomizationName": "2017488AdiodVpe..ADIOD_vRE_BV..module-1",
697           "properties": {
698             "minCountInstances": 0,
699             "maxCountInstances": null,
700             "initialCount": 0,
701             "vfModuleLabel": "ADIOD_vRE_BV",
702             "baseModule": false
703           },
704           "inputs": {}
705         },
706         "2017488_adiodvpe0..2017488AdiodVpe..ADIOD_vPFE_BV..module-2": {
707           "uuid": "0a0dd9d4-31d3-4c3a-ae89-a02f383e6a9a",
708           "invariantUuid": "eff8cc59-53a1-4101-aed7-8cf24ecf8339",
709           "customizationUuid": "3cd946bb-50e0-40d8-96d3-c9023520b557",
710           "description": null,
711           "name": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",
712           "version": "6",
713           "modelCustomizationName": "2017488AdiodVpe..ADIOD_vPFE_BV..module-2",
714           "properties": {
715             "minCountInstances": 0,
716             "maxCountInstances": null,
717             "initialCount": 0,
718             "vfModuleLabel": "ADIOD_vPFE_BV",
719             "baseModule": false
720           },
721           "inputs": {}
722         }
723       },
724       "pnfs": {}
725     }
726   }
727 });