diff options
author | Tao Shen <shentao@chinamobile.com> | 2019-05-15 00:47:24 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-05-15 00:47:24 +0000 |
commit | 3de5e12f3dbf3e2c5daf2ecba8cdaa23a374e91e (patch) | |
tree | 7caea0cd1165d7fff3cc80542428dd99ae288e37 /usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts | |
parent | 7e55bc1f50d6fdfca754c04513405b5103c26bf6 (diff) | |
parent | cd934c497a6bf26992bcb42e27a179479001658b (diff) |
Merge "Fix instance instantiation for CCVPN"
Diffstat (limited to 'usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts')
-rw-r--r-- | usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts b/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts index d5e1a3a0..dc8566e0 100644 --- a/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts +++ b/usecaseui-portal/src/app/components/e2e-creation/e2e-creation.component.ts @@ -27,7 +27,7 @@ export class E2eCreationComponent implements OnInit { constructor( private myhttp:MyhttpService ) { } ngOnInit() { - this.getTemParameters(); + this.gete2eTemParameters(this.e2e_ns_temParametersContent); this.getVimInfo(); this.getSdnControllers(); console.log(this.createParams); @@ -36,6 +36,7 @@ export class E2eCreationComponent implements OnInit { @Output() e2eCloseCreate = new EventEmitter(); @Output() nsCloseCreate = new EventEmitter(); @Input() createParams; + @Input() e2e_ns_temParametersContent; // e2e serviceTemplateParameters @@ -75,12 +76,10 @@ export class E2eCreationComponent implements OnInit { '2': './assets/images/create-ns.png', '3': './assets/images/create-vnf.png', }; - getTemParameters(){ //Get template parameters + gete2eTemParameters(data) { //Get template parameters let type = this.createParams.commonParams.templateType == "E2E Service" ? "e2e" : "ns"; - this.myhttp.getTemplateParameters(type,this.createParams.template) - .subscribe((data)=>{ - // console.log(this.createParams); - // console.log(data); + console.log(this.createParams); + console.log(data); if(type == "e2e"){ this.templateParameters = data; this.templateParameters.nestedTemplates.forEach((item)=>{ @@ -124,7 +123,6 @@ export class E2eCreationComponent implements OnInit { this.drawImage(type) - }) } vimInfos=[]; getVimInfo() { |