Scenario:
I have a workflow for provision a VM. In this workflow, we have a provision of creating the VM using OVA.
Here if the OVA have 1 NIC count then we have to auto-populate value for 1 NIC, if OVA have 2 NICs then 2 Nic's details will get auto populate and behavior will be same for other NIC count.
So here creation of static screen will not work as we dont know the NIC count (as we are getting NIC count at run-time).
Approach that we have tried:
Is there any way that will handle this scenario?
If there is a known upper limit N for the number of NICs (eg. up to 8 NICs), one option to consider is creating N input fields for every NIC property, and then dynamically showing/hiding some of them to match the actual number of NICs.
For example, if you want to support up to 4 NICS, you can create inputs like nic1Gateway, nic2Gateway, nic3Gateway, nic4Gateway, nic1DNS, nic2DNS, etc. And then at runtime if you determine you want 3 NICs, you can hide nic4Gateway, nic4DNS, etc. fields that are related to the unnecessary NICs.