blob: 3499377ace92e9b0f616bda9f5a55095896eb89b [file] [log] [blame]
Ittay Stern6f900cc2018-08-29 17:01:32 +03001import {HttpClientTestingModule} from "@angular/common/http/testing";
2import {getTestBed, TestBed} from "@angular/core/testing";
Ittay Stern77d00162019-02-27 19:23:10 +02003import {NgReduxTestingModule} from "@angular-redux/store/testing";
Ittay Stern6f900cc2018-08-29 17:01:32 +03004import {SharedTreeService} from "./shared.tree.service";
5import {ObjectToInstanceTreeService} from "./objectToInstanceTree/objectToInstanceTree.service";
6import {ObjectToTreeService} from "./objectToTree.service";
7import {DefaultDataGeneratorService} from "../../../shared/services/defaultDataServiceGenerator/default.data.generator.service";
8import {DynamicInputsService} from "./dynamicInputs.service";
9import {DialogService} from "ng2-bootstrap-modal";
10import {VnfPopupService} from "../../../shared/components/genericFormPopup/genericFormServices/vnf/vnf.popup.service";
Yoav Schneiderman4c87eca2019-12-18 21:04:38 +020011import {ControlGeneratorUtil} from "../../../shared/components/genericForm/formControlsServices/control.generator.util.service";
Ittay Stern6f900cc2018-08-29 17:01:32 +030012import {AaiService} from "../../../shared/services/aaiService/aai.service";
13import {NetworkPopupService} from "../../../shared/components/genericFormPopup/genericFormServices/network/network.popup.service";
14import {NetworkControlGenerator} from "../../../shared/components/genericForm/formControlsServices/networkGenerator/network.control.generator";
Amir Skalka8d17bc32019-12-10 16:47:11 +020015import {VfModulePopupService} from "../../../shared/components/genericFormPopup/genericFormServices/vfModule/vfModule.popup.service";
Ittay Stern6f900cc2018-08-29 17:01:32 +030016import {VfModuleControlGenerator} from "../../../shared/components/genericForm/formControlsServices/vfModuleGenerator/vfModule.control.generator";
17import {VnfGroupControlGenerator} from "../../../shared/components/genericForm/formControlsServices/vnfGroupGenerator/vnfGroup.control.generator";
18import {FeatureFlagsService} from "../../../shared/services/featureFlag/feature-flags.service";
19import {VnfControlGenerator} from "../../../shared/components/genericForm/formControlsServices/vnfGenerator/vnf.control.generator";
20import {NgRedux} from "@angular-redux/store";
21import {GenericFormService} from "../../../shared/components/genericForm/generic-form.service";
22import {FormBuilder} from "@angular/forms";
23import {SdcUiComponentsModule} from "onap-ui-angular";
24import {LogService} from "../../../shared/utils/log/log.service";
25import {IframeService} from "../../../shared/utils/iframe.service";
26import {BasicPopupService} from "../../../shared/components/genericFormPopup/genericFormServices/basic.popup.service";
27import {VnfGroupPopupService} from "../../../shared/components/genericFormPopup/genericFormServices/vnfGroup/vnfGroup.popup.service";
28import {DuplicateService} from "../duplicate/duplicate.service";
29import {AppState} from "../../../shared/store/reducers";
30import {MessageBoxService} from "../../../shared/components/messageBox/messageBox.service";
31import {ErrorMsgService} from "../../../shared/components/error-msg/error-msg.service";
32import {AuditInfoModalComponent} from "../../../shared/components/auditInfoModal/auditInfoModal.component";
33import {ILevelNodeInfo} from "./models/basic.model.info";
34import {VnfModelInfo} from "./models/vnf/vnf.model.info";
35import {ServiceInstanceActions} from "../../../shared/models/serviceInstanceActions";
36import each from "jest-each";
37import {DrawingBoardModes} from "../drawing-board.modes";
38import {ComponentInfoService} from "../component-info/component-info.service";
Ittay Sternf7926712019-07-07 19:23:03 +030039import {ComponentInfoModel, ComponentInfoType} from "../component-info/component-info-model";
40import {ModelInformationItem} from "../../../shared/components/model-information/model-information.component";
41import {VpnStepService} from "./models/vrf/vrfModal/vpnStep/vpn.step.service";
42import {NetworkStepService} from "./models/vrf/vrfModal/networkStep/network.step.service";
Sara Weisseed69432019-11-20 14:50:33 +020043import {VfModuleUpgradePopupService} from "../../../shared/components/genericFormPopup/genericFormServices/vfModuleUpgrade/vfModule.upgrade.popuop.service";
Yoav Schneiderman4c87eca2019-12-18 21:04:38 +020044import {SharedControllersService} from "../../../shared/components/genericForm/formControlsServices/sharedControlles/shared.controllers.service";
Yoav Schneiderman4ef3ee72020-01-08 14:46:14 +020045import {ModalService} from "../../../shared/components/customModal/services/modal.service";
46import {CreateDynamicComponentService} from "../../../shared/components/customModal/services/create-dynamic-component.service";
Ittay Stern6f900cc2018-08-29 17:01:32 +030047
48class MockAppStore<T> {
49 getState() {
50 return getStore()
51 }
52
53 dispatch() {
54 }
55}
56
Ittay Stern6f900cc2018-08-29 17:01:32 +030057
58
Einat Vinouzee1f79742019-08-27 16:01:01 +030059
60function getNodeWithData(menuAction:string){
61 const nodeData = {
62 menuActions: {}
63 };
64 nodeData['menuActions'][menuAction] = {
65 method: (node, serviceModelId) => {}
Eylon Malinaefc6a02020-01-29 15:11:47 +020066 };
Einat Vinouzee1f79742019-08-27 16:01:01 +030067 const node = {
68 parent: {
69 data: nodeData,
70 parent: {
71 data: nodeData
72 }
73 }
74 };
75 return node
76}
77
Ittay Stern6f900cc2018-08-29 17:01:32 +030078describe('Shared Tree Service', () => {
79 let injector;
80 let service: SharedTreeService;
81 let _objectToInstanceTreeService: ObjectToInstanceTreeService;
82 let store: NgRedux<AppState>;
Alexey Sandler56093382020-02-13 09:53:14 +020083
Ittay Stern6f900cc2018-08-29 17:01:32 +030084 beforeAll(done => (async () => {
85 TestBed.configureTestingModule({
86 imports: [HttpClientTestingModule, NgReduxTestingModule, SdcUiComponentsModule],
87 providers: [
88 SharedTreeService,
Yoav Schneiderman4c87eca2019-12-18 21:04:38 +020089 SharedControllersService,
Ittay Stern6f900cc2018-08-29 17:01:32 +030090 ObjectToTreeService,
91 DefaultDataGeneratorService,
92 DialogService,
93 VnfPopupService,
Yoav Schneiderman4c87eca2019-12-18 21:04:38 +020094 ControlGeneratorUtil,
Ittay Stern6f900cc2018-08-29 17:01:32 +030095 AaiService,
96 LogService,
97 BasicPopupService,
98 VnfGroupPopupService,
99 DuplicateService,
100 IframeService,
101 DynamicInputsService,
102 NetworkPopupService,
103 NetworkControlGenerator,
Amir Skalka8d17bc32019-12-10 16:47:11 +0200104 VfModulePopupService,
Sara Weisseed69432019-11-20 14:50:33 +0200105 VfModuleUpgradePopupService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300106 VfModuleControlGenerator,
107 VnfGroupControlGenerator,
108 DialogService,
109 FeatureFlagsService,
110 VnfControlGenerator,
111 AaiService,
112 DialogService,
113 GenericFormService,
114 FormBuilder,
115 ErrorMsgService,
116 ObjectToInstanceTreeService,
117 ComponentInfoService,
Ittay Sternf7926712019-07-07 19:23:03 +0300118 NetworkStepService,
119 VpnStepService,
Yoav Schneiderman4ef3ee72020-01-08 14:46:14 +0200120 ModalService,
121 CreateDynamicComponentService,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300122 {provide: NgRedux, useClass: MockAppStore}
123 ]
124 });
125 await TestBed.compileComponents();
126 injector = getTestBed();
127 service = injector.get(SharedTreeService);
128 _objectToInstanceTreeService = injector.get(ObjectToInstanceTreeService);
129 store = injector.get(NgRedux);
130 })().then(done).catch(done.fail));
131
132 test('SharedTreeService should be defined', () => {
133 expect(service).toBeDefined();
134 });
135
Einat Vinouzee1f79742019-08-27 16:01:01 +0300136 test('SharedTreeService upgradeBottomUp should call redux actions', () => {
137 const serviceModelId = "1a80c596-27e5-4ca9-b5bb-e03a7fd4c0fd";
Eylon Malinaefc6a02020-01-29 15:11:47 +0200138 const node = getNodeWithData("upgrade");
Einat Vinouzee1f79742019-08-27 16:01:01 +0300139 spyOn(node.parent.data.menuActions['upgrade'], 'method');
140 service.upgradeBottomUp(node, serviceModelId);
141 expect(node.parent.data.menuActions['upgrade'].method).toBeCalledWith(node.parent, serviceModelId);
142 expect(node.parent.data.menuActions['upgrade'].method).toBeCalledTimes(2);
143
144 });
145
146 test('SharedTreeService undoUpgradeBottomUp should call redux actions', () => {
147 const serviceModelId = "1a80c596-27e5-4ca9-b5bb-e03a7fd4c0fd";
Eylon Malinaefc6a02020-01-29 15:11:47 +0200148 const node = getNodeWithData("undoUpgrade");
Einat Vinouzee1f79742019-08-27 16:01:01 +0300149 spyOn(node.parent.data.menuActions['undoUpgrade'], 'method');
150 service.undoUpgradeBottomUp(node, serviceModelId);
151 expect(node.parent.data.menuActions['undoUpgrade'].method).toBeCalledWith(node.parent, serviceModelId);
152 expect(node.parent.data.menuActions['undoUpgrade'].method).toBeCalledTimes(2);
153 });
154
Ittay Stern6f900cc2018-08-29 17:01:32 +0300155 test('shouldShowDeleteInstanceWithChildrenModal should open modal if child exist with action create', () => {
156 jest.spyOn(MessageBoxService.openModal, 'next');
157 let foo = () => {
158
159 };
160 let node = <any>{
161 children: [{action: "Create"}, {action: "None"}],
162 data: {
163 typeName: 'VNF'
164 }
165 };
166 service.shouldShowDeleteInstanceWithChildrenModal(node, "serviceModelId", foo);
167 expect(MessageBoxService.openModal.next).toHaveBeenCalled();
168 });
169
Ittay Stern6b1e53d2020-01-21 12:20:37 +0200170 each([
171 ['volumeGroups by entry name', "volumeGroups",
172 "2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_vRE_BV..module-1", "2017488PasqualeVpe..PASQUALE_vRE_BV..module-1"],
173 ['vfmodule by customizationUuid', "vfModules",
174 "f7e7c365-60cf-49a9-9ebf-a1aa11b9d401", "2017488PasqualeVpe..PASQUALE_vRE_BV..module-1"],
175 ['vnf by customizationUuid', "vnfs",
176 "1da7b585-5e61-4993-b95e-8e6606c81e45", "2017-488_PASQUALE-vPE 0"],
177 ['vnfGroups by invariantUuid because no customizationUuid', "vnfGroups",
178 "4bb2e27e-ddab-4790-9c6d-1f731bc14a45", "groupingservicefortest..ResourceInstanceGroup..0"],
179 ]).test('modelByIdentifier should success: %s', (description, modelTypeName, modelUniqueIdOrName, expectedModelCustomizationName) => {
180 let serviceModelFromHierarchy =
181 getStore().service.serviceHierarchy["1a80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"];
182
Ittay Stern74e62712020-01-29 18:20:23 +0200183 expect(service.modelByIdentifiers(serviceModelFromHierarchy, modelTypeName, modelUniqueIdOrName))
Ittay Stern6b1e53d2020-01-21 12:20:37 +0200184 .toHaveProperty("modelCustomizationName", expectedModelCustomizationName);
185 });
186
187 each([
188 ['vfmodule by invariantUuid when there is customizationUuid', "vfModules", "7253ff5c-97f0-4b8b-937c-77aeb4d79aa1"],
189 ['network by non-existing modelUniqueIdOrName', "networks", "7253ff5c-97f0-4b8b-937c-77aeb4d79aa1"],
190 ['collectionResource has no resource', "collectionResources", "whatever"],
191 ['non-existing model-type', "fooBar", "whatever"],
192 ]).test('modelByIdentifier should fail: %s', (description, modelTypeName, modelUniqueIdOrName) => {
193 let serviceModelFromHierarchy =
194 getStore().service.serviceHierarchy["1a80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"];
195
Ittay Stern74e62712020-01-29 18:20:23 +0200196 expect(service.modelByIdentifiers(serviceModelFromHierarchy, modelTypeName, modelUniqueIdOrName))
Ittay Stern6b1e53d2020-01-21 12:20:37 +0200197 .toBeUndefined();
198 });
199
Yoav Schneidermana3e54c32020-02-02 20:00:00 +0200200 test('openAuditInfoModalInsideIframe should open modal for failed instance', () => {
Ittay Stern6f900cc2018-08-29 17:01:32 +0300201 jest.spyOn(AuditInfoModalComponent.openInstanceAuditInfoModal, 'next');
202
Einat Vinouzee1f79742019-08-27 16:01:01 +0300203 let modelInfoServiceMock: ILevelNodeInfo = new VnfModelInfo(null, null,
Sara Weisseed69432019-11-20 14:50:33 +0200204 null, null, null, null, null,
Yoav Schneiderman4c87eca2019-12-18 21:04:38 +0200205 null, null, null, null,null, null);
Ittay Stern6f900cc2018-08-29 17:01:32 +0300206 const modelMock = {"a": "a"};
207 const instanceMock = {"instance": "instance", "trackById": "123456789"};
208 const instanceTypeMock = "instanceTypeMock";
209 jest.spyOn(modelInfoServiceMock, 'getModel').mockReturnValue(modelMock);
210 let node = <any>{
211 data: {
212 modelId: '6b528779-44a3-4472-bdff-9cd15ec93450',
213 trackById: '1245df21',
214 isFailed: true
215 }
216 };
217 service.openAuditInfoModal(node, "serviceModelId", instanceMock, instanceTypeMock, <any>modelInfoServiceMock);
218 expect(AuditInfoModalComponent.openInstanceAuditInfoModal.next).toHaveBeenCalledWith(
219 {
220 "instance": instanceMock,
221 "instanceId": "serviceModelId",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300222 "model": modelMock,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300223 "type": instanceTypeMock
224 });
225 });
Eylon Malin0a268262019-12-15 10:03:03 +0200226 each([
227 ['undefined', 'Unlimited (default)', {}],
228 ['null', 'Unlimited (default)', {max:null}],
229 ['3', '3', {max:3}],
230 ]).
231 test("when there is %s max instances in model , shell return %s text", (desc, expected, model) =>{
232 expect(service.createMaximumToInstantiateModelInformationItem(model).values[0]).toBe(expected);
233 });
Ittay Stern6f900cc2018-08-29 17:01:32 +0300234
235 test('shouldShowDeleteInstanceWithChildrfenModal should not open modal if all childs with action None', () => {
236 let foo = () => {
237 };
238 spyOn(MessageBoxService.openModal, 'next');
239
240 let node = <any>{
241 children: [{action: "None"}, {action: "None"}],
242 data: {
243 typeName: 'VNF'
244 }
245 };
246 service.shouldShowDeleteInstanceWithChildrenModal(node, "serviceModelId", foo);
247 expect(MessageBoxService.openModal.next).not.toHaveBeenCalled();
248 });
249
Ittay Sternf7926712019-07-07 19:23:03 +0300250 test ('addGeneralInfoItems should return correct info - ordered',()=>{
251 let specificNetworkInfo = [
252 ModelInformationItem.createInstance('Network role', "network role 1, network role 2")
253 ];
254 const actualInfoModel: ComponentInfoModel = service.addGeneralInfoItems(specificNetworkInfo,ComponentInfoType.NETWORK, getNetworkModel(),getNetworkInstance());
255
256 let expectedGeneralInfo = [
257 ModelInformationItem.createInstance('Model version', '37.0'),
258 ModelInformationItem.createInstance('Model customization ID', '94fdd893-4a36-4d70-b16a-ec29c54c184f'),
259 ModelInformationItem.createInstance('Instance ID', 'NETWORK4_INSTANCE_ID'),
260 ModelInformationItem.createInstance('Instance type', 'CONTRAIL30_HIMELGUARD'),
261 ModelInformationItem.createInstance('In maintenance', false),
262 ModelInformationItem.createInstance('Network role', 'network role 1, network role 2')
263 ];
264 expect(actualInfoModel.modelInfoItems).toEqual(expectedGeneralInfo);
265 });
266
267
Ittay Stern6f900cc2018-08-29 17:01:32 +0300268 test('statusProperties should be prop on node according to node properties', () => {
269 let node = service.addingStatusProperty({orchStatus: 'completed', provStatus: 'inProgress', inMaint: false});
270 expect(node.statusProperties).toBeDefined();
271 expect(node.statusProperties).toEqual([Object({
272 key: 'Prov Status:',
273 value: 'inProgress',
274 testId: 'provStatus'
275 }), Object({key: 'Orch Status:', value: 'completed', testId: 'orchStatus'})]);
276 node = service.addingStatusProperty({orchStatus: 'completed', provStatus: 'inProgress', inMaint: true});
277 expect(node.statusProperties).toEqual([Object({
278 key: 'Prov Status:',
279 value: 'inProgress',
280 testId: 'provStatus'
281 }), Object({key: 'Orch Status:', value: 'completed', testId: 'orchStatus'}), Object({
282 key: 'In-maintenance',
283 value: '',
284 testId: 'inMaint'
285 })]);
286 });
Eylon Malinaefc6a02020-01-29 15:11:47 +0200287
288 each([
289 [false, 'method is not in menu actions', ServiceInstanceActions.None, DrawingBoardModes.EDIT, {}, true],
290 [false, 'there is no action in node', null, DrawingBoardModes.EDIT, {someMethod: "someValue"}, true],
291 [true, 'edit mode, action is none, method in menu action', ServiceInstanceActions.None, DrawingBoardModes.EDIT, {someMethod: "someValue"}, true],
292 [false, 'edit mode, action is none, method in menu action, macro service', ServiceInstanceActions.None, DrawingBoardModes.EDIT, {someMethod: "someValue"}, false],
293 [false, 'edit mode, action is not none, method in menu action', ServiceInstanceActions.Resume, DrawingBoardModes.EDIT, {someMethod: "someValue"}, true],
294 [false, 'edit mode, action is CREATE, method in menu action', ServiceInstanceActions.Resume, DrawingBoardModes.EDIT, {someMethod: "someValue"}, true]
295 ]).test('shouldShowButtonGeneric return %s if %s ', (expected, description, action, mode, menuActions, isALaCarte) => {
296 jest.spyOn(store, 'getState').mockReturnValue(<any>{
297 global: {
298 drawingBoardStatus: mode
299 },
300 service : {
301 serviceInstance: {
302 someModelId : {
303 isALaCarte
304 }
305 }
306
307 }
308 });
309 let node = <any>{
310 data:{
311 action: action,
312 menuActions: menuActions
313 },
314 };
315
316 let res = service.shouldShowButtonGeneric(node, "someMethod", "someModelId");
317 expect(res).toBe(expected);
318 });
319
Ittay Stern6f900cc2018-08-29 17:01:32 +0300320 const enableRemoveAndEditItemsDataProvider = [
321 ['Create action CREATE mode', DrawingBoardModes.CREATE ,ServiceInstanceActions.Create, true],
322 ['Create action VIEW mode',DrawingBoardModes.VIEW , ServiceInstanceActions.Create,false],
323 ['Create action RETRY_EDIT mode',DrawingBoardModes.RETRY_EDIT, ServiceInstanceActions.Create, true],
324 ['Create action EDIT mode',DrawingBoardModes.EDIT, ServiceInstanceActions.Create, true],
325 ['Create action RETRY mode',DrawingBoardModes.RETRY, ServiceInstanceActions.Create, false],
326 ['None action EDIT mode',DrawingBoardModes.EDIT, ServiceInstanceActions.None, false],
327 ['None action RETRY_EDIT mode', DrawingBoardModes.RETRY_EDIT, ServiceInstanceActions.None, false]];
328 each(enableRemoveAndEditItemsDataProvider).test('shouldShowEditAndDelete if child exist with %s', (description, mode, action, enabled) => {
Ittay Sternf7926712019-07-07 19:23:03 +0300329 jest.spyOn(store, 'getState').mockReturnValue(<any>{
Ittay Stern6f900cc2018-08-29 17:01:32 +0300330 global: {
331 drawingBoardStatus: mode
332 }
333 });
334 let node = <any>{
335 data:{
336 action: action
337 },
338 };
339 let res = service.shouldShowRemoveAndEdit(node);
340 expect(res).toBe(enabled);
341 });
Eylon Malinaefc6a02020-01-29 15:11:47 +0200342
Yoav Schneidermana3e54c32020-02-02 20:00:00 +0200343
Ittay Sternf84164f2020-02-04 14:13:24 +0200344 const isVfmoduleAlmostPartOfModelOnlyCustomizationUuidDifferProvider = [
345 ['node is part of model, but vfmodule diff by customization',
346 true, 'mDNS 01222020 0', '9fdc68e9-9f53-431c-b8a2-7e337b9a0d0a', '82160e6e-d9c4-45ef-bd19-01573ab11b61'],
Yoav Schneidermana3e54c32020-02-02 20:00:00 +0200347
Ittay Sternf84164f2020-02-04 14:13:24 +0200348 ['vnf model-name not found',
349 false, 'mDNS 01222020 1', '9fdc68e9-9f53-431c-b8a2-7e337b9a0d0a', '82160e6e-d9c4-45ef-bd19-01573ab11b61'],
350
351 ['vfmodule invariant-id not found',
352 false, 'mDNS 01222020 0', 'wrong invariant-id', '82160e6e-d9c4-45ef-bd19-01573ab11b61'],
353
354 ['vfmodule customization-id match',
355 false, 'mDNS 01222020 0', '9fdc68e9-9f53-431c-b8a2-7e337b9a0d0a', 'c9b32003-febc-44e0-a97f-7630fa7fa4a0'],
356 ];
357
358 each(isVfmoduleAlmostPartOfModelOnlyCustomizationUuidDifferProvider).test('isVfmoduleAlmostPartOfModelOnlyCustomizationUuidDiffer: when %s should return %s', (description, expected, vnfModelName, invariantUuid, customizationUuid) => {
Yoav Schneidermana3e54c32020-02-02 20:00:00 +0200359 const serviceModelId : string = 'a243da28-c11e-45a8-9f26-0284a9a789bc';
360 spyOn(store, 'getState').and.returnValue({
361 service : {
362 serviceHierarchy : {
363 [serviceModelId] : {
364 vnfs : {
365 [vnfModelName] : {
366 vfModules : {
Ittay Sternf84164f2020-02-04 14:13:24 +0200367 vfModuleModelName : {
368 invariantUuid : invariantUuid,
Yoav Schneidermana3e54c32020-02-02 20:00:00 +0200369 customizationUuid : customizationUuid
370 }
371 }
372 }
373 }
374 }
375 }
376 }
377 });
378
379 const node = <any>{
380 data:{
Ittay Sternf84164f2020-02-04 14:13:24 +0200381 modelInvariantId : '9fdc68e9-9f53-431c-b8a2-7e337b9a0d0a',
Yoav Schneidermana3e54c32020-02-02 20:00:00 +0200382 modelCustomizationId : 'c9b32003-febc-44e0-a97f-7630fa7fa4a0',
Ittay Sternf84164f2020-02-04 14:13:24 +0200383 modelName : 'vfModuleModelName'
Yoav Schneidermana3e54c32020-02-02 20:00:00 +0200384 },
385 parent : {
386 data : {
387 modelName : "mDNS 01222020 0"
388 }
389 }
390 };
391
Ittay Sternf84164f2020-02-04 14:13:24 +0200392 const isDiffCustomizationUuidResponse : boolean = service.isVfmoduleAlmostPartOfModelOnlyCustomizationUuidDiffer(node, serviceModelId);
Yoav Schneidermana3e54c32020-02-02 20:00:00 +0200393 expect(isDiffCustomizationUuidResponse).toEqual(expected);
394 });
395
Alexey Sandler56093382020-02-13 09:53:14 +0200396 each([
397 [false, true, true, false],
398 [true, true, true, true],
399 [true, true, false, true],
400 [true, false, true, true],
401 [true, false, false, false],
402 ]).
403 test('when flag is %s the UpdatedLatestVersion is %s and Vfmodule CustomizationUuid Differ is %s isShouldShowButtonGenericMustToBeCalled should return %s', (
404 flag: boolean,
405 isThereAnUpdatedLatestVersion: boolean,
406 isVfmoduleAlmostPartOfModelOnlyCustomizationUuidDiffer: boolean,
407 isShouldShowButtonGenericMustToBeCalled: boolean
408 ) => {
409 let node = <any> {};
410 let serviceModelId : string = '08c5fa17-769a-4231-bd92-aed4b0ed086d';
411 jest.spyOn(store, 'getState').mockReturnValue(<any>{
412 global: {
413 "flags": {
414 "FLAG_FLASH_REPLACE_VF_MODULE": flag,
415 },
416 }
417 });
418 spyOn(service, 'isThereAnUpdatedLatestVersion').and.returnValue(isThereAnUpdatedLatestVersion);
419 spyOn(service, 'isVfmoduleAlmostPartOfModelOnlyCustomizationUuidDiffer').and.returnValue(isVfmoduleAlmostPartOfModelOnlyCustomizationUuidDiffer);
420
421 expect(service.isVfMoudleCouldBeUpgraded(node, serviceModelId)).toEqual(isShouldShowButtonGenericMustToBeCalled);
422 });
423
Ittay Stern6f900cc2018-08-29 17:01:32 +0300424});
Ittay Stern6f900cc2018-08-29 17:01:32 +0300425
426function getStore() {
427 return {
428 "global": {
429 "name": null,
430 "flags": {
Ittay Stern6f900cc2018-08-29 17:01:32 +0300431 "EMPTY_DRAWING_BOARD_TEST": false,
432 "FLAG_NETWORK_TO_ASYNC_INSTANTIATION": false,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300433 "FLAG_ADD_MSO_TESTAPI_FIELD": true,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300434 "FLAG_SERVICE_MODEL_CACHE": true,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300435 "FLAG_SHOW_ASSIGNMENTS": true,
436 "FLAG_FABRIC_CONFIGURATION_ASSIGNMENTS": true,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300437 "FLAG_A_LA_CARTE_AUDIT_INFO": true,
438 "FLAG_1810_CR_ADD_CLOUD_OWNER_TO_MSO_REQUEST": true,
439 "FLAG_PRESENT_PROVIDER_NETWORKS_ASSOCIATIONS": true,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300440 "FLAG_1902_NEW_VIEW_EDIT": true,
441 "FLAG_1810_IDENTIFY_SERVICE_FOR_NEW_UI": false,
442 "FLAG_1902_VNF_GROUPING": true,
443 "FLAG_SHOW_VERIFY_SERVICE": true,
444 "FLAG_ASYNC_ALACARTE_VFMODULE": true,
445 "FLAG_ASYNC_ALACARTE_VNF": true,
Ittay Stern6f900cc2018-08-29 17:01:32 +0300446 "FLAG_1810_AAI_LOCAL_CACHE": true,
447 "FLAG_EXP_USE_DEFAULT_HOST_NAME_VERIFIER": false,
448 "FLAG_EXP_ANY_ALACARTE_NEW_INSTANTIATION_UI": false,
449 "FLAG_SUPPLEMENTARY_FILE": true,
450 "FLAG_5G_IN_NEW_INSTANTIATION_UI": true,
451 "FLAG_RESTRICTED_SELECT": false,
452 "FLAG_1810_CR_LET_SELECTING_COLLECTOR_TYPE_UNCONDITIONALLY": true
453 },
454 "drawingBoardStatus": "VIEW",
455 "type": "UPDATE_DRAWING_BOARD_STATUS"
456 },
457 "service": {
458 "serviceHierarchy": {
459 "1a80c596-27e5-4ca9-b5bb-e03a7fd4c0fd": {
460 "service": {
461 "uuid": "1a80c596-27e5-4ca9-b5bb-e03a7fd4c0fd",
462 "invariantUuid": "cdb90b57-ed78-4d44-a5b4-7f43a02ec632",
463 "name": "action-data",
464 "version": "1.0",
465 "toscaModelURL": null,
466 "category": "Network L1-3",
467 "serviceType": "pnf",
468 "serviceRole": "Testing",
Ittay Sternf7926712019-07-07 19:23:03 +0300469 "description": "PASQUALE vMX vPE based on Juniper 17.2 release. Updated with updated VF for v8.0 of VLM",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300470 "serviceEcompNaming": "false",
471 "instantiationType": "Macro",
472 "inputs": {},
473 "vidNotions": {"instantiationUI": "legacy", "modelCategory": "other", "viewEditUI": "legacy"}
474 },
475 "vnfs": {
Ittay Sternf7926712019-07-07 19:23:03 +0300476 "2017-388_PASQUALE-vPE 1": {
Ittay Stern6f900cc2018-08-29 17:01:32 +0300477 "uuid": "0903e1c0-8e03-4936-b5c2-260653b96413",
478 "invariantUuid": "00beb8f9-6d39-452f-816d-c709b9cbb87d",
Ittay Sternf7926712019-07-07 19:23:03 +0300479 "description": "Name PASQUALE vPE Description The provider edge function for the PASQUALE 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",
480 "name": "2017-388_PASQUALE-vPE",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300481 "version": "1.0",
482 "customizationUuid": "280dec31-f16d-488b-9668-4aae55d6648a",
483 "inputs": {},
484 "commands": {},
485 "properties": {
486 "vmxvre_retype": "RE-VMX",
Ittay Sternf7926712019-07-07 19:23:03 +0300487 "vnf_config_template_version": "get_input:2017488_pasqualevpe0_vnf_config_template_version",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300488 "sriov44_net_id": "48d399b3-11ee-48a8-94d2-f0ea94d6be8d",
489 "int_ctl_net_id": "2f323477-6936-4d01-ac53-d849430281d9",
490 "vmxvpfe_sriov41_0_port_mac": "00:11:22:EF:AC:DF",
491 "int_ctl_net_name": "VMX-INTXI",
492 "vmx_int_ctl_prefix": "10.0.0.10",
493 "sriov43_net_id": "da349ca1-6de9-4548-be88-2d88e99bfef5",
494 "sriov42_net_id": "760669ba-013d-4d9b-b0e7-4151fe2e6279",
495 "sriov41_net_id": "25ad52d5-c165-40f8-b3b0-ddfc2373280a",
496 "nf_type": "vPE",
497 "vmxvpfe_int_ctl_ip_1": "10.0.0.10",
498 "is_AVPN_service": "false",
499 "vmx_RSG_name": "vREXI-affinity",
500 "vmx_int_ctl_forwarding": "l2",
501 "vmxvre_oam_ip_0": "10.0.0.10",
502 "vmxvpfe_sriov44_0_port_mac": "00:11:22:EF:AC:DF",
503 "vmxvpfe_sriov41_0_port_vlanstrip": "false",
504 "vmxvpfe_sriov42_0_port_vlanfilter": "4001",
505 "vmxvpfe_sriov44_0_port_unknownunicastallow": "true",
506 "vmxvre_image_name_0": "VRE-ENGINE_17.2-S2.1.qcow2",
507 "vmxvre_instance": "0",
508 "vmxvpfe_sriov43_0_port_mac": "00:11:22:EF:AC:DF",
509 "vmxvre_flavor_name": "ns.c1r16d32.v5",
510 "vmxvpfe_volume_size_0": "40.0",
511 "vmxvpfe_sriov43_0_port_vlanfilter": "4001",
512 "nf_naming": "{ecomp_generated_naming=true}",
513 "multi_stage_design": "true",
514 "nf_naming_code": "Navneet",
515 "vmxvre_name_0": "vREXI",
516 "vmxvpfe_sriov42_0_port_vlanstrip": "false",
517 "vmxvpfe_volume_name_0": "vPFEXI_FBVolume",
518 "vmx_RSG_id": "bd89a33c-13c3-4a04-8fde-1a57eb123141",
519 "vmxvpfe_image_name_0": "VPE_ROUTING-ENGINE_17.2R1-S2.1.qcow2",
520 "vmxvpfe_sriov43_0_port_unknownunicastallow": "true",
521 "vmxvpfe_sriov44_0_port_unknownmulticastallow": "true",
522 "vmxvre_console": "vidconsole",
523 "vmxvpfe_sriov44_0_port_vlanfilter": "4001",
524 "vmxvpfe_sriov42_0_port_mac": "00:11:22:EF:AC:DF",
525 "vmxvpfe_volume_id_0": "47cede15-da2f-4397-a101-aa683220aff3",
526 "vmxvpfe_sriov42_0_port_unknownmulticastallow": "true",
527 "vmxvpfe_sriov44_0_port_vlanstrip": "false",
528 "vf_module_id": "123",
529 "nf_function": "JAI",
530 "vmxvpfe_sriov43_0_port_unknownmulticastallow": "true",
531 "vmxvre_int_ctl_ip_0": "10.0.0.10",
532 "ecomp_generated_naming": "true",
Ittay Sternf7926712019-07-07 19:23:03 +0300533 "AIC_CLLI": "get_input:2017488_pasqualevpe0_AIC_CLLI",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300534 "vnf_name": "mtnj309me6vre",
535 "vmxvpfe_sriov41_0_port_unknownunicastallow": "true",
536 "vmxvre_volume_type_1": "HITACHI",
537 "vmxvpfe_sriov44_0_port_broadcastallow": "true",
538 "vmxvre_volume_type_0": "HITACHI",
539 "vmxvpfe_volume_type_0": "HITACHI",
540 "vmxvpfe_sriov43_0_port_broadcastallow": "true",
Ittay Sternf7926712019-07-07 19:23:03 +0300541 "bandwidth_units": "get_input:2017488_pasqualevpe0_bandwidth_units",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300542 "vnf_id": "123",
543 "vmxvre_oam_prefix": "24",
544 "availability_zone_0": "mtpocfo-kvm-az01",
Ittay Sternf7926712019-07-07 19:23:03 +0300545 "ASN": "get_input:2017488_pasqualevpe0_ASN",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300546 "vmxvre_chassis_i2cid": "161",
547 "vmxvpfe_name_0": "vPFEXI",
Ittay Sternf7926712019-07-07 19:23:03 +0300548 "bandwidth": "get_input:2017488_pasqualevpe0_bandwidth",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300549 "availability_zone_max_count": "1",
550 "vmxvre_volume_size_0": "45.0",
551 "vmxvre_volume_size_1": "50.0",
552 "vmxvpfe_sriov42_0_port_broadcastallow": "true",
553 "vmxvre_oam_gateway": "10.0.0.10",
554 "vmxvre_volume_name_1": "vREXI_FAVolume",
555 "vmxvre_ore_present": "0",
556 "vmxvre_volume_name_0": "vREXI_FBVolume",
557 "vmxvre_type": "0",
Ittay Sternf7926712019-07-07 19:23:03 +0300558 "vnf_instance_name": "get_input:2017488_pasqualevpe0_vnf_instance_name",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300559 "vmxvpfe_sriov41_0_port_unknownmulticastallow": "true",
560 "oam_net_id": "b95eeb1d-d55d-4827-abb4-8ebb94941429",
561 "vmx_int_ctl_len": "24",
562 "vmxvpfe_sriov43_0_port_vlanstrip": "false",
563 "vmxvpfe_sriov41_0_port_broadcastallow": "true",
564 "vmxvre_volume_id_1": "6e86797e-03cd-4fdc-ba72-2957119c746d",
565 "vmxvpfe_sriov41_0_port_vlanfilter": "4001",
566 "nf_role": "Testing",
567 "vmxvre_volume_id_0": "f4eacb79-f687-4e9d-b760-21847c8bb15a",
568 "vmxvpfe_sriov42_0_port_unknownunicastallow": "true",
569 "vmxvpfe_flavor_name": "ns.c20r16d25.v5"
570 },
571 "type": "VF",
Ittay Sternf7926712019-07-07 19:23:03 +0300572 "modelCustomizationName": "2017-388_PASQUALE-vPE 1",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300573 "vfModules": {},
574 "volumeGroups": {},
575 "vfcInstanceGroups": {}
576 },
Ittay Sternf7926712019-07-07 19:23:03 +0300577 "2017-388_PASQUALE-vPE 0": {
Ittay Stern6f900cc2018-08-29 17:01:32 +0300578 "uuid": "afacccf6-397d-45d6-b5ae-94c39734b168",
579 "invariantUuid": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8",
Ittay Sternf7926712019-07-07 19:23:03 +0300580 "description": "Name PASQUALE vPE Description The provider edge function for the PASQUALE 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",
581 "name": "2017-388_PASQUALE-vPE",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300582 "version": "4.0",
583 "customizationUuid": "b3c76f73-eeb5-4fb6-9d31-72a889f1811c",
584 "inputs": {},
585 "commands": {},
586 "properties": {
587 "vmxvre_retype": "RE-VMX",
Ittay Sternf7926712019-07-07 19:23:03 +0300588 "vnf_config_template_version": "get_input:2017488_pasqualevpe0_vnf_config_template_version",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300589 "sriov44_net_id": "48d399b3-11ee-48a8-94d2-f0ea94d6be8d",
590 "int_ctl_net_id": "2f323477-6936-4d01-ac53-d849430281d9",
591 "vmxvpfe_sriov41_0_port_mac": "00:11:22:EF:AC:DF",
592 "int_ctl_net_name": "VMX-INTXI",
593 "vmx_int_ctl_prefix": "10.0.0.10",
594 "sriov43_net_id": "da349ca1-6de9-4548-be88-2d88e99bfef5",
595 "sriov42_net_id": "760669ba-013d-4d9b-b0e7-4151fe2e6279",
596 "sriov41_net_id": "25ad52d5-c165-40f8-b3b0-ddfc2373280a",
597 "nf_type": "vPE",
598 "vmxvpfe_int_ctl_ip_1": "10.0.0.10",
599 "is_AVPN_service": "false",
600 "vmx_RSG_name": "vREXI-affinity",
601 "vmx_int_ctl_forwarding": "l2",
602 "vmxvre_oam_ip_0": "10.0.0.10",
603 "vmxvpfe_sriov44_0_port_mac": "00:11:22:EF:AC:DF",
604 "vmxvpfe_sriov41_0_port_vlanstrip": "false",
605 "vmxvpfe_sriov42_0_port_vlanfilter": "4001",
606 "vmxvpfe_sriov44_0_port_unknownunicastallow": "true",
607 "vmxvre_image_name_0": "VRE-ENGINE_17.2-S2.1.qcow2",
608 "vmxvre_instance": "0",
609 "vmxvpfe_sriov43_0_port_mac": "00:11:22:EF:AC:DF",
610 "vmxvre_flavor_name": "ns.c1r16d32.v5",
611 "vmxvpfe_volume_size_0": "40.0",
612 "vmxvpfe_sriov43_0_port_vlanfilter": "4001",
613 "nf_naming": "{ecomp_generated_naming=true}",
614 "multi_stage_design": "true",
615 "nf_naming_code": "Navneet",
616 "vmxvre_name_0": "vREXI",
617 "vmxvpfe_sriov42_0_port_vlanstrip": "false",
618 "vmxvpfe_volume_name_0": "vPFEXI_FBVolume",
619 "vmx_RSG_id": "bd89a33c-13c3-4a04-8fde-1a57eb123141",
620 "vmxvpfe_image_name_0": "VPE_ROUTING-ENGINE_17.2R1-S2.1.qcow2",
621 "vmxvpfe_sriov43_0_port_unknownunicastallow": "true",
622 "vmxvpfe_sriov44_0_port_unknownmulticastallow": "true",
623 "vmxvre_console": "vidconsole",
624 "vmxvpfe_sriov44_0_port_vlanfilter": "4001",
625 "vmxvpfe_sriov42_0_port_mac": "00:11:22:EF:AC:DF",
626 "vmxvpfe_volume_id_0": "47cede15-da2f-4397-a101-aa683220aff3",
627 "vmxvpfe_sriov42_0_port_unknownmulticastallow": "true",
628 "vmxvpfe_sriov44_0_port_vlanstrip": "false",
629 "vf_module_id": "123",
630 "nf_function": "JAI",
631 "vmxvpfe_sriov43_0_port_unknownmulticastallow": "true",
632 "vmxvre_int_ctl_ip_0": "10.0.0.10",
633 "ecomp_generated_naming": "true",
Ittay Sternf7926712019-07-07 19:23:03 +0300634 "AIC_CLLI": "get_input:2017488_pasqualevpe0_AIC_CLLI",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300635 "vnf_name": "mtnj309me6vre",
636 "vmxvpfe_sriov41_0_port_unknownunicastallow": "true",
637 "vmxvre_volume_type_1": "HITACHI",
638 "vmxvpfe_sriov44_0_port_broadcastallow": "true",
639 "vmxvre_volume_type_0": "HITACHI",
640 "vmxvpfe_volume_type_0": "HITACHI",
641 "vmxvpfe_sriov43_0_port_broadcastallow": "true",
Ittay Sternf7926712019-07-07 19:23:03 +0300642 "bandwidth_units": "get_input:2017488_pasqualevpe0_bandwidth_units",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300643 "vnf_id": "123",
644 "vmxvre_oam_prefix": "24",
645 "availability_zone_0": "mtpocfo-kvm-az01",
Ittay Sternf7926712019-07-07 19:23:03 +0300646 "ASN": "get_input:2017488_pasqualevpe0_ASN",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300647 "vmxvre_chassis_i2cid": "161",
648 "vmxvpfe_name_0": "vPFEXI",
Ittay Sternf7926712019-07-07 19:23:03 +0300649 "bandwidth": "get_input:2017488_pasqualevpe0_bandwidth",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300650 "availability_zone_max_count": "1",
651 "vmxvre_volume_size_0": "45.0",
652 "vmxvre_volume_size_1": "50.0",
653 "vmxvpfe_sriov42_0_port_broadcastallow": "true",
654 "vmxvre_oam_gateway": "10.0.0.10",
655 "vmxvre_volume_name_1": "vREXI_FAVolume",
656 "vmxvre_ore_present": "0",
657 "vmxvre_volume_name_0": "vREXI_FBVolume",
658 "vmxvre_type": "0",
Ittay Sternf7926712019-07-07 19:23:03 +0300659 "vnf_instance_name": "get_input:2017488_pasqualevpe0_vnf_instance_name",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300660 "vmxvpfe_sriov41_0_port_unknownmulticastallow": "true",
661 "oam_net_id": "b95eeb1d-d55d-4827-abb4-8ebb94941429",
662 "vmx_int_ctl_len": "24",
663 "vmxvpfe_sriov43_0_port_vlanstrip": "false",
664 "vmxvpfe_sriov41_0_port_broadcastallow": "true",
665 "vmxvre_volume_id_1": "6e86797e-03cd-4fdc-ba72-2957119c746d",
666 "vmxvpfe_sriov41_0_port_vlanfilter": "4001",
667 "nf_role": "Testing",
668 "vmxvre_volume_id_0": "f4eacb79-f687-4e9d-b760-21847c8bb15a",
669 "vmxvpfe_sriov42_0_port_unknownunicastallow": "true",
670 "vmxvpfe_flavor_name": "ns.c20r16d25.v5"
671 },
672 "type": "VF",
Ittay Sternf7926712019-07-07 19:23:03 +0300673 "modelCustomizationName": "2017-388_PASQUALE-vPE 0",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300674 "vfModules": {},
675 "volumeGroups": {},
676 "vfcInstanceGroups": {}
677 },
Ittay Sternf7926712019-07-07 19:23:03 +0300678 "2017-488_PASQUALE-vPE 0": {
Ittay Stern6f900cc2018-08-29 17:01:32 +0300679 "uuid": "69e09f68-8b63-4cc9-b9ff-860960b5db09",
680 "invariantUuid": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8",
Ittay Sternf7926712019-07-07 19:23:03 +0300681 "description": "Name PASQUALE vPE Description The provider edge function for the PASQUALE 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",
682 "name": "2017-488_PASQUALE-vPE",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300683 "version": "5.0",
684 "customizationUuid": "1da7b585-5e61-4993-b95e-8e6606c81e45",
685 "inputs": {},
686 "commands": {},
687 "properties": {
688 "max_instances": 1,
689 "vmxvre_retype": "RE-VMX",
Ittay Sternf7926712019-07-07 19:23:03 +0300690 "vnf_config_template_version": "get_input:2017488_pasqualevpe0_vnf_config_template_version",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300691 "sriov44_net_id": "48d399b3-11ee-48a8-94d2-f0ea94d6be8d",
692 "int_ctl_net_id": "2f323477-6936-4d01-ac53-d849430281d9",
693 "vmxvpfe_sriov41_0_port_mac": "00:11:22:EF:AC:DF",
694 "int_ctl_net_name": "VMX-INTXI",
695 "vmx_int_ctl_prefix": "10.0.0.10",
696 "sriov43_net_id": "da349ca1-6de9-4548-be88-2d88e99bfef5",
697 "sriov42_net_id": "760669ba-013d-4d9b-b0e7-4151fe2e6279",
698 "sriov41_net_id": "25ad52d5-c165-40f8-b3b0-ddfc2373280a",
699 "nf_type": "vPE",
700 "vmxvpfe_int_ctl_ip_1": "10.0.0.10",
701 "is_AVPN_service": "false",
702 "vmx_RSG_name": "vREXI-affinity",
703 "vmx_int_ctl_forwarding": "l2",
704 "vmxvre_oam_ip_0": "10.0.0.10",
705 "vmxvpfe_sriov44_0_port_mac": "00:11:22:EF:AC:DF",
706 "vmxvpfe_sriov41_0_port_vlanstrip": "false",
707 "vmxvpfe_sriov42_0_port_vlanfilter": "4001",
708 "vmxvpfe_sriov44_0_port_unknownunicastallow": "true",
709 "vmxvre_image_name_0": "VRE-ENGINE_17.2-S2.1.qcow2",
710 "vmxvre_instance": "0",
711 "vmxvpfe_sriov43_0_port_mac": "00:11:22:EF:AC:DF",
712 "vmxvre_flavor_name": "ns.c1r16d32.v5",
713 "vmxvpfe_volume_size_0": "40.0",
714 "vmxvpfe_sriov43_0_port_vlanfilter": "4001",
715 "nf_naming": "{ecomp_generated_naming=true}",
716 "multi_stage_design": "true",
717 "nf_naming_code": "Navneet",
718 "vmxvre_name_0": "vREXI",
719 "vmxvpfe_sriov42_0_port_vlanstrip": "false",
720 "vmxvpfe_volume_name_0": "vPFEXI_FBVolume",
721 "vmx_RSG_id": "bd89a33c-13c3-4a04-8fde-1a57eb123141",
722 "vmxvpfe_image_name_0": "VPE_ROUTING-ENGINE_17.2R1-S2.1.qcow2",
723 "vmxvpfe_sriov43_0_port_unknownunicastallow": "true",
724 "vmxvpfe_sriov44_0_port_unknownmulticastallow": "true",
725 "vmxvre_console": "vidconsole",
726 "vmxvpfe_sriov44_0_port_vlanfilter": "4001",
727 "vmxvpfe_sriov42_0_port_mac": "00:11:22:EF:AC:DF",
728 "vmxvpfe_volume_id_0": "47cede15-da2f-4397-a101-aa683220aff3",
729 "vmxvpfe_sriov42_0_port_unknownmulticastallow": "true",
730 "vmxvpfe_sriov44_0_port_vlanstrip": "false",
731 "vf_module_id": "123",
732 "nf_function": "JAI",
733 "vmxvpfe_sriov43_0_port_unknownmulticastallow": "true",
734 "vmxvre_int_ctl_ip_0": "10.0.0.10",
735 "ecomp_generated_naming": "true",
Ittay Sternf7926712019-07-07 19:23:03 +0300736 "AIC_CLLI": "get_input:2017488_pasqualevpe0_AIC_CLLI",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300737 "vnf_name": "mtnj309me6vre",
738 "vmxvpfe_sriov41_0_port_unknownunicastallow": "true",
739 "vmxvre_volume_type_1": "HITACHI",
740 "vmxvpfe_sriov44_0_port_broadcastallow": "true",
741 "vmxvre_volume_type_0": "HITACHI",
742 "vmxvpfe_volume_type_0": "HITACHI",
743 "vmxvpfe_sriov43_0_port_broadcastallow": "true",
Ittay Sternf7926712019-07-07 19:23:03 +0300744 "bandwidth_units": "get_input:2017488_pasqualevpe0_bandwidth_units",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300745 "vnf_id": "123",
746 "vmxvre_oam_prefix": "24",
747 "availability_zone_0": "mtpocfo-kvm-az01",
Ittay Sternf7926712019-07-07 19:23:03 +0300748 "ASN": "get_input:2017488_pasqualevpe0_ASN",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300749 "vmxvre_chassis_i2cid": "161",
750 "vmxvpfe_name_0": "vPFEXI",
Ittay Sternf7926712019-07-07 19:23:03 +0300751 "bandwidth": "get_input:2017488_pasqualevpe0_bandwidth",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300752 "availability_zone_max_count": "1",
753 "vmxvre_volume_size_0": "45.0",
754 "vmxvre_volume_size_1": "50.0",
755 "vmxvpfe_sriov42_0_port_broadcastallow": "true",
756 "vmxvre_oam_gateway": "10.0.0.10",
757 "vmxvre_volume_name_1": "vREXI_FAVolume",
758 "vmxvre_ore_present": "0",
759 "vmxvre_volume_name_0": "vREXI_FBVolume",
760 "vmxvre_type": "0",
Ittay Sternf7926712019-07-07 19:23:03 +0300761 "vnf_instance_name": "get_input:2017488_pasqualevpe0_vnf_instance_name",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300762 "vmxvpfe_sriov41_0_port_unknownmulticastallow": "true",
763 "oam_net_id": "b95eeb1d-d55d-4827-abb4-8ebb94941429",
764 "vmx_int_ctl_len": "24",
765 "vmxvpfe_sriov43_0_port_vlanstrip": "false",
766 "vmxvpfe_sriov41_0_port_broadcastallow": "true",
767 "vmxvre_volume_id_1": "6e86797e-03cd-4fdc-ba72-2957119c746d",
768 "vmxvpfe_sriov41_0_port_vlanfilter": "4001",
769 "nf_role": "Testing",
770 "vmxvre_volume_id_0": "f4eacb79-f687-4e9d-b760-21847c8bb15a",
771 "vmxvpfe_sriov42_0_port_unknownunicastallow": "true",
772 "vmxvpfe_flavor_name": "ns.c20r16d25.v5"
773 },
774 "type": "VF",
Ittay Sternf7926712019-07-07 19:23:03 +0300775 "modelCustomizationName": "2017-488_PASQUALE-vPE 0",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300776 "vfModules": {
Ittay Sternf7926712019-07-07 19:23:03 +0300777 "2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_vRE_BV..module-1": {
Ittay Stern6f900cc2018-08-29 17:01:32 +0300778 "uuid": "25284168-24bb-4698-8cb4-3f509146eca5",
779 "invariantUuid": "7253ff5c-97f0-4b8b-937c-77aeb4d79aa1",
780 "customizationUuid": "f7e7c365-60cf-49a9-9ebf-a1aa11b9d401",
781 "description": null,
Ittay Sternf7926712019-07-07 19:23:03 +0300782 "name": "2017488PasqualeVpe..PASQUALE_vRE_BV..module-1",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300783 "version": "6",
Ittay Sternf7926712019-07-07 19:23:03 +0300784 "modelCustomizationName": "2017488PasqualeVpe..PASQUALE_vRE_BV..module-1",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300785 "properties": {
786 "minCountInstances": 0,
787 "maxCountInstances": null,
788 "initialCount": 0,
Ittay Sternf7926712019-07-07 19:23:03 +0300789 "vfModuleLabel": "PASQUALE_vRE_BV",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300790 "baseModule": false
791 },
792 "inputs": {},
793 "volumeGroupAllowed": true
794 },
Ittay Sternf7926712019-07-07 19:23:03 +0300795 "2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0": {
Ittay Stern6f900cc2018-08-29 17:01:32 +0300796 "uuid": "f8360508-3f17-4414-a2ed-6bc71161e8db",
797 "invariantUuid": "b34833bb-6aa9-4ad6-a831-70b06367a091",
798 "customizationUuid": "a55961b2-2065-4ab0-a5b7-2fcee1c227e3",
799 "description": null,
Ittay Sternf7926712019-07-07 19:23:03 +0300800 "name": "2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300801 "version": "5",
Ittay Sternf7926712019-07-07 19:23:03 +0300802 "modelCustomizationName": "2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300803 "properties": {
804 "minCountInstances": 1,
805 "maxCountInstances": 1,
806 "initialCount": 1,
Ittay Sternf7926712019-07-07 19:23:03 +0300807 "vfModuleLabel": "PASQUALE_base_vPE_BV",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300808 "baseModule": true
809 },
810 "inputs": {},
811 "volumeGroupAllowed": false
812 },
Ittay Sternf7926712019-07-07 19:23:03 +0300813 "2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_vPFE_BV..module-2": {
Ittay Stern6f900cc2018-08-29 17:01:32 +0300814 "uuid": "0a0dd9d4-31d3-4c3a-ae89-a02f383e6a9a",
815 "invariantUuid": "eff8cc59-53a1-4101-aed7-8cf24ecf8339",
816 "customizationUuid": "3cd946bb-50e0-40d8-96d3-c9023520b557",
817 "description": null,
Ittay Sternf7926712019-07-07 19:23:03 +0300818 "name": "2017488PasqualeVpe..PASQUALE_vPFE_BV..module-2",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300819 "version": "6",
Ittay Sternf7926712019-07-07 19:23:03 +0300820 "modelCustomizationName": "2017488PasqualeVpe..PASQUALE_vPFE_BV..module-2",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300821 "properties": {
822 "minCountInstances": 0,
823 "maxCountInstances": null,
824 "initialCount": 0,
Ittay Sternf7926712019-07-07 19:23:03 +0300825 "vfModuleLabel": "PASQUALE_vPFE_BV",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300826 "baseModule": false
827 },
828 "inputs": {},
829 "volumeGroupAllowed": true
830 }
831 },
832 "volumeGroups": {
Ittay Sternf7926712019-07-07 19:23:03 +0300833 "2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_vRE_BV..module-1": {
Ittay Stern6f900cc2018-08-29 17:01:32 +0300834 "uuid": "25284168-24bb-4698-8cb4-3f509146eca5",
835 "invariantUuid": "7253ff5c-97f0-4b8b-937c-77aeb4d79aa1",
836 "customizationUuid": "f7e7c365-60cf-49a9-9ebf-a1aa11b9d401",
837 "description": null,
Ittay Sternf7926712019-07-07 19:23:03 +0300838 "name": "2017488PasqualeVpe..PASQUALE_vRE_BV..module-1",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300839 "version": "6",
Ittay Sternf7926712019-07-07 19:23:03 +0300840 "modelCustomizationName": "2017488PasqualeVpe..PASQUALE_vRE_BV..module-1",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300841 "properties": {
842 "minCountInstances": 0,
843 "maxCountInstances": null,
844 "initialCount": 0,
Ittay Sternf7926712019-07-07 19:23:03 +0300845 "vfModuleLabel": "PASQUALE_vRE_BV",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300846 "baseModule": false
847 },
848 "inputs": {}
849 },
Ittay Sternf7926712019-07-07 19:23:03 +0300850 "2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_vPFE_BV..module-2": {
Ittay Stern6f900cc2018-08-29 17:01:32 +0300851 "uuid": "0a0dd9d4-31d3-4c3a-ae89-a02f383e6a9a",
852 "invariantUuid": "eff8cc59-53a1-4101-aed7-8cf24ecf8339",
853 "customizationUuid": "3cd946bb-50e0-40d8-96d3-c9023520b557",
854 "description": null,
Ittay Sternf7926712019-07-07 19:23:03 +0300855 "name": "2017488PasqualeVpe..PASQUALE_vPFE_BV..module-2",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300856 "version": "6",
Ittay Sternf7926712019-07-07 19:23:03 +0300857 "modelCustomizationName": "2017488PasqualeVpe..PASQUALE_vPFE_BV..module-2",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300858 "properties": {
859 "minCountInstances": 0,
860 "maxCountInstances": null,
861 "initialCount": 0,
Ittay Sternf7926712019-07-07 19:23:03 +0300862 "vfModuleLabel": "PASQUALE_vPFE_BV",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300863 "baseModule": false
864 },
865 "inputs": {}
866 }
867 },
868 "vfcInstanceGroups": {}
869 }
870 },
871 "networks": {
872 "ExtVL 0": {
873 "uuid": "ddc3f20c-08b5-40fd-af72-c6d14636b986",
874 "invariantUuid": "379f816b-a7aa-422f-be30-17114ff50b7c",
875 "description": "ECOMP generic virtual link (network) base type for all other service-level and global networks",
876 "name": "ExtVL",
877 "version": "37.0",
878 "customizationUuid": "94fdd893-4a36-4d70-b16a-ec29c54c184f",
879 "inputs": {},
880 "commands": {},
881 "properties": {
882 "network_assignments": "{is_external_network=false, ipv4_subnet_default_assignment={min_subnets_count=1}, ecomp_generated_network_assignment=false, ipv6_subnet_default_assignment={min_subnets_count=1}}",
883 "exVL_naming": "{ecomp_generated_naming=true}",
884 "network_flows": "{is_network_policy=false, is_bound_to_vpn=false}",
885 "network_homing": "{ecomp_selected_instance_node_target=false}"
886 },
887 "type": "VL",
888 "modelCustomizationName": "ExtVL 0"
889 }
890 },
Ittay Sternf7926712019-07-07 19:23:03 +0300891 "collectionResources": {},
Ittay Stern6f900cc2018-08-29 17:01:32 +0300892 "configurations": {},
893 "fabricConfigurations": {},
894 "serviceProxies": {},
895 "vfModules": {
Ittay Sternf7926712019-07-07 19:23:03 +0300896 "2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_vRE_BV..module-1": {
Ittay Stern6f900cc2018-08-29 17:01:32 +0300897 "uuid": "25284168-24bb-4698-8cb4-3f509146eca5",
898 "invariantUuid": "7253ff5c-97f0-4b8b-937c-77aeb4d79aa1",
899 "customizationUuid": "f7e7c365-60cf-49a9-9ebf-a1aa11b9d401",
900 "description": null,
Ittay Sternf7926712019-07-07 19:23:03 +0300901 "name": "2017488PasqualeVpe..PASQUALE_vRE_BV..module-1",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300902 "version": "6",
Ittay Sternf7926712019-07-07 19:23:03 +0300903 "modelCustomizationName": "2017488PasqualeVpe..PASQUALE_vRE_BV..module-1",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300904 "properties": {
905 "minCountInstances": 0,
906 "maxCountInstances": null,
907 "initialCount": 0,
Ittay Sternf7926712019-07-07 19:23:03 +0300908 "vfModuleLabel": "PASQUALE_vRE_BV",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300909 "baseModule": false
910 },
911 "inputs": {},
912 "volumeGroupAllowed": true
913 },
Ittay Sternf7926712019-07-07 19:23:03 +0300914 "2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0": {
Ittay Stern6f900cc2018-08-29 17:01:32 +0300915 "uuid": "f8360508-3f17-4414-a2ed-6bc71161e8db",
916 "invariantUuid": "b34833bb-6aa9-4ad6-a831-70b06367a091",
917 "customizationUuid": "a55961b2-2065-4ab0-a5b7-2fcee1c227e3",
918 "description": null,
Ittay Sternf7926712019-07-07 19:23:03 +0300919 "name": "2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300920 "version": "5",
Ittay Sternf7926712019-07-07 19:23:03 +0300921 "modelCustomizationName": "2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300922 "properties": {
923 "minCountInstances": 1,
924 "maxCountInstances": 1,
925 "initialCount": 1,
Ittay Sternf7926712019-07-07 19:23:03 +0300926 "vfModuleLabel": "PASQUALE_base_vPE_BV",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300927 "baseModule": true
928 },
929 "inputs": {},
930 "volumeGroupAllowed": false
931 },
Ittay Sternf7926712019-07-07 19:23:03 +0300932 "2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_vPFE_BV..module-2": {
Ittay Stern6f900cc2018-08-29 17:01:32 +0300933 "uuid": "0a0dd9d4-31d3-4c3a-ae89-a02f383e6a9a",
934 "invariantUuid": "eff8cc59-53a1-4101-aed7-8cf24ecf8339",
935 "customizationUuid": "3cd946bb-50e0-40d8-96d3-c9023520b557",
936 "description": null,
Ittay Sternf7926712019-07-07 19:23:03 +0300937 "name": "2017488PasqualeVpe..PASQUALE_vPFE_BV..module-2",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300938 "version": "6",
Ittay Sternf7926712019-07-07 19:23:03 +0300939 "modelCustomizationName": "2017488PasqualeVpe..PASQUALE_vPFE_BV..module-2",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300940 "properties": {
941 "minCountInstances": 0,
942 "maxCountInstances": null,
943 "initialCount": 0,
Ittay Sternf7926712019-07-07 19:23:03 +0300944 "vfModuleLabel": "PASQUALE_vPFE_BV",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300945 "baseModule": false
946 },
947 "inputs": {},
948 "volumeGroupAllowed": true
949 }
950 },
951 "volumeGroups": {
Ittay Sternf7926712019-07-07 19:23:03 +0300952 "2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_vRE_BV..module-1": {
Ittay Stern6f900cc2018-08-29 17:01:32 +0300953 "uuid": "25284168-24bb-4698-8cb4-3f509146eca5",
954 "invariantUuid": "7253ff5c-97f0-4b8b-937c-77aeb4d79aa1",
955 "customizationUuid": "f7e7c365-60cf-49a9-9ebf-a1aa11b9d401",
956 "description": null,
Ittay Sternf7926712019-07-07 19:23:03 +0300957 "name": "2017488PasqualeVpe..PASQUALE_vRE_BV..module-1",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300958 "version": "6",
Ittay Sternf7926712019-07-07 19:23:03 +0300959 "modelCustomizationName": "2017488PasqualeVpe..PASQUALE_vRE_BV..module-1",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300960 "properties": {
961 "minCountInstances": 0,
962 "maxCountInstances": null,
963 "initialCount": 0,
Ittay Sternf7926712019-07-07 19:23:03 +0300964 "vfModuleLabel": "PASQUALE_vRE_BV",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300965 "baseModule": false
966 },
967 "inputs": {}
968 },
Ittay Sternf7926712019-07-07 19:23:03 +0300969 "2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_vPFE_BV..module-2": {
Ittay Stern6f900cc2018-08-29 17:01:32 +0300970 "uuid": "0a0dd9d4-31d3-4c3a-ae89-a02f383e6a9a",
971 "invariantUuid": "eff8cc59-53a1-4101-aed7-8cf24ecf8339",
972 "customizationUuid": "3cd946bb-50e0-40d8-96d3-c9023520b557",
973 "description": null,
Ittay Sternf7926712019-07-07 19:23:03 +0300974 "name": "2017488PasqualeVpe..PASQUALE_vPFE_BV..module-2",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300975 "version": "6",
Ittay Sternf7926712019-07-07 19:23:03 +0300976 "modelCustomizationName": "2017488PasqualeVpe..PASQUALE_vPFE_BV..module-2",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300977 "properties": {
978 "minCountInstances": 0,
979 "maxCountInstances": null,
980 "initialCount": 0,
Ittay Sternf7926712019-07-07 19:23:03 +0300981 "vfModuleLabel": "PASQUALE_vPFE_BV",
Ittay Stern6f900cc2018-08-29 17:01:32 +0300982 "baseModule": false
983 },
984 "inputs": {}
985 }
986 },
987 "pnfs": {},
988 "vnfGroups": {
989 "groupingservicefortest..ResourceInstanceGroup..0": {
990 "type": "VnfGroup",
991 "invariantUuid": "4bb2e27e-ddab-4790-9c6d-1f731bc14a45",
992 "uuid": "daeb6568-cef8-417f-9075-ed259ce59f48",
993 "version": "1",
994 "name": "groupingservicefortest..ResourceInstanceGroup..0",
995 "modelCustomizationName": "groupingservicefortest..ResourceInstanceGroup..0",
996 "properties": {
997 "contained_resource_type": "VF",
998 "role": "SERVICE-ACCESS",
999 "function": "DATA",
1000 "description": "DDD0",
1001 "type": "LOAD-GROUP",
1002 "ecomp_generated_naming": "true"
1003 },
1004 "members": {
Ittay Sternf7926712019-07-07 19:23:03 +03001005 "vdorothea_svc_vprs_proxy 0": {
Ittay Stern6f900cc2018-08-29 17:01:32 +03001006 "uuid": "65fadfa8-a0d9-443f-95ad-836cd044e26c",
1007 "invariantUuid": "f4baae0c-b3a5-4ca1-a777-afbffe7010bc",
Ittay Sternf7926712019-07-07 19:23:03 +03001008 "description": "A Proxy for Service vDOROTHEA_Svc_vPRS",
1009 "name": "vDOROTHEA_Svc_vPRS Service Proxy",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001010 "version": "1.0",
1011 "customizationUuid": "bdb63d23-e132-4ce7-af2c-a493b4cafac9",
1012 "inputs": {},
1013 "commands": {},
1014 "properties": {},
1015 "type": "Service Proxy",
1016 "sourceModelUuid": "da7827a2-366d-4be6-8c68-a69153c61274",
1017 "sourceModelInvariant": "24632e6b-584b-4f45-80d4-fefd75fd9f14",
Ittay Sternf7926712019-07-07 19:23:03 +03001018 "sourceModelName": "vDOROTHEA_Svc_vPRS"
Ittay Stern6f900cc2018-08-29 17:01:32 +03001019 }
1020 }
1021 },
1022 "groupingservicefortest..ResourceInstanceGroup..1": {
1023 "type": "VnfGroup",
1024 "invariantUuid": "a704112d-dbc6-4e56-8d4e-aec57e95ef9a",
1025 "uuid": "c2b300e6-45de-4e5e-abda-3032bee2de56",
1026 "version": "1",
1027 "name": "groupingservicefortest..ResourceInstanceGroup..1",
1028 "modelCustomizationName": "groupingservicefortest..ResourceInstanceGroup..1",
1029 "properties": {
1030 "contained_resource_type": "VF",
1031 "role": "SERVICE-ACCESS",
1032 "function": "SIGNALING",
1033 "description": "DDD1",
1034 "type": "LOAD-GROUP",
1035 "ecomp_generated_naming": "true"
1036 },
1037 "members": {
1038 "tsbc0001vm001_svc_proxy 0": {
1039 "uuid": "65fadfa8-a0d9-443f-95ad-836cd044e26c",
1040 "invariantUuid": "f4baae0c-b3a5-4ca1-a777-afbffe7010bc",
1041 "description": "A Proxy for Service tsbc0001vm001_Svc",
1042 "name": "tsbc0001vm001_Svc Service Proxy",
1043 "version": "1.0",
1044 "customizationUuid": "3d814462-30fb-4c62-b997-9aa360d27ead",
1045 "inputs": {},
1046 "commands": {},
1047 "properties": {},
1048 "type": "Service Proxy",
1049 "sourceModelUuid": "28aeb8f6-5620-4148-8bfb-a5fb406f0309",
1050 "sourceModelInvariant": "c989ab9a-33c7-46ec-b521-1b2daef5f047",
1051 "sourceModelName": "tsbc0001vm001_Svc"
1052 }
1053 }
1054 }
1055 }
1056 },
1057 "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6": {
1058 "service": {
1059 "uuid": "b75e0d22-05ff-4448-9266-5f0d4e1dbbd6",
1060 "invariantUuid": "5b9c0f33-eec1-484a-bf77-736a6644d7a8",
1061 "name": "Using VID for VoIP Network Instantiations Shani",
1062 "version": "1.0",
1063 "toscaModelURL": null,
1064 "category": "VoIP Call Control",
1065 "serviceType": "",
1066 "serviceRole": "",
1067 "description": "Using VID for VoIP Network Instantiations Shani",
1068 "serviceEcompNaming": "true",
1069 "instantiationType": "ClientConfig",
1070 "inputs": {},
1071 "vidNotions": {"instantiationUI": "legacy", "modelCategory": "other", "viewEditUI": "legacy"}
1072 },
1073 "vnfs": {},
1074 "networks": {
1075 "AIC30_CONTRAIL_BASIC 0": {
1076 "uuid": "ac815c68-35b7-4ea4-9d04-92d2f844b27c",
1077 "invariantUuid": "de01afb5-532b-451d-aac4-ff9ff0644060",
1078 "description": "Basic contrail 3.0.x L3 network for AIC 3.x sites. ",
1079 "name": "AIC30_CONTRAIL_BASIC",
1080 "version": "3.0",
1081 "customizationUuid": "e94d61f7-b4b2-489a-a4a7-30b1a1a80daf",
1082 "inputs": {},
1083 "commands": {},
1084 "properties": {
1085 "network_assignments": "{is_external_network=false, ipv4_subnet_default_assignment={min_subnets_count=1}, ecomp_generated_network_assignment=false, ipv6_subnet_default_assignment={min_subnets_count=1}}",
1086 "exVL_naming": "{ecomp_generated_naming=true}",
1087 "network_flows": "{is_network_policy=false, is_bound_to_vpn=false}",
1088 "network_scope": "Service",
1089 "network_type": "AIC30_CONTRAIL_BASIC",
1090 "network_technology": "Contrail",
1091 "network_homing": "{ecomp_selected_instance_node_target=false}"
1092 },
1093 "type": "VL",
1094 "modelCustomizationName": "AIC30_CONTRAIL_BASIC 0"
1095 }
1096 },
Ittay Sternf7926712019-07-07 19:23:03 +03001097 "collectionResources": {},
Ittay Stern6f900cc2018-08-29 17:01:32 +03001098 "configurations": {},
1099 "fabricConfigurations": {},
1100 "serviceProxies": {},
1101 "vfModules": {},
1102 "volumeGroups": {},
1103 "pnfs": {},
1104 "vnfGroups": {}
1105 }
1106 },
1107 "serviceInstance": {
1108 "1a80c596-27e5-4ca9-b5bb-e03a7fd4c0fd": {
1109 "vnfs": {
Ittay Sternf7926712019-07-07 19:23:03 +03001110 "2017-488_PASQUALE-vPE 0": {
Ittay Stern6f900cc2018-08-29 17:01:32 +03001111 "action": "None",
1112 "inMaint": false,
1113 "rollbackOnFailure": "true",
Ittay Sternf7926712019-07-07 19:23:03 +03001114 "originalName": "2017-488_PASQUALE-vPE 0",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001115 "isMissingData": false,
1116 "trackById": "stigekyxrqi",
1117 "vfModules": {
Ittay Sternf7926712019-07-07 19:23:03 +03001118 "2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0": {
1119 "2017488_pasqualevpe0..2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0gytfi": {
Ittay Stern6f900cc2018-08-29 17:01:32 +03001120 "isMissingData": false,
1121 "sdncPreReload": null,
1122 "modelInfo": {
1123 "modelType": "VFmodule",
1124 "modelInvariantId": "b34833bb-6aa9-4ad6-a831-70b06367a091",
1125 "modelVersionId": "f8360508-3f17-4414-a2ed-6bc71161e8db",
Ittay Sternf7926712019-07-07 19:23:03 +03001126 "modelName": "2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001127 "modelVersion": "5",
1128 "modelCustomizationId": "a55961b2-2065-4ab0-a5b7-2fcee1c227e3",
Ittay Sternf7926712019-07-07 19:23:03 +03001129 "modelCustomizationName": "2017488PasqualeVpe..PASQUALE_base_vPE_BV..module-0"
Ittay Stern6f900cc2018-08-29 17:01:32 +03001130 },
1131 "instanceParams": [{}],
1132 "trackById": "3oj23o7nupo"
1133 }
1134 }
1135 },
Ittay Sternf7926712019-07-07 19:23:03 +03001136 "vnfStoreKey": "2017-488_PASQUALE-vPE 0",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001137 "uuid": "69e09f68-8b63-4cc9-b9ff-860960b5db09",
1138 "productFamilyId": "d8a6ed93-251c-47ca-adc9-86671fd19f4c",
Ittay Sternf7926712019-07-07 19:23:03 +03001139 "lcpCloudRegionId": "AAIAIC25",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001140 "tenantId": "092eb9e8e4b7412e8787dd091bc58e86",
1141 "lineOfBusiness": "ONAP",
1142 "platformName": "xxx1",
1143 "modelInfo": {
1144 "modelInvariantId": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8",
1145 "modelVersionId": "69e09f68-8b63-4cc9-b9ff-860960b5db09",
Ittay Sternf7926712019-07-07 19:23:03 +03001146 "modelName": "2017-488_PASQUALE-vPE",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001147 "modelVersion": "5.0",
Ittay Sternf7926712019-07-07 19:23:03 +03001148 "modelCustomizationName": "2017-488_PASQUALE-vPE 0",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001149 "modelCustomizationId": "1da7b585-5e61-4993-b95e-8e6606c81e45",
1150 "uuid": "69e09f68-8b63-4cc9-b9ff-860960b5db09"
1151 },
1152 "legacyRegion": "11111111",
1153 "instanceParams": [{}]
1154 },
Ittay Sternf7926712019-07-07 19:23:03 +03001155 "2017-388_PASQUALE-vPE 0": {
Ittay Stern6f900cc2018-08-29 17:01:32 +03001156 "action": "Create",
1157 "inMaint": false,
1158 "rollbackOnFailure": "true",
Ittay Sternf7926712019-07-07 19:23:03 +03001159 "originalName": "2017-388_PASQUALE-vPE 0",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001160 "isMissingData": false,
1161 "trackById": "nib719t5vca",
1162 "vfModules": {},
Ittay Sternf7926712019-07-07 19:23:03 +03001163 "vnfStoreKey": "2017-388_PASQUALE-vPE 0",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001164 "productFamilyId": "d8a6ed93-251c-47ca-adc9-86671fd19f4c",
Ittay Sternf7926712019-07-07 19:23:03 +03001165 "lcpCloudRegionId": "AAIAIC25",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001166 "legacyRegion": "11111",
1167 "tenantId": "092eb9e8e4b7412e8787dd091bc58e86",
1168 "platformName": "platform",
1169 "lineOfBusiness": "zzz1",
1170 "instanceParams": [{}],
1171 "modelInfo": {
1172 "modelInvariantId": "72e465fe-71b1-4e7b-b5ed-9496118ff7a8",
1173 "modelVersionId": "afacccf6-397d-45d6-b5ae-94c39734b168",
Ittay Sternf7926712019-07-07 19:23:03 +03001174 "modelName": "2017-388_PASQUALE-vPE",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001175 "modelVersion": "4.0",
1176 "modelCustomizationId": "b3c76f73-eeb5-4fb6-9d31-72a889f1811c",
Ittay Sternf7926712019-07-07 19:23:03 +03001177 "modelCustomizationName": "2017-388_PASQUALE-vPE 0",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001178 "uuid": "afacccf6-397d-45d6-b5ae-94c39734b168"
1179 },
1180 "uuid": "afacccf6-397d-45d6-b5ae-94c39734b168"
1181 },
Ittay Sternf7926712019-07-07 19:23:03 +03001182 "2017-388_PASQUALE-vPE 1": {
Ittay Stern6f900cc2018-08-29 17:01:32 +03001183 "action": "None",
1184 "inMaint": false,
1185 "rollbackOnFailure": "true",
Ittay Sternf7926712019-07-07 19:23:03 +03001186 "originalName": "2017-388_PASQUALE-vPE 1",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001187 "isMissingData": false,
1188 "trackById": "cv7l1ak8vpe",
1189 "vfModules": {},
Ittay Sternf7926712019-07-07 19:23:03 +03001190 "vnfStoreKey": "2017-388_PASQUALE-vPE 1",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001191 "productFamilyId": "d8a6ed93-251c-47ca-adc9-86671fd19f4c",
Ittay Sternf7926712019-07-07 19:23:03 +03001192 "lcpCloudRegionId": "AAIAIC25",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001193 "legacyRegion": "123",
1194 "tenantId": "092eb9e8e4b7412e8787dd091bc58e86",
1195 "platformName": "platform",
1196 "lineOfBusiness": "ONAP",
1197 "instanceParams": [{}],
1198 "modelInfo": {
1199 "modelInvariantId": "00beb8f9-6d39-452f-816d-c709b9cbb87d",
1200 "modelVersionId": "0903e1c0-8e03-4936-b5c2-260653b96413",
Ittay Sternf7926712019-07-07 19:23:03 +03001201 "modelName": "2017-388_PASQUALE-vPE",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001202 "modelVersion": "1.0",
1203 "modelCustomizationId": "280dec31-f16d-488b-9668-4aae55d6648a",
Ittay Sternf7926712019-07-07 19:23:03 +03001204 "modelCustomizationName": "2017-388_PASQUALE-vPE 1",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001205 "uuid": "0903e1c0-8e03-4936-b5c2-260653b96413"
1206 },
1207 "uuid": "0903e1c0-8e03-4936-b5c2-260653b96413"
1208 }
1209 },
1210 "instanceParams": [{}],
1211 "validationCounter": 0,
1212 "existingNames": {"yoav": ""},
1213 "existingVNFCounterMap": {
1214 "69e09f68-8b63-4cc9-b9ff-860960b5db09": 1,
1215 "afacccf6-397d-45d6-b5ae-94c39734b168": 1,
1216 "0903e1c0-8e03-4936-b5c2-260653b96413": 1
1217 },
1218 "existingVnfGroupCounterMap": {
1219 "daeb6568-cef8-417f-9075-ed259ce59f48": 0,
1220 "c2b300e6-45de-4e5e-abda-3032bee2de56": -1
1221 },
1222 "existingNetworksCounterMap": {"ddc3f20c-08b5-40fd-af72-c6d14636b986": 1},
1223 "networks": {
1224 "ExtVL 0": {
1225 "inMaint": false,
1226 "rollbackOnFailure": "true",
1227 "originalName": "ExtVL 0",
1228 "isMissingData": false,
1229 "trackById": "s6okajvv2n8",
1230 "networkStoreKey": "ExtVL 0",
1231 "productFamilyId": "d8a6ed93-251c-47ca-adc9-86671fd19f4c",
Ittay Sternf7926712019-07-07 19:23:03 +03001232 "lcpCloudRegionId": "AAIAIC25",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001233 "legacyRegion": "12355555",
1234 "tenantId": "092eb9e8e4b7412e8787dd091bc58e86",
1235 "platformName": "platform",
1236 "lineOfBusiness": null,
1237 "instanceParams": [{}],
1238 "modelInfo": {
1239 "modelInvariantId": "379f816b-a7aa-422f-be30-17114ff50b7c",
1240 "modelVersionId": "ddc3f20c-08b5-40fd-af72-c6d14636b986",
1241 "modelName": "ExtVL",
1242 "modelVersion": "37.0",
1243 "modelCustomizationId": "94fdd893-4a36-4d70-b16a-ec29c54c184f",
1244 "modelCustomizationName": "ExtVL 0",
1245 "uuid": "ddc3f20c-08b5-40fd-af72-c6d14636b986"
1246 },
1247 "uuid": "ddc3f20c-08b5-40fd-af72-c6d14636b986"
1248 }
1249 },
1250 "vnfGroups": {
1251 "groupingservicefortest..ResourceInstanceGroup..0": {
1252 "inMaint": false,
1253 "rollbackOnFailure": "true",
1254 "originalName": "groupingservicefortest..ResourceInstanceGroup..0",
1255 "isMissingData": false,
1256 "trackById": "se0obn93qq",
1257 "vnfGroupStoreKey": "groupingservicefortest..ResourceInstanceGroup..0",
1258 "instanceName": "groupingservicefortestResourceInstanceGroup0",
1259 "instanceParams": [{}],
1260 "modelInfo": {
1261 "modelInvariantId": "4bb2e27e-ddab-4790-9c6d-1f731bc14a45",
1262 "modelVersionId": "daeb6568-cef8-417f-9075-ed259ce59f48",
1263 "modelName": "groupingservicefortest..ResourceInstanceGroup..0",
1264 "modelVersion": "1",
1265 "modelCustomizationName": "groupingservicefortest..ResourceInstanceGroup..0",
1266 "uuid": "daeb6568-cef8-417f-9075-ed259ce59f48"
1267 },
1268 "uuid": "daeb6568-cef8-417f-9075-ed259ce59f48"
1269 }
1270 },
1271 "instanceName": "yoav",
1272 "globalSubscriberId": "e433710f-9217-458d-a79d-1c7aff376d89",
1273 "subscriptionServiceType": "TYLER SILVIA",
1274 "owningEntityId": "d61e6f2d-12fa-4cc2-91df-7c244011d6fc",
1275 "productFamilyId": "d8a6ed93-251c-47ca-adc9-86671fd19f4c",
Ittay Sternf7926712019-07-07 19:23:03 +03001276 "lcpCloudRegionId": "AAIAIC25",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001277 "tenantId": "092eb9e8e4b7412e8787dd091bc58e86",
1278 "aicZoneId": "ATL53",
1279 "pause": null,
1280 "projectName": "WATKINS",
1281 "rollbackOnFailure": "true",
1282 "bulkSize": 1,
1283 "aicZoneName": "AAIATLTE-ATL53",
1284 "owningEntityName": "WayneHolland",
1285 "testApi": "VNF_API",
1286 "isEcompGeneratedNaming": false,
1287 "tenantName": "USP-SIP-IC-24335-T-01",
1288 "modelInfo": {
1289 "modelInvariantId": "cdb90b57-ed78-4d44-a5b4-7f43a02ec632",
1290 "modelVersionId": "1a80c596-27e5-4ca9-b5bb-e03a7fd4c0fd",
1291 "modelName": "action-data",
1292 "modelVersion": "1.0",
1293 "uuid": "1a80c596-27e5-4ca9-b5bb-e03a7fd4c0fd"
1294 },
1295 "isALaCarte": false,
1296 "name": "action-data",
1297 "version": "1.0",
Ittay Sternf7926712019-07-07 19:23:03 +03001298 "description": "PASQUALE vMX vPE based on Juniper 17.2 release. Updated with updated VF for v8.0 of VLM",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001299 "category": "Network L1-3",
1300 "uuid": "1a80c596-27e5-4ca9-b5bb-e03a7fd4c0fd",
1301 "invariantUuid": "cdb90b57-ed78-4d44-a5b4-7f43a02ec632",
1302 "serviceType": "pnf",
1303 "serviceRole": "Testing",
1304 "vidNotions": {"instantiationUI": "legacy", "modelCategory": "other", "viewEditUI": "legacy"},
1305 "isMultiStepDesign": true
1306 }
1307 },
1308 "lcpRegionsAndTenants": {
1309 "lcpRegionList": [{
Ittay Sternf7926712019-07-07 19:23:03 +03001310 "id": "AAIAIC25",
1311 "name": "AAIAIC25 (AIC)",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001312 "isPermitted": true,
1313 "cloudOwner": "irma-aic"
1314 }, {"id": "hvf6", "name": "hvf6 (AIC)", "isPermitted": true, "cloudOwner": "irma-aic"}],
1315 "lcpRegionsTenantsMap": {
Ittay Sternf7926712019-07-07 19:23:03 +03001316 "AAIAIC25": [{
Ittay Stern6f900cc2018-08-29 17:01:32 +03001317 "id": "092eb9e8e4b7412e8787dd091bc58e86",
1318 "name": "USP-SIP-IC-24335-T-01",
1319 "isPermitted": true,
1320 "cloudOwner": "irma-aic"
1321 }],
1322 "hvf6": [{
1323 "id": "bae71557c5bb4d5aac6743a4e5f1d054",
1324 "name": "AIN Web Tool-15-D-testalexandria",
1325 "isPermitted": true,
1326 "cloudOwner": "irma-aic"
1327 }, {
Einat Vinouzee1f79742019-08-27 16:01:01 +03001328 "id": "d0a3e3f2964542259d155a81c41aadc3",
1329 "name": "test-hvf6-09",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001330 "isPermitted": true,
1331 "cloudOwner": "irma-aic"
1332 }, {
1333 "id": "fa45ca53c80b492fa8be5477cd84fc2b",
1334 "name": "ro-T112",
1335 "isPermitted": true,
1336 "cloudOwner": "irma-aic"
1337 }, {
Ittay Stern6f900cc2018-08-29 17:01:32 +03001338 "id": "cbb99fe4ada84631b7baf046b6fd2044",
1339 "name": "DN5242-Nov16-T3",
1340 "isPermitted": true,
1341 "cloudOwner": "irma-aic"
1342 }]
1343 }
1344 },
1345 "subscribers": [{
1346 "id": "ERICA5779-Subscriber-2",
1347 "name": "ERICA5779-Subscriber-2",
1348 "isPermitted": false
1349 }, {
1350 "id": "ERICA5779-Subscriber-3",
1351 "name": "ERICA5779-Subscriber-3",
1352 "isPermitted": false
1353 }, {
1354 "id": "ERICA5779-Subscriber-4",
1355 "name": "ERICA5779-Subscriber-5",
1356 "isPermitted": false
1357 }, {
1358 "id": "ERICA5779-TestSub-PWT-101",
1359 "name": "ERICA5779-TestSub-PWT-101",
1360 "isPermitted": false
1361 }, {
1362 "id": "ERICA5779-TestSub-PWT-102",
1363 "name": "ERICA5779-TestSub-PWT-102",
1364 "isPermitted": false
1365 }, {
1366 "id": "ERICA5779-TestSub-PWT-103",
1367 "name": "ERICA5779-TestSub-PWT-103",
1368 "isPermitted": false
1369 }, {
1370 "id": "31739f3e-526b-11e6-beb8-9e71128cae77",
1371 "name": "CRAIG/ROBERTS",
1372 "isPermitted": false
1373 }, {"id": "DHV1707-TestSubscriber-2", "name": "DALE BRIDGES", "isPermitted": false}, {
1374 "id": "jimmy-example",
1375 "name": "JimmyExampleCust-20161102",
1376 "isPermitted": false
1377 }, {"id": "jimmy-example2", "name": "JimmyExampleCust-20161103", "isPermitted": false}, {
1378 "id": "CAR_2020_ER",
1379 "name": "CAR_2020_ER",
1380 "isPermitted": true
1381 }, {
1382 "id": "a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb",
1383 "name": "Emanuel",
1384 "isPermitted": false
1385 }, {
1386 "id": "21014aa2-526b-11e6-beb8-9e71128cae77",
1387 "name": "JULIO ERICKSON",
1388 "isPermitted": false
1389 }, {
1390 "id": "DHV1707-TestSubscriber-1",
1391 "name": "LLOYD BRIDGES",
1392 "isPermitted": false
1393 }, {"id": "e433710f-9217-458d-a79d-1c7aff376d89", "name": "SILVIA ROBBINS", "isPermitted": true}],
1394 "productFamilies": null,
1395 "serviceTypes": {
1396 "e433710f-9217-458d-a79d-1c7aff376d89": [{
1397 "id": "17",
1398 "name": "JOHANNA_SANTOS",
1399 "isPermitted": false
1400 }, {"id": "16", "name": "LINDSEY", "isPermitted": false}, {
1401 "id": "2",
1402 "name": "Emanuel",
1403 "isPermitted": false
1404 }, {"id": "5", "name": "Kennedy", "isPermitted": false}, {
1405 "id": "14",
1406 "name": "SSD",
1407 "isPermitted": false
1408 }, {"id": "1", "name": "TYLER SILVIA", "isPermitted": true}, {
1409 "id": "12",
1410 "name": "VPMS",
1411 "isPermitted": false
1412 }, {"id": "3", "name": "vJamie", "isPermitted": false}, {
1413 "id": "0",
1414 "name": "vRichardson",
1415 "isPermitted": false
1416 }, {"id": "18", "name": "vCarroll", "isPermitted": false}, {
1417 "id": "9",
Ittay Sternf7926712019-07-07 19:23:03 +03001418 "name": "vFLORENCE",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001419 "isPermitted": false
Ittay Sternf7926712019-07-07 19:23:03 +03001420 }, {"id": "13", "name": "vWINIFRED", "isPermitted": false}, {
Ittay Stern6f900cc2018-08-29 17:01:32 +03001421 "id": "10",
1422 "name": "vMNS",
1423 "isPermitted": false
1424 }, {"id": "15", "name": "vMOG", "isPermitted": false}, {
1425 "id": "8",
1426 "name": "vOTA",
1427 "isPermitted": false
Ittay Sternf7926712019-07-07 19:23:03 +03001428 }, {"id": "11", "name": "vEsmeralda", "isPermitted": false}, {
Ittay Stern6f900cc2018-08-29 17:01:32 +03001429 "id": "6",
Ittay Sternf7926712019-07-07 19:23:03 +03001430 "name": "vPorfirio",
Ittay Stern6f900cc2018-08-29 17:01:32 +03001431 "isPermitted": false
1432 }, {"id": "7", "name": "vVM", "isPermitted": false}, {"id": "4", "name": "vVoiceMail", "isPermitted": false}]
1433 },
Einat Vinouzee1f79742019-08-27 16:01:01 +03001434 "aicZones": [
1435 {
1436 "id": "NFT1",
1437 "name": "NFTJSSSS-NFT1"
1438 },
1439 {
1440 "id": "JAG1",
1441 "name": "YUDFJULP-JAG1"
1442 },
1443 {
1444 "id": "YYY1",
1445 "name": "UUUAIAAI-YYY1"
1446 },
1447 {
1448 "id": "AVT1",
1449 "name": "AVTRFLHD-AVT1"
1450 },
1451 {
1452 "id": "ATL34",
1453 "name": "ATLSANAI-ATL34"
1454 }
1455 ],
Ittay Stern6f900cc2018-08-29 17:01:32 +03001456 "categoryParameters": {
1457 "owningEntityList": [{
1458 "id": "aaa1",
1459 "name": "aaa1"
1460 }, {"id": "d61e6f2d-12fa-4cc2-91df-7c244011d6fc", "name": "WayneHolland"}, {
1461 "id": "Melissa",
1462 "name": "Melissa"
1463 }],
1464 "projectList": [{"id": "WATKINS", "name": "WATKINS"}, {"id": "x1", "name": "x1"}, {"id": "yyy1", "name": "yyy1"}],
1465 "lineOfBusinessList": [{"id": "ONAP", "name": "ONAP"}, {"id": "zzz1", "name": "zzz1"}],
1466 "platformList": [{"id": "platform", "name": "platform"}, {"id": "xxx1", "name": "xxx1"}]
1467 },
1468 "type": "UPDATE_LCP_REGIONS_AND_TENANTS"
1469 }
1470 }
1471}
Ittay Sternf7926712019-07-07 19:23:03 +03001472
1473function getNetworkModel(){
1474 return {
1475 "customizationUuid":"94fdd893-4a36-4d70-b16a-ec29c54c184f",
1476 "name":"ExtVL",
1477 "version":"37.0",
1478 "description":"ECOMP generic virtual link (network) base type for all other service-level and global networks",
1479 "uuid":"ddc3f20c-08b5-40fd-af72-c6d14636b986",
1480 "invariantUuid":"379f816b-a7aa-422f-be30-17114ff50b7c",
1481 "max":1,
1482 "min":0,
1483 "isEcompGeneratedNaming":false,
1484 "type":"VL",
1485 "modelCustomizationName":"ExtVL 0",
1486 "roles":["network role 1"," network role 2"],
1487 "properties":{
1488 "network_role":"network role 1, network role 2",
1489 "network_assignments":
1490 "{is_external_network=false, ipv4_subnet_default_assignment={min_subnets_count=1}, ecomp_generated_network_assignment=false, ipv6_subnet_default_assignment={min_subnets_count=1}}",
1491 "exVL_naming":"{ecomp_generated_naming=true}","network_flows":"{is_network_policy=false, is_bound_to_vpn=false}",
1492 "network_homing":"{ecomp_selected_instance_node_target=false}"
1493 }
1494 };
1495
1496}
1497
1498function getNetworkInstance() {
1499 return {
1500 "modelCustomizationId": "94fdd893-4a36-4d70-b16a-ec29c54c184f",
1501 "modelId": "ddc3f20c-08b5-40fd-af72-c6d14636b986",
1502 "modelUniqueId": "94fdd893-4a36-4d70-b16a-ec29c54c184f",
1503 "missingData": true,
1504 "id": "NETWORK4_INSTANCE_ID",
1505 "action": "None",
1506 "orchStatus": "Created",
1507 "provStatus": "preprov",
1508 "inMaint": false,
1509 "instanceId": "NETWORK4_INSTANCE_ID",
1510 "instanceType": "CONTRAIL30_HIMELGUARD",
1511 "instanceName": "NETWORK4_INSTANCE_NAME",
1512 "name": "NETWORK4_INSTANCE_NAME",
1513 "modelName": "ExtVL 0",
1514 "type": "VL",
1515 "isEcompGeneratedNaming": false,
1516 "networkStoreKey": "NETWORK4_INSTANCE_ID",
1517 "typeName": "N",
1518 "menuActions": {"edit": {}, "showAuditInfo": {}, "duplicate": {}, "remove": {}, "delete": {}, "undoDelete": {}},
1519 "isFailed": false,
1520 "statusMessage": "",
1521 "statusProperties": [{"key": "Prov Status:", "value": "preprov", "testId": "provStatus"}, {
1522 "key": "Orch Status:",
1523 "value": "Created",
1524 "testId": "orchStatus"
1525 }],
1526 "trackById": "1wvr73xl999",
1527 "parentType": "",
1528 "componentInfoType": "Network",
1529 "errors": {}
1530 };
1531}