summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/models/vfModule.ts
diff options
context:
space:
mode:
authorEylon Malin <eylon.malin@intl.att.com>2019-12-11 10:26:04 +0200
committerEylon Malin <eylon.malin@intl.att.com>2019-12-11 10:26:04 +0200
commit2ed2a1a61fe0bccf215a8dc9cecbf4fdf55fd454 (patch)
treede6c98308d25348c9eb20093bf3f9501a7c7e92d /vid-webpack-master/src/app/shared/models/vfModule.ts
parent0b4cdc4ab5740f9a1a4e308a0dee6ab9bcf8c6c4 (diff)
change default max instances of VfModule to unlimited
Issue-ID: VID-726 Signed-off-by: Eylon Malin <eylon.malin@intl.att.com> Change-Id: Id7ee4f62593ad0f70dc9ba95b286fa7a44455f6b
Diffstat (limited to 'vid-webpack-master/src/app/shared/models/vfModule.ts')
-rw-r--r--vid-webpack-master/src/app/shared/models/vfModule.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/vid-webpack-master/src/app/shared/models/vfModule.ts b/vid-webpack-master/src/app/shared/models/vfModule.ts
index c75202124..8f92ba428 100644
--- a/vid-webpack-master/src/app/shared/models/vfModule.ts
+++ b/vid-webpack-master/src/app/shared/models/vfModule.ts
@@ -1,4 +1,5 @@
import {NodeModel, NodeModelResponseInterface} from "./nodeModel";
+import {Utils} from "../utils/utils";
export interface Properties{
@@ -23,7 +24,7 @@ export class VfModule extends NodeModel {
modelCustomizationName: string;
volumeGroupAllowed : boolean;
- constructor(vf?: VFModuleResponseInterface) {
+ constructor(vf?: VFModuleResponseInterface, flags?: { [key: string]: boolean }) {
super(vf);
if(vf){
this.customizationUuid = vf.customizationUuid;
@@ -32,7 +33,7 @@ export class VfModule extends NodeModel {
}
if (vf && vf.properties) {
this.min = vf.properties.minCountInstances;
- this.max = vf.properties.maxCountInstances;
+ this.max = Utils.getMaxVfModule(vf.properties, flags);
this.initial = vf.properties.initialCount;
this.rollbackOnFailure = true
}