nsxt_ip_pools – Create an IP Pool

New in version 2.7.

Synopsis

  • Creates a new IPv4 or IPv6 address pool. Required parameters are allocation_ranges and cidr. Optional parameters are display_name, description, dns_nameservers, dns_suffix, and gateway_ip.

Parameters

Parameter Choices/Defaults Comments
description
string
description of the resource
display_name
string / required
Display name
hostname
string / required
Deployed NSX manager hostname.
ip_release_delay
integer
IP address release delay
password
string / required
The password to authenticate with the NSX manager.
state
- / required
    Choices:
  • present
  • absent
State can be either 'present' or 'absent'. 'present' is used to create or update resource. 'absent' is used to delete resource.
subnets
array of IpPoolSubnet
Subnets can be IPv4 or IPv6 and they should not overlap. The maximum number will not exceed 5 subnets.
tags
string
Opaque identifiers meaningful to the API user
username
string / required
The username to authenticate with the NSX manager.

Examples

- name: Create ip pool
  nsxt_ip_pools:
    hostname: "10.192.167.137"
    username: "admin"
    password: "Admin!23Admin"
    validate_certs: False
    display_name: IPPool-IPV4-1
    subnets:
    - allocation_ranges:
      - start: "10.112.201.28"
        end: "10.112.201.29"
      cidr: "10.112.201.0/24"
    state: "present"

Status

  • This module is not guaranteed to have a backwards compatible interface. [preview]

  • This module is maintained by the Ansible Community. [community]

Authors

  • Rahul Raghuvanshi