mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Improving nxos_ip_interface module (#21353)
* Improving of nxos_ip_interface module Added features: * Route tags for an IP address at interface level with 'tag' option * Support of IPv4 secondary addresses if option 'allow_secondary' is true (false by default). If option 'allow_secondary' is true primary IPv4 address will be replaced All features support NXAPI and CLI transport, but only with text/raw output. Currently not possible to get route tags for secondary IPv4/IPv6 addresses from JSON output. Other changes: * Module return state 'changed' only when configuration commands were executed * Module result includes multiple prefixes if IPv4 addresses were found * Fix PEP8 issues * Addition fix of PEP8 issues * Remove unused variable from main() * Fix "proposed" sample in RETURN variable * Fix "existing" sample in RETURN variable * Update RETURN variable Add 'secondary' for every element of 'addresses' list. * Restore old version number * Added exception when ipaddress module is imported * DOCUMENTATION string was updated * Added 'version_added' for new features * Added 'requirements' for module * Added compatibility with latest commit in devel branch * DOCUMENTATION was fixed * Improve changes of route tag for existing ip addresses * Added compatibility with core code * Fixed mistypes in the DOCUMENTATION variable * argument_spec fixed allow_secondary argument type was changed according to allowed choices.
This commit is contained in:
committed by
Nathaniel Case
parent
78ed0cadea
commit
62b8813873
@@ -504,7 +504,6 @@ lib/ansible/modules/network/nxos/nxos_igmp_snooping.py
|
||||
lib/ansible/modules/network/nxos/nxos_install_os.py
|
||||
lib/ansible/modules/network/nxos/nxos_interface.py
|
||||
lib/ansible/modules/network/nxos/nxos_interface_ospf.py
|
||||
lib/ansible/modules/network/nxos/nxos_ip_interface.py
|
||||
lib/ansible/modules/network/nxos/nxos_ntp.py
|
||||
lib/ansible/modules/network/nxos/nxos_ntp_auth.py
|
||||
lib/ansible/modules/network/nxos/nxos_ntp_options.py
|
||||
|
||||
Reference in New Issue
Block a user