X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fmodels%2FNSInstanceModel.ts;h=ffa95a2e970913ca52a85ec5f94cd6a5d8b6296f;hb=319d328d0bbb1e156ac767851c8c33acb518dc94;hp=ce44122d625e98e6bde285eeab250c54a0e99e51;hpb=07698abcf56f875e53734a29dd4092a53461cc1a;p=osm%2FNG-UI.git diff --git a/src/models/NSInstanceModel.ts b/src/models/NSInstanceModel.ts index ce44122..ffa95a2 100644 --- a/src/models/NSInstanceModel.ts +++ b/src/models/NSInstanceModel.ts @@ -18,7 +18,7 @@ /** * @file Model for NS Instance related information. */ -// tslint:disable: completed-docs +/* eslint-disable */ import { DF, VLD } from 'NSDModel'; import { VNFDAdminDetails } from 'VNFDModel'; @@ -48,6 +48,9 @@ export interface NSInstanceDetails { instantiate_params: InstantiateParam; additionalParamsForNs: AdditionalParamForN; _id?: string; + vcaStatus?: object; + startTime?: string; + 'create-time'?: string; } /** Interface for Admin */ @@ -66,7 +69,6 @@ interface ROAdmin { } /** Interface for _Admin */ -// tslint:disable-next-line:class-name interface _Admin { 'projects_write': string[]; deployed: DeployedAdmin; @@ -113,7 +115,6 @@ export interface NSD { } /** Interface for _AdminDetails */ -// tslint:disable-next-line:class-name export interface _AdminDetails { usageState: string; projects_write: string[]; @@ -148,6 +149,87 @@ 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 VerticalScaling */ +export interface VerticalScaling { + lcmOperationType: string; + verticalScale: string; + nsInstanceId: string; + changeVnfFlavorData: CHANGEVNFFLAVORDATAPARAM; +} + +/** Interface for changeVnfFlavorData in Vertical Scaling */ +export interface CHANGEVNFFLAVORDATAPARAM { + vnfInstanceId: string; + additionalParams: ADDITIONALPARAM; + +} + +/** Interface for additionalParam in Vertical Scaling */ +export interface ADDITIONALPARAM { + vduid: string; + vduCountIndex: string; + virtualMemory: number; + sizeOfStorage: number; + numVirtualCpu: number; + +} + /** Interface for InstantiateParam */ interface InstantiateParam { nsdId: string; @@ -179,27 +261,30 @@ export interface NSDInstanceData { state?: string; memberIndex?: DF[]; nsConfig?: object; + vcaStatus?: object; adminDetails?: object; vnfID?: string[]; nsd?: NSD; operationParams?: OPERATIONPARAMS; 'nsd-id': string; + constituent: string[]; + 'create-time'?: string; } /** 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; } @@ -293,7 +378,7 @@ export interface VLINFO { } /** Interface for the VNFR Info */ -export interface VNFRINFO{ +export interface VNFRINFO { vimID: string; _id: string; ip: string; @@ -303,3 +388,18 @@ export interface VNFRINFO{ vnfdId: string; memberIndex: string; } + +/** Interface for vdu mappings */ +export interface VDUMAP { + vdu_mappings?: VDUMAPPINGS[]; +} + +/** Interface for vdu Mappings */ +export interface VDUMAPPINGS { + vduId?: string; + 'vdu-id'?: string; + countIndex?: string; + 'count-index'?: string; + runDay1?: Boolean; + 'run-day1'?: Boolean; +}