You can add IP addresses to a network profile range by importing a properly formatted CSV file. You can also change the addresses in the network profile range by editing the range in vRealize Automation or by importing a changed or different CSV file.

Before you begin

About this task

You can add or change the IP addresses in a network profile range by importing from a CSV file or by entering values manually. Or you can allow an external IPAM provider to supply IP addresses.

  • Import an initial range of IP addresses into a vRealize Automation network profile

  • Apply the imported values to create our first named network range in the network profile

  • Delete one or more IP addresses from the network range vRealize Automation

  • Import a changed or different CSV file to examine how the network range values are changed

There is no Import from CSV option for network profiles that use an external IPAM endpoint type because the IP addresses are managed by the external IPAM provider, not vRealize Automation.

Procedure

  1. Select Infrastructure > Reservations > Network Profiles.
  2. Click New and select a network profile type from the drop-down menu.

    For this example, select External.

  3. Enter My Network Profile with CSV in the Name text box.
  4. Enter Testing network range IP addresses with CSV in the Description text box.

    The CSV file import option applies to settings on the Network Ranges and IP Addresses tab pages. so we will move quickly through the first two tabs to enter basic network profile information.

  5. Optionally select a configured IPAM endpoint if you have one available. If not, skip this step.
  6. Enter an appropriate IP address value in the Subnet mask and Gateway text boxes.
  7. Click the DNS tab.
  8. Enter applicable information such as a DNS suffix and click the Network Ranges tab.

    The Import from CVS option is available when you click the Network Ranges tab.

  9. Click New to enter a new network range name and IP address range manually or click Import from CSV to import the IP address information from a properly formatted CSV file.
    • Click New.

      1. Enter a network range name.

      2. Enter a network range description.

      3. Enter the start IP address of the range.

      4. Enter the end IP address of the range.

    • Click Import from CSV.

      1. Browse to and select the CSV file or drag the CSV file into the Import from CSV dialog box.

        A row in the CSV file has the format ip_address, machine_name, status, NIC offset. For example:

        100.10.100.1,mymachine01,Unallocated
        

        CSV Field

        Description

        ip_address

        An IP address in IPv4 format.

        machine_name

        Name of a managed machine in vRealize Automation. If the field is empty, the default is no name. If the field is empty, the status field value cannot be Allocated.

        status

        Allocated or Unallocated, case-sensitive. If the field is empty, the default value is Unallocated. If the status is Allocated, the machine_name field cannot be empty.

        NIC_offset

        A non-negative integer. Optional.

      2. Click Apply.

  10. Click OK.

    The IP range name appears in the defined ranges list. The IP addresses in the range appear in the defined IP addresses list.

    The uploaded IP addresses appear on the IP Addresses page when you click Apply or after you save and then edit the network profile.

  11. Click the IP Addresses tab to display the IP address data for the specified range address space.

    If you imported the IP address information from a CSV file, the range name is generated as Imported from CSV.

  12. (Optional) : Select IP address information from the Network range drop-down menu to filter IP address entries.

    You can display information about all defined network ranges, the network ranges imported from a CSV file, or a named network range. Details include the start IP address, machine name, last modification date and timestamp, and IP status.

What to do next

If you import IP addresses from a CSV file again, the previous IP addresses are replaced with the information from the imported CSV file.