blob: d9167be16eef174dfaeb6b9e86ce1d80ba7ab6a7 [file] [log] [blame]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03001import {VnfInstance} from "./vnfInstance";
Ittay Stern6f900cc2018-08-29 17:01:32 +03002import {NetworkInstance} from "./networkInstance";
3import {NodeInstance} from "./nodeInstance";
4import {VnfGroupInstance} from "./vnfGroupInstance";
5import {VnfMember} from "./VnfMember";
Ittay Sternf7926712019-07-07 19:23:03 +03006import {VrfInstance} from "./vrfInstance";
7import {VidNotions} from "./vidNotions";
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03008
Ittay Stern6f900cc2018-08-29 17:01:32 +03009export class ServiceInstance extends NodeInstance{
10 isEcompGeneratedNaming: boolean;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030011 globalSubscriberId: string;
12 productFamilyId: string;
13 subscriptionServiceType: string;
14 lcpCloudRegionId: string;
15 tenantId: string;
16 tenantName: string;
17 aicZoneId: string;
18 aicZoneName: string;
19 projectName: string;
20 owningEntityId: string;
21 owningEntityName: string;
22 pause: boolean;
23 bulkSize: number;
Ittay Stern6f900cc2018-08-29 17:01:32 +030024 vnfs: { [vnf_module_model_name: string]: VnfInstance; };
Ittay Sternf7926712019-07-07 19:23:03 +030025 vrfs: { [vrf_model_name: string]: VrfInstance; };
Ittay Stern6f900cc2018-08-29 17:01:32 +030026 vnfGroups : {[vnf_module_model_name: string]: VnfGroupInstance; };
27 networks: { [vnf_module_model_name: string]: NetworkInstance; };
28 isDirty : boolean;
29 instanceParams: {[key: string]: string}[];
30 rollbackOnFailure: boolean;
31 subscriberName: string;
32 validationCounter: number;
33 existingNames: {[key: string] : any};
34 modelInavariantId?: string;
35 existingVNFCounterMap : { [vnf_module_model_name: string]: number; };
Ittay Sternf7926712019-07-07 19:23:03 +030036 existingVRFCounterMap : { [vrf_module_model_name: string]: number; };
Ittay Stern6f900cc2018-08-29 17:01:32 +030037 existingVnfGroupCounterMap : { [vnf_group_module_model_name: string]: number; };
38 existingNetworksCounterMap : { [network_module_model_name: string]: number; };
39 optionalGroupMembersMap?: { [path: string]: VnfMember[]; };
Ittay Stern6f900cc2018-08-29 17:01:32 +030040 statusMessage: string;
Ittay Sternf7926712019-07-07 19:23:03 +030041 vidNotions?: VidNotions;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030042
43 constructor() {
Ittay Stern6f900cc2018-08-29 17:01:32 +030044 super();
45 this.isDirty = false;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030046 this.vnfs = {};
Ittay Sternf7926712019-07-07 19:23:03 +030047 this.vrfs = {};
Ittay Stern6f900cc2018-08-29 17:01:32 +030048 this.instanceParams = [];
49 this.validationCounter = 0;
50 this.existingNames = {};
51 this.existingVNFCounterMap = {};
Ittay Sternf7926712019-07-07 19:23:03 +030052 this.existingVRFCounterMap = {};
Ittay Stern6f900cc2018-08-29 17:01:32 +030053 this.existingVnfGroupCounterMap = {};
54 this.existingNetworksCounterMap = {};
55 this.optionalGroupMembersMap = {};
56 this.networks = {};
57 this.vnfGroups = {};
58 this.bulkSize = 1;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030059 }
Ittay Stern6f900cc2018-08-29 17:01:32 +030060
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030061}