W3cubDocs

/Ansible

netapp.elementsw.na_elementsw_vlan – NetApp Element Software Manage VLAN

Note

This plugin is part of the netapp.elementsw collection (version 21.6.1).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

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

Synopsis

  • Create, delete, modify VLAN

Requirements

The below requirements are needed on the host that executes this module.

  • The modules were developed with SolidFire 10.1
  • solidfire-sdk-python (1.1.0.92) or greater. Install using ‘pip install solidfire-sdk-python’

Parameters

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
    Choices:
  • no
  • yes
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
    Choices:
  • present
  • absent
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

Notes

Note

  • The modules prefixed with na\_elementsw are built to support the SolidFire storage platform.

Examples

- 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 }}"

Authors

© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/netapp/elementsw/na_elementsw_vlan_module.html