-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change ip4 type to list of str #3738
change ip4 type to list of str #3738
Conversation
Thanks for your contribution! Can you please add a changelog fragment? Thanks. |
ok, let me just add some tests and examples to documentation |
Adding multiple addresses support for ip6 needs more time to implement, so i'll make another pull request later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the changelog fragment this looks good. Pulled this locally for testing and haven't found any issues.
changelogs/fragments/1088-nmcli_add_multiple_addresses_support.yml
Outdated
Show resolved
Hide resolved
….yml Co-authored-by: Andrew Pantuso <ajpantuso@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Backport to stable-4: 💚 backport PR created✅ Backport PR branch: Backported as #3757 🤖 @patchback |
* change ip4 type to list of str * Add several tests and change documentation * Update changelogs/fragments/1088-nmcli_add_multiple_addresses_support.yml Co-authored-by: Andrew Pantuso <ajpantuso@gmail.com> Co-authored-by: Andrew Pantuso <ajpantuso@gmail.com> (cherry picked from commit 50c2f3a)
@haddystuff thanks for implementing this! |
* change ip4 type to list of str * Add several tests and change documentation * Update changelogs/fragments/1088-nmcli_add_multiple_addresses_support.yml Co-authored-by: Andrew Pantuso <ajpantuso@gmail.com> Co-authored-by: Andrew Pantuso <ajpantuso@gmail.com> (cherry picked from commit 50c2f3a) Co-authored-by: Alex Groshev <38885591+haddystuff@users.noreply.github.com>
SUMMARY
This PR adds support of multiple ipv4 addresses on one interface which was requested here #1088.
ISSUE TYPE
COMPONENT NAME
plugins/modules/net_tools/nmcli.py
ADDITIONAL INFORMATION
As it turns out changing type of parameter is enough to make it work.
Now list can be used in
ip4
parameter in playbook, but string is also working, so it's backwards compatible.I didn't add any additional test or documentation just for now. I think such change need to be discussed first.