netapp.elementsw.na_elementsw_network_interfaces module – NetApp Element Software Configure Node Network Interfaces
Note
This module is part of the netapp.elementsw collection (version 21.7.0).
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
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: netapp.elementsw.na_elementsw_network_interfaces
.
New in netapp.elementsw 2.7.0
Synopsis
Configure Element SW Node Network Interfaces for Bond 1G and 10G IP addresses.
This module does not create interfaces, it expects the interfaces to already exists and can only modify them.
This module cannot set or modify the method (Loopback, manual, dhcp, static).
This module is not idempotent and does not support check_mode.
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 |
Comments |
---|---|
settings for the Bond10G interface. |
|
IP address for the interface. |
|
Link Aggregation Control Protocol - useful only if LACP is selected as the Bond Mode. Slow - Packets are transmitted at 30 second intervals. Fast - Packets are transmitted in 1 second intervals. Choices:
|
|
Bonding mode. Choices:
|
|
List of addresses for domain name servers. |
|
List of DNS search domains. |
|
IP router network address to send packets out of the local network. |
|
The largest packet size (in bytes) that the interface can transmit.. Must be greater than or equal to 1500 bytes. |
|
subnet mask for the interface. |
|
The virtual network identifier of the interface (VLAN tag). |
|
settings for the Bond1G interface. |
|
IP address for the interface. |
|
Link Aggregation Control Protocol - useful only if LACP is selected as the Bond Mode. Slow - Packets are transmitted at 30 second intervals. Fast - Packets are transmitted in 1 second intervals. Choices:
|
|
Bonding mode. Choices:
|
|
List of addresses for domain name servers. |
|
List of DNS search domains. |
|
IP router network address to send packets out of the local network. |
|
The largest packet size (in bytes) that the interface can transmit.. Must be greater than or equal to 1500 bytes. |
|
subnet mask for the interface. |
|
The virtual network identifier of the interface (VLAN tag). |
|
deprecated, use bond_10g option. |
|
deprecated, use bond_1g option. |
|
deprecated, use bond_1g and bond_10g options. |
|
deprecated, use bond_1g and bond_10g options. |
|
deprecated, use bond_10g option. |
|
deprecated, use bond_1g option. |
|
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. |
|
deprecated, use bond_10g option. |
|
deprecated, use bond_1g option. |
|
deprecated, use bond_10g option. |
|
deprecated, use bond_1g option. |
|
deprecated, this option would trigger a ‘updated failed’ error |
|
deprecated, use bond_10g option. |
|
deprecated, use bond_1g option. |
|
Password for the specified user. |
|
deprecated, use bond_10g option. |
|
deprecated, use bond_1g option. |
|
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%3D62636%26language%3Den-US. |
|
deprecated, use bond_1g and bond_10g options. |
Notes
Note
The modules prefixed with na\\_elementsw are built to support the SolidFire storage platform.
Examples
- name: Set Node network interfaces configuration for Bond 1G and 10G properties
tags:
- elementsw_network_interfaces
na_elementsw_network_interfaces:
hostname: "{{ elementsw_hostname }}"
username: "{{ elementsw_username }}"
password: "{{ elementsw_password }}"
bond_1g:
address: 10.253.168.131
netmask: 255.255.248.0
gateway: 10.253.168.1
mtu: '1500'
bond_mode: ActivePassive
dns_nameservers: dns1,dns2
dns_search: domain1,domain2
bond_10g:
address: 10.253.1.202
netmask: 255.255.255.192
gateway: 10.253.1.193
mtu: '9000'
bond_mode: LACP
bond_lacp_rate: Fast
virtual_network_tag: vnet_tag
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Success message Returned: success |