Skip to content

Expose macaddress and DNS configuration from the netdef #395

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

Merged
merged 3 commits into from
Aug 16, 2023

Conversation

Image for: Conversation
Copy link
Contributor

daniloegea commented Aug 16, 2023

Description

Image for: Description

Add a property to retrieve the macaddress field from the netdef.

Refactor the addresses iterator to comply with our naming standards as advised in the PR #386 code review.

Add iterators for DNS nameservers and search domains following the naming standards as mentioned above.

Checklist

Image for: Checklist
  • Runs make check successfully.
  • Retains 100% code coverage (make check-coverage).
  • New/changed keys in YAML format are documented.
  • (Optional) Adds example YAML for new feature.
  • (Optional) Closes an open bug in Launchpad.
daniloegea requested a review from slyon August 16, 2023 11:37
Copy link
Collaborator

slyon left a comment

Choose a reason for hiding this comment

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

Thanks, lgtm!

This is addressing remarks I had wrt #386
I like that you refactored the address_iterator right away (even though, it's still considered to be NETPLAN_INTERNAL API). So we don't need to break that (internal) API with the next version.

slyon merged commit 70bff51 into canonical:main Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants