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.

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