equinixmetal-archive / packngo

[Deprecated] A Golang client for the Equinix Metal API. (Packet is now Equinix Metal)
https://deploy.equinix.com/labs/equinix-sdk-go/
Other
78 stars 53 forks source link

Available Addresses call doesn't utilize CIDR #350

Closed JakeWarner closed 2 years ago

JakeWarner commented 2 years ago

The opts.Filter() call returns a new object instead of an existing. Since the underlying object isn't being modified, we must capture the output of Filter.

This API call doesn't work otherwise.