-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 - fixed false changed status for dummy connections #3615
nmcli - fixed false changed status for dummy connections #3615
Conversation
I have checked this fix and have noticed one thing: - name: nmcli set interface
nmcli:
conn_name: dummy_con0
ifname: dummy0
ip4: 10.0.0.151/32
state: present
type: dummy
mtu: 1500 Then i deleted mtu value: - name: nmcli set interface
nmcli:
conn_name: dummy_con0
ifname: dummy0
ip4: 10.0.0.151/32
state: present
type: dummy nmcli module doesn't detect any changes. |
In this case because there is no true default value I think it's better for no change to be reported (and certainly no action to be taken as the user didn't indicate a desired state). However this is probably an existing issue with the |
We would have a problem with different interface configuration depending on system initial state. Seem like it's not an expected behavior. Maybe we can do something like this(#3618)? |
Something like #3618 is possible, but the setting value should be If you want to ensure consistency instead of omitting the parameter just provide Using your example:
Will become
In effect you are enforcing the default behavior yourself since |
Sorry for reacting too slow, but i came out with this change #3625. |
Closing in favor of #3625 |
SUMMARY
Dummy connections do not default
802-3-ethernet.mtu
toauto
if no value is explicitly provided. This is in contrast to other connection types which requires an additional check.Fixes #3612
ISSUE TYPE
COMPONENT NAME
plugins/modules/net_tools/nmcli.py
ADDITIONAL INFORMATION
ethernet
connection type to confirm that nullmtu
does result inauto
being set in that case and this is specific todummy
connections