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
79 stars 60 forks source link

Available Addresses call doesn't utilize CIDR #350

Closed JakeWarner closed 1 year ago

JakeWarner commented 1 year 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.