oxidecomputer / terraform-provider-oxide

Oxide Terraform provider
Mozilla Public License 2.0
20 stars 3 forks source link

Address Lot Datasource and Resource #304

Open internet-diglett opened 7 months ago

internet-diglett commented 7 months ago

Summary

Add the ability to manage address lots via Terraform Provider

Changes

Related

Closes #306

internet-diglett commented 7 months ago

Looks like we may need to update existing endpoints / expose some new endpoints from the control plane to implement Address Lots in a similar way to how we handle similar resources, like IP Pools:

https://docs.oxide.computer/api/networking_address_lot_list

https://docs.oxide.computer/api/ip_pool_list

Essentially with address lots, we cannot create a lot, then create a block for a lot. We have to declare the lot and blocks at the same time. However, you cannot view the blocks when you view a lot. You cannot add / remove blocks either. Conversely, you can create pools, then create / view / remove ranges for a pool separately.

Will discuss with the networking team and revisit once a decision has been made.

internet-diglett commented 7 months ago

Confirmed, we're going to update the system networking APIs to make them more consistent, then resume updating the Terraform provider.