blob: 316bf3e8b092e3f77324548b497f3fb82443b3b0 [file] [log] [blame]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03001import {VNFModel} from "./vnfModel";
2import {VnfInstance} from "./vnfInstance";
3import {VfModuleTreeNode} from "./vfModuleTreeNode";
4
5export class VnfTreeNode {
6 modelId: string;
7 name: string;
8 modelName: string;
9 type: string;
10 children: VfModuleTreeNode[];
11
12 constructor(instance: VnfInstance, vnfModel: VNFModel){
13 this.name = instance.instanceName || vnfModel['properties'].ecomp_generated_naming == 'false' ? vnfModel.modelCustomizationName : '<Automatically Assigned>';
14 this.modelId = vnfModel.uuid;
15 this.modelName = vnfModel.modelCustomizationName;
16 this.type = vnfModel.type;
17 }
18}