summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/models/serviceInstance.ts
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2018-08-29 17:01:32 +0300
committerIttay Stern <ittay.stern@att.com>2019-02-18 18:35:30 +0200
commit6f900cc45d7dd7f97430812b86b5c1d1693c8ae3 (patch)
tree936005c364dc5a7264d6304d4777c3d83494db22 /vid-webpack-master/src/app/shared/models/serviceInstance.ts
parent67d99f816cc583643c35193197594cf78d8ce60a (diff)
merge from ecomp a88f0072 - Modern UI
Issue-ID: VID-378 Change-Id: Ibcb23dd27f550cf32ce2fe0239f0f496ae014ff6 Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-webpack-master/src/app/shared/models/serviceInstance.ts')
-rw-r--r--vid-webpack-master/src/app/shared/models/serviceInstance.ts43
1 files changed, 35 insertions, 8 deletions
diff --git a/vid-webpack-master/src/app/shared/models/serviceInstance.ts b/vid-webpack-master/src/app/shared/models/serviceInstance.ts
index a952430b0..38b4ac35d 100644
--- a/vid-webpack-master/src/app/shared/models/serviceInstance.ts
+++ b/vid-webpack-master/src/app/shared/models/serviceInstance.ts
@@ -1,8 +1,11 @@
import {VnfInstance} from "./vnfInstance";
+import {NetworkInstance} from "./networkInstance";
+import {NodeInstance} from "./nodeInstance";
+import {VnfGroupInstance} from "./vnfGroupInstance";
+import {VnfMember} from "./VnfMember";
-export class ServiceInstance {
- instanceName: string;
- isUserProvidedNaming: boolean;
+export class ServiceInstance extends NodeInstance{
+ isEcompGeneratedNaming: boolean;
globalSubscriberId: string;
productFamilyId: string;
subscriptionServiceType: string;
@@ -16,13 +19,37 @@ export class ServiceInstance {
owningEntityName: string;
pause: boolean;
bulkSize: number;
- vnfs: { [vnf_module_model_name: string] : VnfInstance; };
- instanceParams: { [key: string] : string; };
- rollbackOnFailure : boolean;
- subscriberName : string;
+ vnfs: { [vnf_module_model_name: string]: VnfInstance; };
+ vnfGroups : {[vnf_module_model_name: string]: VnfGroupInstance; };
+ networks: { [vnf_module_model_name: string]: NetworkInstance; };
+ isDirty : boolean;
+ instanceParams: {[key: string]: string}[];
+ rollbackOnFailure: boolean;
+ subscriberName: string;
+ validationCounter: number;
+ existingNames: {[key: string] : any};
+ modelInavariantId?: string;
+ existingVNFCounterMap : { [vnf_module_model_name: string]: number; };
+ existingVnfGroupCounterMap : { [vnf_group_module_model_name: string]: number; };
+ existingNetworksCounterMap : { [network_module_model_name: string]: number; };
+ optionalGroupMembersMap?: { [path: string]: VnfMember[]; };
+ isFailed: boolean;
+ statusMessage: string;
constructor() {
+ super();
+ this.isDirty = false;
this.vnfs = {};
- this.instanceParams = {};
+ this.instanceParams = [];
+ this.validationCounter = 0;
+ this.existingNames = {};
+ this.existingVNFCounterMap = {};
+ this.existingVnfGroupCounterMap = {};
+ this.existingNetworksCounterMap = {};
+ this.optionalGroupMembersMap = {};
+ this.networks = {};
+ this.vnfGroups = {};
+ this.bulkSize = 1;
}
+
}