1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/modules/net_tools
Joey Zhang d2ee51253d
nmcli: add idempotent support for any kinds of connections (#562)
* nmcli: add idemptent support for any kinds of connections

Fixes #481: nmcli reports changed status even if nothing needs to change
- Implement show_connection() to retrieve connection profile from command line
- Parse integer enumeration values in show_connection()
- Convert 'bond.options' to alias shortcuts
- Modify connection only if changes are detected
- Support generic alias in during the property comparison

* nmcli: add idemptent support for any kinds of connections

Add mock object for modification cases when connection state changes

* nmcli: add idempotent support for any kinds of connections

- Add more test cases to check idempotent for each type of connections
- Verify 'changed' and 'failed' in the result of each test
- Append prefixlen for 'ip4' values in test data
- Fix the incorrect 'return_value' of execute_command() in previous mockers
- Ignore the empty string in _compare_conn_params()
- Fix the property key mapping of 'bridge-port.hairpin-mode' for bridge-slave
- Add 'override_options' in the result output for playboot debug

* nmcli: add idempotent support for any kinds of connections

Fix pep8 issues in test_nmcli.py: Comparison to False should be 'not expr'

* nmcli: add idempotent support for any kinds of connections

Support setting 'ipv4.method' or 'ipv6.method' via nmcli if the configuration method changes

* nmcli: add idempotent support for any kinds of connections

Simplify the if statements in show_connection() according to vlours's advice

* nmcli: add idempotent support for any kinds of connections

Fix the list argument comparison method with multiple values.

* nmcli: add idempotent support for any kinds of connections

Use ansible --diff option output to show detailed changes instead of a private return value.

* nmcli: add idempotent support for any kinds of connections

Add changelog fragment for bugfix.
2020-06-30 05:43:39 +02:00
..
infinity Remove ANSIBLE_METADATA (#339) 2020-05-14 14:03:42 +01:00
ldap Fix M(). (#591) 2020-06-29 14:59:15 +02:00
nios Add version_added for all new features (#214) 2020-06-13 15:01:19 +02:00
cloudflare_dns.py Be more verbose on unexpected failure. (#511) 2020-06-15 20:53:04 +02:00
dnsimple.py Fix examples formatting (#345) 2020-05-16 15:07:51 +02:00
dnsmadeeasy.py collection: Change default='no's and 'yes's to default=False and default=True (#556) 2020-06-22 15:56:35 +02:00
haproxy.py Remove ANSIBLE_METADATA (#339) 2020-05-14 14:03:42 +01:00
hetzner_failover_ip.py modules: fix seealso sections (#581) 2020-06-25 13:34:46 +02:00
hetzner_failover_ip_info.py modules: fix seealso sections (#581) 2020-06-25 13:34:46 +02:00
hetzner_firewall.py Fix M(). (#591) 2020-06-29 14:59:15 +02:00
hetzner_firewall_info.py Fix M(). (#591) 2020-06-29 14:59:15 +02:00
ip_netns.py Remove ANSIBLE_METADATA (#339) 2020-05-14 14:03:42 +01:00
ipify_facts.py Remove ANSIBLE_METADATA (#339) 2020-05-14 14:03:42 +01:00
ipinfoio_facts.py Fix examples formatting (#345) 2020-05-16 15:07:51 +02:00
ipwcli_dns.py Add version_added for all new features (#214) 2020-06-13 15:01:19 +02:00
lldp.py Remove ANSIBLE_METADATA (#339) 2020-05-14 14:03:42 +01:00
netcup_dns.py Remove ANSIBLE_METADATA (#339) 2020-05-14 14:03:42 +01:00
nmcli.py nmcli: add idempotent support for any kinds of connections (#562) 2020-06-30 05:43:39 +02:00
nsupdate.py Remove ANSIBLE_METADATA (#339) 2020-05-14 14:03:42 +01:00
omapi_host.py Remove ANSIBLE_METADATA (#339) 2020-05-14 14:03:42 +01:00
snmp_facts.py Remove ANSIBLE_METADATA (#339) 2020-05-14 14:03:42 +01:00