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

feat: Updated metal-go client for sub-commands ips #291

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

codinja1188
Copy link
Contributor

Breakout from #270

What this PR does / why we need it:

This PR replaces packngo with metal-go for all interactions with the Equinix Metal API specifically for ports sub commands

DISCUSSION POINTS:

META parameter is missing in IPAddressList https://github.com/vasubabu/metal-go/blob/main/docs/IPReservationList.md

@codinja1188 codinja1188 marked this pull request as draft June 30, 2023 16:56
@codinja1188 codinja1188 mentioned this pull request Aug 16, 2023
15 tasks
@codinja1188 codinja1188 temporarily deployed to external September 5, 2023 14:38 — with GitHub Actions Inactive
}

reservation, _, err := c.ProjectService.Request(projectID, req)
reservation, _, err := c.IPService.RequestIPReservation(context.Background(), projectID).RequestIPReservationRequest(*requestIPReservationRequest).Execute()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The following command throws an Error, but but request is accepted and allocated IP's

Vasubabus-MacBook-Pro:bin vasubabu$ ./metal ip request -p a48e16b7-77bd-4172-b25f-3e8633e1e171 -t public_ipv4 -m da -q 4
Error: Could not request IP addresses: data matches more than one schema in oneOf(RequestIPReservation201Response)

Copy link
Contributor

Choose a reason for hiding this comment

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

Your fix for this was released in [email protected], so you can update to that version in this PR to resolve the issue.

@codinja1188 codinja1188 temporarily deployed to external September 25, 2023 13:09 — with GitHub Actions Inactive
@codinja1188 codinja1188 temporarily deployed to external September 29, 2023 14:42 — with GitHub Actions Inactive
@codinja1188 codinja1188 changed the title Updated metal-go client for sub-commands ips fix: Updated metal-go client for sub-commands ips Sep 29, 2023
@ctreatma ctreatma changed the title fix: Updated metal-go client for sub-commands ips feat: Updated metal-go client for sub-commands ips Sep 29, 2023
@ctreatma ctreatma marked this pull request as ready for review September 29, 2023 20:55
@ctreatma ctreatma merged commit ccfb9bd into equinix:main Sep 29, 2023
9 of 10 checks passed
ocobles pushed a commit that referenced this pull request Nov 10, 2023
Breakout from #270

What this PR does / why we need it:

This PR replaces packngo with metal-go for all interactions with the
Equinix Metal API specifically for ports sub commands

DISCUSSION POINTS:

META parameter is missing in IPAddressList
https://github.com/vasubabu/metal-go/blob/main/docs/IPReservationList.md
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