X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Fmodels%2FCommonModel.ts;h=437899ad788f6fd5123deeb4ae1ddacd19c8bea5;hb=875b4a15496b0d99168d9ecd46e1827c61836f7a;hp=7284bbce96cf062135faf255d57f3c44cd1bf6c9;hpb=16070582faea47ad9771fdace526136aff3038c0;p=osm%2FNG-UI.git diff --git a/src/models/CommonModel.ts b/src/models/CommonModel.ts index 7284bbc..437899a 100644 --- a/src/models/CommonModel.ts +++ b/src/models/CommonModel.ts @@ -16,6 +16,9 @@ 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 { EXECUTEDACTIONS } from 'OperationalModel'; +import { VNFD } from 'VNFDModel'; /** * @file Model for Commonly used information. @@ -39,7 +42,9 @@ export enum CONSTANTNUMBER { oneMB = 1048576, paginationDefaultValue = 10, splitLongitude = 1, - splitLatitude = 2 + splitLatitude = 2, + timeOutDefaultSeconds = 5, + oneGB = 1024 } /** * handle count @enum @@ -48,6 +53,7 @@ export enum CONFIGCONSTANT { operationalStateFirstStep = 'init', operationalStateSecondStep = 'running', operationalStateThirdStep = 'failed', + operationalStateFourthStep = 'scaling', configStateFirstStep = 'init', configStateSecondStep = 'configured', configStateThirdStep = 'failed', @@ -108,6 +114,13 @@ export interface URLPARAMS { nsConfig?: object; projectID?: string; username?: string; + vnfID?: []; + nsID?: string; + nsd?: NSD; + data?: VNFD[]; + configs?: object; + actions?: object; + executedActions?: EXECUTEDACTIONS[]; } /** Handle the Delete params */ export interface DELETEPARAMS { @@ -193,7 +206,8 @@ export const VIM_TYPES: TYPESECTION[] = [ { value: 'vmware', title: 'VMware vCD' }, { value: 'openvim', title: 'OpenVIM' }, { value: 'opennebula', title: 'OpenNebula' }, - { value: 'azure', title: 'Azure' } + { value: 'azure', title: 'Azure' }, + { value: 'dummy', title: 'Dummy' } ]; /** Constants of the SDN Types */ export const SDN_TYPES: TYPESECTION[] = [ @@ -243,7 +257,7 @@ export const TYPEOPENSTACK: {} = { user_domain_id: '', security_groups: '', user_domain_name: '', - availabilityZone: '', + availability_zone: '', keypair: '', region_name: '', dataplane_physical_net: '', @@ -320,4 +334,10 @@ export interface DOMAINS { export interface LOGINPARAMS { username?: string; password?: string; + old_password?: string; +} +/** Interface for the LABELVALUE */ +export interface LABELVALUE { + label: string; + value: string; }