VMware Cloud Community
Windspirit
Hot Shot
Hot Shot

vRA7.2 : vRO Action com.vmware.vra.networks.getApplicableNetworks FIXED

Hi all,

just found out that the Action com.vmware.vra.networks.getApplicableNetworks isn't working correctly and you can't use it out of the box to populate a Customer Attribute as stated in the vRA Custom Property Document.

Here is how to fix it:

Add the following line at the top:

var blueprint = System.getContext().getParameter("__asd_composition_blueprintId");

var component = System.getContext().getParameter("__asd_composition_componentId");

change the line:

var reservations = System.getModule("com.vmware.vra.reservations").getReservationsForUserAndComponent(user, tenant, host);

into:

var reservations = System.getModule("com.vmware.vra.reservations").getReservationsForUserAndComponent(user,tenant,host, blueprint, component);

DONE

Reply
0 Kudos
1 Reply
bdamian
Expert
Expert

Very nice!

Thanks you very much!

D.

---
Damián Bacalov
vExpert 2017-2023 (7 years)
https://www.linkedin.com/in/damianbacalov/
https://tecnologiaimasd.blogspot.com/
twitter @bdamian
Reply
0 Kudos