Sonsino, Ofir (os0695) | ff76b5e | 2018-07-10 15:57:37 +0300 | [diff] [blame] | 1 | import {VNFModel} from "./vnfModel"; |
| 2 | import {VnfInstance} from "./vnfInstance"; |
| 3 | import {VfModuleTreeNode} from "./vfModuleTreeNode"; |
| 4 | |
| 5 | export 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 | } |