Skip to content

Conversation

@winiciusallan
Copy link
Contributor

@winiciusallan winiciusallan commented Dec 30, 2025

This PR adds the binding:profile field to the Port controller.

  • Part of the implementation was inspired by the already implemented controller on CAPO.
  • The profile field on the port API is originally a free-form dict, but I decided to not expose in that way to only support the Neutron values.
  • I also added a change on e2e action, because we need to override the default neutron policy so we can create and update ports with profile, since it is allowed by "services users" by default.

Partial: #616

Signed-off-by: Winicius Silva <winiciusab12@gmail.com>
To test properly the binding:profile field, we need to override the
default policies to allow stack user to create and update it.

The warning section here[1] on docs discuss better.

[1] https://docs.openstack.org/api-ref/network/v2/index.html#port-binding-extended-attributes

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

There is a difference between this implementation and the implemented on CAPO - I have used the capabilities field instead of a boolean value that indicates whether OVS hardware offload must be enabled or not. I believe that the latest avoid user error, but the first uses exactly what Openstack returns to us.

Wdty? cc. @mandre

Also, I'm spending some time configuring an environment to test the changes to the CI that I made before running again.

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.

1 participant