Ittay Stern | f792671 | 2019-07-07 19:23:03 +0300 | [diff] [blame] | 1 | import {TreeNodeModel} from "./treeNodeModel"; |
| 2 | import {NetworkInstance} from "./networkInstance"; |
| 3 | import {Level1Model} from "./nodeModel"; |
| 4 | import {VrfInstance} from "./vrfInstance"; |
| 5 | |
| 6 | export class VrfTreeNode extends TreeNodeModel { |
| 7 | vrfStoreKey : string; |
| 8 | typeName: string; |
| 9 | menuActions: { [p: string]: { method: Function; visible: Function; enable: Function } }; |
| 10 | isFailed: boolean; |
| 11 | statusMessage?: string; |
| 12 | |
| 13 | constructor(instance: VrfInstance, vrfModel: Level1Model, vrfStoreKey : string){ |
| 14 | super(instance, vrfModel); |
| 15 | this.name = instance.instanceName? instance.instanceName: '<Automatically Assigned>'; |
| 16 | this.modelName = vrfModel.modelCustomizationName; |
| 17 | this.type = vrfModel.type; |
| 18 | this.isEcompGeneratedNaming = vrfModel.isEcompGeneratedNaming; |
| 19 | this.vrfStoreKey = vrfStoreKey; |
| 20 | } |
| 21 | } |
| 22 | |