Feature-9518: Scale-in/Scale-out commands triggered from the UI
* In NS Instances page. Click "Manual Scaling" in the actions menu.
* Then a new pop-up page will opened.
* In the popup there will be a list box which is filled with the all scaling-group-descriptor names captured from all VNFDs in the NSD and whoose scaling-type is "manual".
* Select scale in / scale out.
* When the scaling-group-descriptor name and the scaling direction are selected then Click Apply button.
* The pop-up window is closed and the page is directed to "History of operations" page for this NS.
Change-Id: Iaaa1500bcabea4ebda89f6c11ea91b28396aa42f
Signed-off-by: Barath Kumar R <barath.r@tataelxsi.co.in>
diff --git a/src/models/NSInstanceModel.ts b/src/models/NSInstanceModel.ts
index 6bafcdd..ce44122 100644
--- a/src/models/NSInstanceModel.ts
+++ b/src/models/NSInstanceModel.ts
@@ -19,7 +19,7 @@
* @file Model for NS Instance related information.
*/
// tslint:disable: completed-docs
-import { CONSTITUENTVNFD, DF, VLD } from 'NSDModel';
+import { DF, VLD } from 'NSDModel';
import { VNFDAdminDetails } from 'VNFDModel';
/** Interface for NSInstanceDetails */
@@ -34,6 +34,7 @@
'operational-status': string;
'datacenter': string;
nsd: NSD;
+ 'nsd-id': string;
name: string;
'name-ref': string;
id: string;
@@ -104,7 +105,6 @@
version: string;
_id: string;
id: string;
- 'constituent-vnfd': CONSTITUENTVNFD[];
vendor: string;
vdur: string[];
'connection-point': CONNECTIONPOINT[];
@@ -179,6 +179,29 @@
state?: string;
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 */