diff options
author | Einat Vinouze <einat.vinouze@intl.att.com> | 2019-08-27 16:01:01 +0300 |
---|---|---|
committer | Ittay Stern <ittay.stern@att.com> | 2019-09-09 07:01:36 +0000 |
commit | e1f7974f0badbd4440d5b7ea5f1b1cb2d4973818 (patch) | |
tree | 46be9cdc44cbb475527bc3c43df23d16f7579d29 /vid-webpack-master/src/app/shared/storeUtil/utils/vnf/vnf.actions.ts | |
parent | e25b88b5a7a0f3bf63ca7160a441b53145484bcc (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/storeUtil/utils/vnf/vnf.actions.ts')
-rw-r--r-- | vid-webpack-master/src/app/shared/storeUtil/utils/vnf/vnf.actions.ts | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/vid-webpack-master/src/app/shared/storeUtil/utils/vnf/vnf.actions.ts b/vid-webpack-master/src/app/shared/storeUtil/utils/vnf/vnf.actions.ts index 25179fe2e..6fb844e52 100644 --- a/vid-webpack-master/src/app/shared/storeUtil/utils/vnf/vnf.actions.ts +++ b/vid-webpack-master/src/app/shared/storeUtil/utils/vnf/vnf.actions.ts @@ -8,7 +8,14 @@ export enum VNFActions { REMOVE_VNF_INSTANCE = "REMOVE_VNF_INSTANCE", DELETE_ACTION_VNF_INSTANCE = "DELETE_VNF_INSTANCE", UNDO_DELETE_ACTION_VNF_INSTANCE = "UNDO_DELETE_VNF_INSTANCE", - UPDATE_VNF_POSITION = "UPDATE_VNF_POISTION" + UPDATE_VNF_POSITION = "UPDATE_VNF_POISTION", + UPGRADE_VNF_ACTION = "UPGRADE_VNF_ACTION", + UNDO_UPGRADE_VNF_ACTION = "UNDO_UPGRADE_VNF_ACTION" +} + +export enum VNFMethods{ + UPGRADE = "upgrade", + UNDO_UPGRADE = "undoUpgrade" } @@ -32,6 +39,16 @@ export interface UpdateVnfInstanceAction extends Action { vnfStoreKey?:string; } +export interface UpgradeVnfAction extends Action { + serviceUuid: string; + vnfStoreKey:string; +} + +export interface UndoUpgradeVnfAction extends Action { + serviceUuid: string; + vnfStoreKey:string; +} + export interface RemoveVnfInstanceAction extends Action { vnfStoreKey: string; serviceId?: string; @@ -82,9 +99,14 @@ export const updateVnfPosition: ActionCreator<UpdateVnfPosition> = (node, instan vnfStoreKey : vnfStoreKey }); +export const upgradeVnf: ActionCreator<UpgradeVnfAction> = (vnfStoreKey, serviceUuid) => ({ + type: VNFActions.UPGRADE_VNF_ACTION, + serviceUuid, + vnfStoreKey +}); - - - - - +export const undoUpgradeVnf: ActionCreator<UndoUpgradeVnfAction> = (vnfStoreKey, serviceUuid) => ({ + type: VNFActions.UNDO_UPGRADE_VNF_ACTION, + serviceUuid, + vnfStoreKey +}); |