-
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
nmcli: conn_reload param and up/down states #8897
Conversation
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.
Thanks again for your contribution! A couple of small details there, other than that it LGTM.
plugins/modules/nmcli.py
Outdated
- Using O(state=present) to create connection will automatically bring connection up. | ||
- Using O(state=up) and O(state=down) will not modify connection with other parameters. |
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.
It would be good to mention that those states have been introduced in community.general 9.5.0
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.
Not sure how to add these beacuse version_added
is for new params rather then updated ones
Please check last commit if I did it right
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.
Textually, like:
- Using O(state=present) to create connection will automatically bring connection up. | |
- Using O(state=up) and O(state=down) will not modify connection with other parameters. | |
- Using O(state=present) to create connection will automatically bring connection up. | |
- Using O(state=up) and O(state=down) will not modify connection with other parameters. These states have been added in community.general 9.5.0. |
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.
thanks!
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.
If nobody objects, I'll merge this next week.
Backport to stable-9: 💚 backport PR created✅ Backport PR branch: Backported as #8975 🤖 @patchback |
* Update nmcli module * Update nmcli state * Update test_nmcli * Add CHANGELOG fragment * PR Fixes * Fix DOCUMENTATION block (cherry picked from commit d4fb6bf)
@abakanovskii thanks for your contribution! |
…p/down states (#8975) nmcli: conn_reload param and up/down states (#8897) * Update nmcli module * Update nmcli state * Update test_nmcli * Add CHANGELOG fragment * PR Fixes * Fix DOCUMENTATION block (cherry picked from commit d4fb6bf) Co-authored-by: alexander <79072457+abakanovskii@users.noreply.github.com>
* Update nmcli module * Update nmcli state * Update test_nmcli * Add CHANGELOG fragment * PR Fixes * Fix DOCUMENTATION block
SUMMARY
Add
conn_reload
option to performnmcli connection reload
if set to trueAdd
up
anddown
states to performnmcli up
/nmcli down
commandsFixes #3752
Fixes #8704
Fixes #7152
ISSUE TYPE
COMPONENT NAME
nmcli
ADDITIONAL INFORMATION
I am not completely sure how to make applying changes correctly as there is no distinct difference between 4 different variants in a related issue (see #3752 (comment)) so if you have some ideas I would be glad to get comments from you :)