-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
nixos/networking-interfaces: change preferTempAddress to allow disabling temp addresses #78843
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
Conversation
@GrahamcOfBorg test networking.scripted.privacy networking.networkd.privacy |
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.
Looks well documented, well thought out and well implemented overall (just one minor nitpick, see inline). I haven't tested this, but if the tests pass I'm happy to merge this with my suggestion applied or as is. Thanks!
// listToAttrs (forEach interfaces | ||
(i: let | ||
opt = i.tempAddress; | ||
val = if opt == "disabled" then 0 else |
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.
{disabled = 0; enabled = 1; default = 2;}.${opt}
might be clearer?
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.
Oh, nice! I didn't think about this.
@GrahamcOfBorg test networking.scripted.privacy networking.networkd.privacy |
Ok, I applied your suggestion. The tests passes on my end. Let's test again with: @GrahamcOfBorg test networking.scripted.privacy networking.networkd.privacy |
Thank you! |
nixos/networking-interfaces: change preferTempAddress to allow disabling temp addresses
nixos/networking-interfaces: change preferTempAddress to allow disabling temp addresses (cherry picked from commit 3af5a40)
Motivation for this change
Fix issue #75311
Things done
nixosTests.networking.scripted.privacy
nixosTests.networking.networkd.privacy