Hi All,
I have this code that composes Vapp. Once the Vapp is created, it tries to power on the vApp. I was not able to find the vApp, it
Vdc vdc2Use = main.findVdc("VDC02");
ReferenceType orgNetworkToUseRef = main.getOrgNetworkMatchingVdc(vdc2Use);
ReferenceType vAppTemplateRef = main.findVappTemplateRef("myCatalog", "mytemplate");
main.composeVapp(vAppTemplateRef, vdc2Use, orgNetworkToUseRef);
System.out.println("Total number of vApps:"+vdc2Use.getVappRefs().size());
for(ReferenceType vappRef : vdc2Use.getVappRefs()){
System.out.println("Vapp: " + vappRef.getName());
main.powerOnVapp(vappRef);
//main.deleteVapp(vappRef);
}
What I am finding is that, the vApp is getting created, but the vdc2Use.getVappRefs().size() is returning me 0.
Can somone help me understand this.
Thanks..