Skip to content
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

Apply NM config #6

Merged
merged 8 commits into from
Nov 9, 2023
Merged

Conversation

atanasdinov
Copy link
Collaborator

  • Initial implementation for the apply subcommand
  • Reuses and extracts type definitions to types.rs

Signed-off-by: Atanas Dinov <[email protected]>
Signed-off-by: Atanas Dinov <[email protected]>
Signed-off-by: Atanas Dinov <[email protected]>
Signed-off-by: Atanas Dinov <[email protected]>
Signed-off-by: Atanas Dinov <[email protected]>
Signed-off-by: Atanas Dinov <[email protected]>
@atanasdinov atanasdinov marked this pull request as ready for review November 8, 2023 12:13
Copy link

@diconico07 diconico07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment on lines +37 to +41
hosts.iter_mut().for_each(|h| {
h.interfaces
.iter_mut()
.for_each(|i| i.mac_address = i.mac_address.to_lowercase());
});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You lack tests for this "to_lowercase" thing.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more of a sanity check but you're definitely right. Added a test for it.

@atanasdinov atanasdinov merged commit f3aba85 into suse-edge:main Nov 9, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants