X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fmodels%2FNSInstanceModel.ts;h=ce44122d625e98e6bde285eeab250c54a0e99e51;hb=07698abcf56f875e53734a29dd4092a53461cc1a;hp=72cd42bad8f9322c2fcdf8e3d5eac838ffeb57e2;hpb=3b4814aa2d3dec621dadb52f058ba95a3dc3a86a;p=osm%2FNG-UI.git diff --git a/src/models/NSInstanceModel.ts b/src/models/NSInstanceModel.ts index 72cd42b..ce44122 100644 --- a/src/models/NSInstanceModel.ts +++ b/src/models/NSInstanceModel.ts @@ -18,8 +18,8 @@ /** * @file Model for NS Instance related information. */ - -import { CONSTITUENTVNFD, VLD, VNFDCONNECTIONPOINTREF } from 'NSDModel'; +// tslint:disable: completed-docs +import { DF, VLD } from 'NSDModel'; import { VNFDAdminDetails } from 'VNFDModel'; /** Interface for NSInstanceDetails */ @@ -34,9 +34,9 @@ export interface NSInstanceDetails { 'operational-status': string; 'datacenter': string; nsd: NSD; + 'nsd-id': string; name: string; 'name-ref': string; - 'short-name': string; id: string; 'nsd-name-ref': string; description: string; @@ -100,17 +100,16 @@ interface VNFD { /** Interface for NSD */ export interface NSD { description: string; - vld: NSDVLD[]; _admin: VNFDAdminDetails; name: string; version: string; _id: string; - 'short-name': string; id: string; - 'constituent-vnfd': CONSTITUENTVNFD[]; vendor: string; vdur: string[]; 'connection-point': CONNECTIONPOINT[]; + 'virtual-link-desc': NSDVLD[]; + df: DF[]; } /** Interface for _AdminDetails */ @@ -146,8 +145,7 @@ export interface NSDVLD { 'vim-network-name': string; id: string; 'type': string; - 'vnfd-connection-point-ref': VNFDCONNECTIONPOINTREF[]; - 'short-name': string; + df: DF[]; } /** Interface for InstantiateParam */ @@ -179,8 +177,31 @@ export interface NSDInstanceData { ConfigStatus: string; DetailedStatus: string; state?: string; - memberIndex?: object; + memberIndex?: DF[]; nsConfig?: object; + adminDetails?: object; + vnfID?: string[]; + nsd?: NSD; + operationParams?: OPERATIONPARAMS; + 'nsd-id': string; +} + +/** Interface for the operationparams */ +export interface OPERATIONPARAMS{ + scaleType?: string; + scaleVnfData?: SCALEVNFDATA; +} + +/** Interface for the scaleVnfData */ +export interface SCALEVNFDATA{ + scaleVnfType?: string; + scaleByStepData?: SCALEBYSTEPDATA; +} + +/** Interface for the scaleByStepData */ +export interface SCALEBYSTEPDATA{ + 'scaling-group-descriptor'?: string; + 'member-vnf-index'?: string; } /** Interface for the nsInfo */ @@ -199,7 +220,7 @@ export interface NSINSTANCENODES { nodeTypeRef?: string; name?: string; 'type'?: string; - vnfdCP?: VNFDCONNECTIONPOINTREF[]; + vnfdCP?: DF[]; vimNetworkName?: string; shortName?: string; cp?: CONNECTIONPOINT[]; @@ -214,6 +235,8 @@ export interface NSINSTANCENODES { vnfdRef?: string; vndfCPRef?: string; selectorId?: string; + reflexive?: Boolean; + nodeIndex?: number; } /** Interface for the connection-point */