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

extend FloatingIP with description and subnet_id #421

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

antondollmaier
Copy link
Contributor

The OpenStack API for Floating IPs supports:

  • an optional description of the floating IP

  • optionally specifying a specific subnet_id upon creation of the floating IP

    The subnet ID is not returned on GET.

This is my first time working with php-opencloud/openstack and my first pull request to this project. I have extended the unit tests to verify the description. I did not run the integration tests but verified the changes against our OpenStack environment.

Copy link
Member

@k0ka k0ka left a comment

Choose a reason for hiding this comment

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

Hello, thank you for your contribution!

Please, fix integration tests and remove subnet_id from the model.

We can make sure the FloatingIp was created in the correct subnet by checking floatingIpAddress. But it's not that easy, so I guess we can just skip that test and make it undocumented.

src/Networking/v2/Extensions/Layer3/Api.php Outdated Show resolved Hide resolved
src/Networking/v2/Extensions/Layer3/Models/FloatingIp.php Outdated Show resolved Hide resolved
The OpenStack API for Floating IPs supports:

- an optional description of the floating IP
- specifying a specific subnet_id upon creation

  The subnet ID is not returned on GET.
@k0ka k0ka merged commit 9886899 into php-opencloud:master Jan 7, 2025
23 checks passed
@k0ka
Copy link
Member

k0ka commented Jan 7, 2025

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