Skip to content

Conversation

@winiciusallan
Copy link
Contributor

This PR adds the MACAddress field to the Port controller.

Partial: #616

Note:

  • Currently, Gophercloud doesn't allow to update the MACAddress, we need this patch to allow it. For that reason, MACAddress is also immutable in ORC for now.

Signed-off-by: Winicius Silva <winiciusab12@gmail.com>
@github-actions github-actions bot added the semver:minor Backwards-compatible change label Dec 18, 2025
Copy link
Collaborator

@mandre mandre left a comment

Choose a reason for hiding this comment

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

Just a minor cleanup needed (we already set MAC address in the status) otherwise it's good to go. The additions to the tests is exactly how I would have done 👍

WithUpdatedAt(metav1.NewTime(osResource.UpdatedAt)).
WithAdminStateUp(osResource.AdminStateUp)
WithAdminStateUp(osResource.AdminStateUp).
WithMACAddress(osResource.MACAddress)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We were already returning the MAC address in the status (line 64) so this change is not necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done. I also noticed that I put in an extra writer for the AdminStateUp field in another PR. Fixed that too.

@mandre mandre added this pull request to the merge queue Jan 3, 2026
Merged via the queue into k-orc:main with commit 67fdd10 Jan 3, 2026
9 checks passed
@winiciusallan winiciusallan deleted the port-macaddress branch January 3, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:minor Backwards-compatible change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants