Note
This plugin is part of the netapp.elementsw collection.
To install it use: ansible-galaxy collection install netapp.elementsw.
To use it in a playbook, specify: netapp.elementsw.na_elementsw_vlan.
New in version 2.7.0: of netapp.elementsw
The below requirements are needed on the host that executes this module.
| Parameter | Choices/Defaults | Comments |
|---|---|---|
| address_blocks list / elements=dictionary | List of address blocks for the VLAN Each address block contains the starting IP address and size for the block Required for create | |
| attributes dictionary | Dictionary of attributes with name and value for each attribute | |
| gateway string | Gateway for the VLAN | |
| hostname string / required | The hostname or IP address of the SolidFire cluster. For na_elementsw_cluster, the Management IP (MIP) or hostname of the node to initiate the cluster creation from. | |
| name string | User defined name for the new VLAN Name of the vlan is unique Required for create | |
| namespace boolean |
| Enable or disable namespaces |
| netmask string | Netmask for the VLAN Required for create | |
| password string / required | Password for the specified user. aliases: pass | |
| state string |
| Whether the specified vlan should exist or not. |
| svip string | Storage virtual IP which is unique Required for create | |
| username string / required | Please ensure that the user has the adequate permissions. For more information, please read the official documentation https://mysupport.netapp.com/documentation/docweb/index.html?productID=62636&language=en-US. aliases: user | |
| vlan_tag string / required | Virtual Network Tag |
Note
- name: Create vlan
na_elementsw_vlan:
state: present
name: test
vlan_tag: 1
svip: "{{ ip address }}"
netmask: "{{ netmask }}"
address_blocks:
- start: "{{ starting ip_address }}"
size: 5
- start: "{{ starting ip_address }}"
size: 5
hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
- name: Delete Lun
na_elementsw_vlan:
state: absent
vlan_tag: 1
hostname: "{{ netapp_hostname }}"
username: "{{ netapp_username }}"
password: "{{ netapp_password }}"
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/netapp/elementsw/na_elementsw_vlan_module.html