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

parse-nm: handle cloned-mac-address special cases (LP: #2026230) #376

Merged
merged 1 commit into from
Jul 10, 2023

Conversation

daniloegea
Copy link
Collaborator

@daniloegea daniloegea commented Jul 6, 2023

The property "cloned-mac-address" might contain one of these special values: "preserve", "permanent", "random" and "stable". Currently we accept only a valid MAC address as value.

This change will leave the cloned-mac-address property in the networkmanager.passthrough section if it contains one of these values and will try to validate it otherwise.

Related to LP: #2026230

Description

This is a quick fix for the problem reported here https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2026230

TODO: accept these values as part of Netplan's grammar and create an autopkgtest for network-manager.

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.

The property "cloned-mac-address" might contain one of these special
values: "preserve", "permanent", "random" and "stable". Currently we
accept only a valid MAC address as value.

This change will leave the cloned-mac-address property in the
networkmanager.passthrough section if it contains one of these values
and will try to validate it otherwise.

Related to LP: #2026230
@daniloegea daniloegea requested a review from slyon July 6, 2023 12:39
@slyon slyon changed the title parse-nm: handle cloned-mac-address special cases parse-nm: handle cloned-mac-address special cases (LP: #2026230) Jul 10, 2023
Copy link
Collaborator

@slyon slyon left a comment

Choose a reason for hiding this comment

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

Thank you Danilo! LGTM 👀

@slyon slyon merged commit 0c7a0ea into canonical:main Jul 10, 2023
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