I'm trying to achieve how can I allow users to select network from dropdown list while filling out deployment form.
In my Project I use network constraints to select Network Profile. Within Network Profile I have 100+ subnets and users should select the appropriate while deployment. I don't want to go with hard constraints.
I would like to allow user to select one of those Networks while filling the blueprint form.
Could you please provide some examples how to achieve such functionality.
Thanks,
You need to TAG those networks.
Let say you have 3 networks: VLAN-01, VLAN-02 and VLAN-3. You need to apply tags to these three. For instance, net:vlan-01, net:vlan-02 and net:vlan-03. I suggest that you tag those portgroups in vCenter.
Then, in your cloud template, create an enum input for this new tag and add the constraint to the Network.
Sir Damian,
I have done tagging, but the problem mentioning under Enum is, i do have 167 port groups and for each cluster i have few common port groups and few dedicated to that cluster. it is very difficult for me to do that in Enum.
Help me with any other ideas you have. Thanks for your Suggestion
So what you need is to create a list of Portgroups (name and tag) based on the Cluster where the VM will be placed, right?
The only way to do that is to create the appropriate Orchestrator Action and configure a Custom Form for the Cloud Template.
In this post (in spanish) I explain how to create an action that returns a sorted list of options in order to be used in a Custom Form.