mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-18 16:31:26 -07:00
nmcli: module refactor (#1113)
* * Refactor `nmcli` module to use consistent parameters when creating/modifying connections and detecting changes. * Keep DNS list arguments as lists internally. * Remove duplicated code where practical. * DBus and GObject dependencies are not necessary. * Update changelog fragment. Co-authored-by: Felix Fontein <felix@fontein.de> * Update changelog fragment. Co-authored-by: Felix Fontein <felix@fontein.de> * Use identity operator instead of equality for type comparison. * Don't start changelog notes with a capital letter. * * Have `settings_type` return `str` by default instead of `None`. * Improve variable naming, use `convert_func` instead of `type_cast`. * Revert new feature of allowing ethernet types as slaves. * Bring back `list_connection_info` to list all connections with `nmcli con show`. Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
307c54750f
commit
7722800561
6 changed files with 389 additions and 1108 deletions
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue