Skip to content

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

Merged
slyon merged 1 commit intocanonical:mainfrom
daniloegea:nm_cloned-mac-address
Jul 10, 2023
Merged

parse-nm: handle cloned-mac-address special cases (LP: #2026230)#376
slyon merged 1 commit intocanonical:mainfrom
daniloegea:nm_cloned-mac-address

Conversation

@daniloegea
Copy link
Contributor

@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
Contributor

@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