Using Auto-trigger to Invoke the Script Automatically based on Input

To be able to retrieve the IP address and LB method for a selected device:
  1. Design a form using the following form fields:
    Field Name Field ID Type
    Select device device Dropdown
    Enter Virtual Name name Text Box
    Get Virtual Details get_virt Button
  2. Define an associate script and script logic.
  3. Map the associate script against the relevant form field ID.
    Associate Script logic
  4. Define two more form fields to show the Virtual IP and Load balancing method.
    Field Name Field ID Type
    Virtual IP virtual_ip Text Box
    Load Balancing Method lb_method Text Box
  5. From the menu on the top, click (View) icon.
  6. In the Select Device field, select the device as Device1.
  7. Enter the virtual name and click the Get Virtual Details button.
    The response from the query is mapped to the destination fields: Virtual IP and Load Balancing Method.