aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/models
diff options
context:
space:
mode:
authorEinat Vinouze <einat.vinouze@intl.att.com>2019-08-27 16:01:01 +0300
committerIttay Stern <ittay.stern@att.com>2019-09-09 07:01:36 +0000
commite1f7974f0badbd4440d5b7ea5f1b1cb2d4973818 (patch)
tree46be9cdc44cbb475527bc3c43df23d16f7579d29 /vid-webpack-master/src/app/shared/models
parente25b88b5a7a0f3bf63ca7160a441b53145484bcc (diff)
Adding feature: Replace vfmodule
Issue-ID: VID-603 Change-Id: I59068a0979d6fb733e4243c8f78921f396dc9d17 Signed-off-by: Einat Vinouze <einat.vinouze@intl.att.com> Signed-off-by: Amichai Hemli <amichai.hemli@intl.att.com> Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-webpack-master/src/app/shared/models')
-rw-r--r--vid-webpack-master/src/app/shared/models/serviceInstance.ts6
-rw-r--r--vid-webpack-master/src/app/shared/models/serviceInstanceActions.ts5
-rw-r--r--vid-webpack-master/src/app/shared/models/vnfInstance.ts2
3 files changed, 11 insertions, 2 deletions
diff --git a/vid-webpack-master/src/app/shared/models/serviceInstance.ts b/vid-webpack-master/src/app/shared/models/serviceInstance.ts
index d9167be16..cae69a6c8 100644
--- a/vid-webpack-master/src/app/shared/models/serviceInstance.ts
+++ b/vid-webpack-master/src/app/shared/models/serviceInstance.ts
@@ -19,6 +19,7 @@ export class ServiceInstance extends NodeInstance{
projectName: string;
owningEntityId: string;
owningEntityName: string;
+ latestAvailableVersion: Number;
pause: boolean;
bulkSize: number;
vnfs: { [vnf_module_model_name: string]: VnfInstance; };
@@ -26,6 +27,7 @@ export class ServiceInstance extends NodeInstance{
vnfGroups : {[vnf_module_model_name: string]: VnfGroupInstance; };
networks: { [vnf_module_model_name: string]: NetworkInstance; };
isDirty : boolean;
+ isUpgraded : boolean;
instanceParams: {[key: string]: string}[];
rollbackOnFailure: boolean;
subscriberName: string;
@@ -39,6 +41,7 @@ export class ServiceInstance extends NodeInstance{
optionalGroupMembersMap?: { [path: string]: VnfMember[]; };
statusMessage: string;
vidNotions?: VidNotions;
+ upgradedVFMSonsCounter: number;
constructor() {
super();
@@ -56,6 +59,7 @@ export class ServiceInstance extends NodeInstance{
this.networks = {};
this.vnfGroups = {};
this.bulkSize = 1;
+ this.isUpgraded = false;
+ this.upgradedVFMSonsCounter = 0;
}
-
}
diff --git a/vid-webpack-master/src/app/shared/models/serviceInstanceActions.ts b/vid-webpack-master/src/app/shared/models/serviceInstanceActions.ts
index cda2d0e88..0c8756d50 100644
--- a/vid-webpack-master/src/app/shared/models/serviceInstanceActions.ts
+++ b/vid-webpack-master/src/app/shared/models/serviceInstanceActions.ts
@@ -1,11 +1,14 @@
export enum ServiceInstanceActions{
Delete = "Delete",
+ Replace = "Replace",
+ Upgrade = "Upgrade",
Update="Update",
Create="Create",
None="None",
Resume = "Resume",
Update_Delete = 'Update_Delete',
- None_Delete = 'None_Delete'
+ None_Delete = 'None_Delete',
+ None_Upgrade = 'None_Upgrade'
}
export enum ServiceAction {
INSTANTIATE = 'INSTANTIATE',
diff --git a/vid-webpack-master/src/app/shared/models/vnfInstance.ts b/vid-webpack-master/src/app/shared/models/vnfInstance.ts
index 6082de67e..60f5c48ef 100644
--- a/vid-webpack-master/src/app/shared/models/vnfInstance.ts
+++ b/vid-webpack-master/src/app/shared/models/vnfInstance.ts
@@ -8,10 +8,12 @@ export class VnfInstance extends Level1Instance {
vnfStoreKey : string;
position: number;
statusMessage?: string;
+ upgradedVFMSonsCounter: number;
constructor() {
super();
this.vfModules = {};
this.vnfStoreKey = null;
+ this.upgradedVFMSonsCounter = 0;
}
}