X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=vid-webpack-master%2Fsrc%2Fapp%2Fshared%2Fmodels%2FpnfModel.ts;h=8f9e0d1deaa65321e1361864ef50a5ea50949167;hb=d74f6cc4a47f4ebe94c6143f5ffb12b7f47c8fb6;hp=14e6588d2565168f8c5bf2f71b30e06e27b1c372;hpb=182d036de5a7d64250fc5058f3cf361b9d823282;p=vid.git diff --git a/vid-webpack-master/src/app/shared/models/pnfModel.ts b/vid-webpack-master/src/app/shared/models/pnfModel.ts index 14e6588d2..8f9e0d1de 100644 --- a/vid-webpack-master/src/app/shared/models/pnfModel.ts +++ b/vid-webpack-master/src/app/shared/models/pnfModel.ts @@ -3,6 +3,8 @@ import { Level1ModelProperties, Level1ModelResponseInterface } from "./nodeModel"; +import {VNFModelResponseInterface} from "./vnfModel"; +import {Utils} from "../utils/utils"; @@ -18,10 +20,11 @@ export class PNFModel extends Level1Model{ roles: string[] = []; properties: PnfProperties; - constructor(pnfJson?: PNFModelResponseInterface) { + constructor(pnfJson?: PNFModelResponseInterface, flags?: { [key: string]: boolean }) { super(pnfJson); if (pnfJson && pnfJson.properties) { this.properties = pnfJson.properties; + this.max = Utils.getMaxFirstLevel(this.properties, flags); } }