projects
/
osm
/
NG-UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Feature-9518: Scale-in/Scale-out commands triggered from the UI
[osm/NG-UI.git]
/
src
/
models
/
CommonModel.ts
diff --git
a/src/models/CommonModel.ts
b/src/models/CommonModel.ts
index
508a96a
..
2d1c9c3
100644
(file)
--- a/
src/models/CommonModel.ts
+++ b/
src/models/CommonModel.ts
@@
-16,10
+16,13
@@
Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
*/
import { HttpHeaders } from '@angular/common/http';
Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
*/
import { HttpHeaders } from '@angular/common/http';
+import { NSD } from 'NSInstanceModel';
+import { VNFD } from 'VNFDModel';
/**
* @file Model for Commonly used information.
*/
/**
* @file Model for Commonly used information.
*/
+// tslint:disable: completed-docs
/**
* handle count @enum
*/
/**
* handle count @enum
*/
@@
-47,6
+50,7
@@
export enum CONFIGCONSTANT {
operationalStateFirstStep = 'init',
operationalStateSecondStep = 'running',
operationalStateThirdStep = 'failed',
operationalStateFirstStep = 'init',
operationalStateSecondStep = 'running',
operationalStateThirdStep = 'failed',
+ operationalStateFourthStep = 'scaling',
configStateFirstStep = 'init',
configStateSecondStep = 'configured',
configStateThirdStep = 'failed',
configStateFirstStep = 'init',
configStateSecondStep = 'configured',
configStateThirdStep = 'failed',
@@
-107,17
+111,21
@@
export interface URLPARAMS {
nsConfig?: object;
projectID?: string;
username?: string;
nsConfig?: object;
projectID?: string;
username?: string;
+ vnfID?: [];
+ nsID?: string;
+ nsd?: NSD;
+ data?: VNFD[];
}
/** Handle the Delete params */
export interface DELETEPARAMS {
identifier: string;
name?: string;
}
/** Handle the Delete params */
export interface DELETEPARAMS {
identifier: string;
name?: string;
- shortName: string;
projectName?: string;
userName?: string;
username?: string;
page?: string;
id?: string;
projectName?: string;
userName?: string;
username?: string;
page?: string;
id?: string;
+ productName?: string;
}
/** Interface for the Delete Details */
}
/** Interface for the Delete Details */
@@
-152,6
+160,16
@@
export interface TARSETTINGS {
buffer: ArrayBuffer;
header_offset?: Number;
size?: number;
buffer: ArrayBuffer;
header_offset?: Number;
size?: number;
+ linkname?: string;
+ uname?: string;
+ gname?: string;
+}
+/** Interface for File Settings */
+export interface FILESETTINGS {
+ 'type'?: string;
+ linkname?: string;
+ owner?: string;
+ group?: string;
}
/** Interface for Package information */
export interface PACKAGEINFO {
}
/** Interface for Package information */
export interface PACKAGEINFO {
@@
-202,12
+220,25
@@
export const WIM_TYPES: TYPESECTION[] = [
{ value: 'onos_vpls', title: 'ONOS vpls' },
{ value: 'tapi', title: 'TAPI' }
];
{ value: 'onos_vpls', title: 'ONOS vpls' },
{ value: 'tapi', title: 'TAPI' }
];
+/** Constants of the OSM Repo Types */
+export const OSMREPO_TYPES: TYPESECTION[] = [
+ { value: 'osm', title: 'OSM' }
+];
/** Interface for List, Add WIM & SDN Types */
export interface TYPESECTION {
value: string;
title: string;
}
/** Interface for List, Add WIM & SDN Types */
export interface TYPESECTION {
value: string;
title: string;
}
-/** Interface for VIM type Openstack's Config */
+/** Interface for PRIMITIVETYPES */
+export interface PRIMITIVETYPES {
+ title: string;
+ value: string;
+}
+/** Interface for the PRIMITIVEDATA */
+export interface PRIMITIVEDATA {
+ parameter: {}[];
+}
+/** Constant for VIM type Openstack's Config */
export const TYPEOPENSTACK: {} = {
sdn_controller: '',
APIversion: '',
export const TYPEOPENSTACK: {} = {
sdn_controller: '',
APIversion: '',
@@
-230,7
+261,7
@@
export const TYPEOPENSTACK: {} = {
additional_conf: '',
use_existing_flavors: ''
};
additional_conf: '',
use_existing_flavors: ''
};
-/**
Interface
for VIM type AWS's Config */
+/**
Constant
for VIM type AWS's Config */
export const TYPEAWS: {} = {
sdn_controller: '',
vpc_cidr_block: '',
export const TYPEAWS: {} = {
sdn_controller: '',
vpc_cidr_block: '',
@@
-242,7
+273,7
@@
export const TYPEAWS: {} = {
flavor_info: '',
additional_conf: ''
};
flavor_info: '',
additional_conf: ''
};
-/**
Interface
for VIM type VMWARE's Config */
+/**
Constant
for VIM type VMWARE's Config */
export const TYPEVMWARE: {} = {
sdn_controller: '',
orgname: '',
export const TYPEVMWARE: {} = {
sdn_controller: '',
orgname: '',
@@
-262,14
+293,14
@@
export const TYPEVMWARE: {} = {
vrops_password: '',
additional_conf: ''
};
vrops_password: '',
additional_conf: ''
};
-/**
Interface
for VIM type OPENVIMNEBULA's Config */
+/**
Constant
for VIM type OPENVIMNEBULA's Config */
export const TYPEOPENVIMNEBULA: {} = {
sdn_controller: '',
sdn_port_mapping: '',
vim_network_name: '',
additional_conf: ''
};
export const TYPEOPENVIMNEBULA: {} = {
sdn_controller: '',
sdn_port_mapping: '',
vim_network_name: '',
additional_conf: ''
};
-/**
Interface
for VIM type AZURE's Config */
+/**
Constant
for VIM type AZURE's Config */
export const TYPEAZURE: {} = {
subscription_id: '',
region_name: '',
export const TYPEAZURE: {} = {
subscription_id: '',
region_name: '',
@@
-277,7
+308,7
@@
export const TYPEAZURE: {} = {
vnet_name: '',
flavors_pattern: ''
};
vnet_name: '',
flavors_pattern: ''
};
-/**
Interface
for VIM other type Config */
+/**
Constant
for VIM other type Config */
export const TYPEOTERS: {} = {
sdn_controller: '',
sdn_port_mapping: '',
export const TYPEOTERS: {} = {
sdn_controller: '',
sdn_port_mapping: '',
@@
-287,3
+318,13
@@
export const TYPEOTERS: {} = {
additional_conf: '',
use_existing_flavors: ''
};
additional_conf: '',
use_existing_flavors: ''
};
+/** Interface for Domains */
+export interface DOMAINS {
+ project_domain_name: string;
+ user_domain_name: string;
+}
+/** Interface for Login */
+export interface LOGINPARAMS {
+ username?: string;
+ password?: string;
+}