blob: 67b8806a8c950900cad499bc1089d6325acfcf83 [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";
Mateusz Gołuchowski1b93f302020-10-07 12:06:13 +02008import {PnfInstance} from "./pnfInstance";
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03009
Ittay Stern6f900cc2018-08-29 17:01:32 +030010export class ServiceInstance extends NodeInstance{
11 isEcompGeneratedNaming: boolean;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030012 globalSubscriberId: string;
13 productFamilyId: string;
14 subscriptionServiceType: string;
15 lcpCloudRegionId: string;
16 tenantId: string;
17 tenantName: string;
18 aicZoneId: string;
19 aicZoneName: string;
20 projectName: string;
21 owningEntityId: string;
22 owningEntityName: string;
Einat Vinouzee1f79742019-08-27 16:01:01 +030023 latestAvailableVersion: Number;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030024 pause: boolean;
25 bulkSize: number;
Ittay Stern6f900cc2018-08-29 17:01:32 +030026 vnfs: { [vnf_module_model_name: string]: VnfInstance; };
Mateusz Gołuchowskid74f6cc2020-11-05 10:11:08 +010027 pnfs: { [pnf_module_model_name: string]: PnfInstance; };
Ittay Sternf7926712019-07-07 19:23:03 +030028 vrfs: { [vrf_model_name: string]: VrfInstance; };
Ittay Stern6f900cc2018-08-29 17:01:32 +030029 vnfGroups : {[vnf_module_model_name: string]: VnfGroupInstance; };
30 networks: { [vnf_module_model_name: string]: NetworkInstance; };
31 isDirty : boolean;
Einat Vinouzee1f79742019-08-27 16:01:01 +030032 isUpgraded : boolean;
Ittay Stern6f900cc2018-08-29 17:01:32 +030033 instanceParams: {[key: string]: string}[];
34 rollbackOnFailure: boolean;
35 subscriberName: string;
36 validationCounter: number;
37 existingNames: {[key: string] : any};
38 modelInavariantId?: string;
39 existingVNFCounterMap : { [vnf_module_model_name: string]: number; };
Mateusz Gołuchowskid74f6cc2020-11-05 10:11:08 +010040 existingPNFCounterMap : { [pnf_module_model_name: string]: number; };
Ittay Sternf7926712019-07-07 19:23:03 +030041 existingVRFCounterMap : { [vrf_module_model_name: string]: number; };
Ittay Stern6f900cc2018-08-29 17:01:32 +030042 existingVnfGroupCounterMap : { [vnf_group_module_model_name: string]: number; };
43 existingNetworksCounterMap : { [network_module_model_name: string]: number; };
44 optionalGroupMembersMap?: { [path: string]: VnfMember[]; };
Ittay Stern6f900cc2018-08-29 17:01:32 +030045 statusMessage: string;
Ittay Sternf7926712019-07-07 19:23:03 +030046 vidNotions?: VidNotions;
Einat Vinouzee1f79742019-08-27 16:01:01 +030047 upgradedVFMSonsCounter: number;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030048
49 constructor() {
Ittay Stern6f900cc2018-08-29 17:01:32 +030050 super();
51 this.isDirty = false;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030052 this.vnfs = {};
Mateusz Gołuchowski1b93f302020-10-07 12:06:13 +020053 this.pnfs = {};
Ittay Sternf7926712019-07-07 19:23:03 +030054 this.vrfs = {};
Ittay Stern6f900cc2018-08-29 17:01:32 +030055 this.instanceParams = [];
56 this.validationCounter = 0;
57 this.existingNames = {};
Mateusz Gołuchowski1b93f302020-10-07 12:06:13 +020058 this.existingPNFCounterMap = {};
Ittay Stern6f900cc2018-08-29 17:01:32 +030059 this.existingVNFCounterMap = {};
Ittay Sternf7926712019-07-07 19:23:03 +030060 this.existingVRFCounterMap = {};
Ittay Stern6f900cc2018-08-29 17:01:32 +030061 this.existingVnfGroupCounterMap = {};
62 this.existingNetworksCounterMap = {};
63 this.optionalGroupMembersMap = {};
64 this.networks = {};
65 this.vnfGroups = {};
66 this.bulkSize = 1;
Einat Vinouzee1f79742019-08-27 16:01:01 +030067 this.isUpgraded = false;
68 this.upgradedVFMSonsCounter = 0;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030069 }
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030070}