/
Network View

Network View

Use the nios_network_view module to create, update, or remove a network view object from a NIOS Grid.

The following table describes the parameters you can define in the nios_network_view module:

Parameter

Required/Optional

Description

Parameter

Required/Optional

Description

name/
network_view

Required

Specifies the name of the network view.
To update the name, include a dictionary object that contains the new_name and old_name parameters.

extattrs

Optional

Specifies extensible attributes for the network view object.

state

Optional

Specifies the state of the network view instance on the NIOS server.
Set one of the following values:

  • present (default): Configures the record.

  • absent: Removes the record.

comment

Optional

Describes the network view object.

provider

Required

Defines the details of the connection:

  • host: The DNS host name or IP address to connect to the remote instance of NIOS.

  • username: The user name to use for authenticating the connection to the remote instance.

  • password: The password to use for authenticating the connection to the remote instance.

For information on additional fields you can define, see the list of subparameters in the NIOS Modules for Ansible Collections topic.

connection

Required

The nios_network_view module must be run locally.

Examples

name: Configure a new network view
infoblox.nios_modules.nios_network_view:
  name: ansible
  state: present
  provider:
    host: <nios_hostname_or_hostip>
    username: <nios_username>
    password: <nios_password>
connection: local

name: Update an existing network view
infoblox.nios_modules.nios_network_view:
  name: {new_name: ansible-new, old_name: ansible}
  state: present
  provider:
    host: <nios_hostname_or_hostip>
    username: <nios_username>
    password: <nios_password>
connection: local