blob: 7dbe92e8a3d2601d6604cc593e0c2b40a97dae29 [file] [log] [blame]
Ittay Sternf7926712019-07-07 19:23:03 +03001import {TreeNodeModel} from "./treeNodeModel";
2import {NetworkInstance} from "./networkInstance";
3import {Level1Model} from "./nodeModel";
4import {VrfInstance} from "./vrfInstance";
5
6export 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