X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fmodels%2FNSInstanceModel.ts;h=99af8d7c3d9d7a52bcc3f32f185e134ff1a841f7;hb=3d81a28cd6df38cb070c6a6afbbd1528a766f16e;hp=62b9c5c9e6e42196185a588929c9193d2c470dd5;hpb=f2ae5462f9c1d6b7a649eb389c5a4c990501b5c4;p=osm%2FNG-UI.git diff --git a/src/models/NSInstanceModel.ts b/src/models/NSInstanceModel.ts index 62b9c5c..99af8d7 100644 --- a/src/models/NSInstanceModel.ts +++ b/src/models/NSInstanceModel.ts @@ -149,6 +149,62 @@ export interface NSDVLD { df: DF[]; } +/** Interface for Vm Migration */ +export interface VMMIGRATION { + lcmOperationType: string; + vnfInstanceId: string; + migrateToHost?: string; + vdu?: VDUPARAM; +} + +/** Interface for vdu for Vm Migration */ +export interface VDUPARAM { + vduId?: string; + vduCountIndex?: string; +} + +/** Interface for Ns Update */ +export interface NSUPDATE { + lcmOperationType: string; + updateType: string; + nsInstanceId: string; + changeVnfPackageData: CHANGEVNFDATA; +} + +/** Interface for changeVnfPackageData in Ns Update */ +export interface CHANGEVNFDATA { + vnfdId: string; + vnfInstanceId: string; +} + +/** Interface for terminate vnf in Ns Update */ +export interface TERMINATEVNF { + lcmOperationType: string; + updateType: string; + nsInstanceId: string; + removeVnfInstanceId: string; +} + +/** Interface for Start, Stop & Rebuild */ +export interface StartStopRebuild { + updateType: string; + operateVnfData: OPERATEVNFDATA; +} + +/** Interface for operateVnfData in Start, Stop and Rebuild */ +export interface OPERATEVNFDATA { + additionalParam: ADDITIONALPARAMS; + vnfInstanceId: string; + changeStateTo: string; +} + +/** Interface for additionalParam in Start, Stop and Rebuild */ +export interface ADDITIONALPARAMS { + 'run-day1': boolean; + 'vdu_id': string; + 'count-index': string; +} + /** Interface for InstantiateParam */ interface InstantiateParam { nsdId: string; @@ -189,19 +245,19 @@ export interface NSDInstanceData { } /** Interface for the operationparams */ -export interface OPERATIONPARAMS{ +export interface OPERATIONPARAMS { scaleType?: string; scaleVnfData?: SCALEVNFDATA; } /** Interface for the scaleVnfData */ -export interface SCALEVNFDATA{ +export interface SCALEVNFDATA { scaleVnfType?: string; scaleByStepData?: SCALEBYSTEPDATA; } /** Interface for the scaleByStepData */ -export interface SCALEBYSTEPDATA{ +export interface SCALEBYSTEPDATA { 'scaling-group-descriptor'?: string; 'member-vnf-index'?: string; } @@ -295,7 +351,7 @@ export interface VLINFO { } /** Interface for the VNFR Info */ -export interface VNFRINFO{ +export interface VNFRINFO { vimID: string; _id: string; ip: string;