blob: cae69a6c89fb3f9507d404a3a6baf9d9ac48e43f [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;
Einat Vinouzee1f79742019-08-27 16:01:01 +030022 latestAvailableVersion: Number;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030023 pause: boolean;
24 bulkSize: number;
Ittay Stern6f900cc2018-08-29 17:01:32 +030025 vnfs: { [vnf_module_model_name: string]: VnfInstance; };
Ittay Sternf7926712019-07-07 19:23:03 +030026 vrfs: { [vrf_model_name: string]: VrfInstance; };
Ittay Stern6f900cc2018-08-29 17:01:32 +030027 vnfGroups : {[vnf_module_model_name: string]: VnfGroupInstance; };
28 networks: { [vnf_module_model_name: string]: NetworkInstance; };
29 isDirty : boolean;
Einat Vinouzee1f79742019-08-27 16:01:01 +030030 isUpgraded : boolean;
Ittay Stern6f900cc2018-08-29 17:01:32 +030031 instanceParams: {[key: string]: string}[];
32 rollbackOnFailure: boolean;
33 subscriberName: string;
34 validationCounter: number;
35 existingNames: {[key: string] : any};
36 modelInavariantId?: string;
37 existingVNFCounterMap : { [vnf_module_model_name: string]: number; };
Ittay Sternf7926712019-07-07 19:23:03 +030038 existingVRFCounterMap : { [vrf_module_model_name: string]: number; };
Ittay Stern6f900cc2018-08-29 17:01:32 +030039 existingVnfGroupCounterMap : { [vnf_group_module_model_name: string]: number; };
40 existingNetworksCounterMap : { [network_module_model_name: string]: number; };
41 optionalGroupMembersMap?: { [path: string]: VnfMember[]; };
Ittay Stern6f900cc2018-08-29 17:01:32 +030042 statusMessage: string;
Ittay Sternf7926712019-07-07 19:23:03 +030043 vidNotions?: VidNotions;
Einat Vinouzee1f79742019-08-27 16:01:01 +030044 upgradedVFMSonsCounter: number;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030045
46 constructor() {
Ittay Stern6f900cc2018-08-29 17:01:32 +030047 super();
48 this.isDirty = false;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030049 this.vnfs = {};
Ittay Sternf7926712019-07-07 19:23:03 +030050 this.vrfs = {};
Ittay Stern6f900cc2018-08-29 17:01:32 +030051 this.instanceParams = [];
52 this.validationCounter = 0;
53 this.existingNames = {};
54 this.existingVNFCounterMap = {};
Ittay Sternf7926712019-07-07 19:23:03 +030055 this.existingVRFCounterMap = {};
Ittay Stern6f900cc2018-08-29 17:01:32 +030056 this.existingVnfGroupCounterMap = {};
57 this.existingNetworksCounterMap = {};
58 this.optionalGroupMembersMap = {};
59 this.networks = {};
60 this.vnfGroups = {};
61 this.bulkSize = 1;
Einat Vinouzee1f79742019-08-27 16:01:01 +030062 this.isUpgraded = false;
63 this.upgradedVFMSonsCounter = 0;
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030064 }
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +030065}