nsxt_ip_blocks – Create a new IP address block

New in version 2.7.

Synopsis

  • Creates a new IPv4 address block using the specified cidr. cidr is a required parameter. display_name & description are optional parameters

Parameters

Parameter Choices/Defaults Comments
cidr
string / required
Represents network address and the prefix length which will be associated with a layer-2 broadcast domain
description
string
Description of the resource
display_name
string / required
Display name
hostname
string / required
Deployed NSX manager hostname.
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.
tags
list
Opaque identifier meaningful to the API user
username
string / required
The username to authenticate with the NSX manager.

Examples

- name: Create a new IP address block
  nsxt_ip_blocks:
    hostname: "10.192.167.137"
    username: "admin"
    password: "Admin!23Admin"
    validate_certs: False
    display_name: "IPBlock-Tenant-1"
    description: "IPBlock-Tenant-1 Description"
    cidr: "192.168.0.0/16"
    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