hashicorp / terraform-provider-infoblox

This provider has moved to https://github.com/infobloxopen/terraform-provider-infoblox
https://github.com/infobloxopen/terraform-provider-infoblox
Mozilla Public License 2.0
12 stars 22 forks source link

Issues #25 - Utilize Network Allocate Function #26

Open donwlewis opened 3 years ago

donwlewis commented 3 years ago

Fixes #25

I started this as a separate resource called infoblox_network_allocation following the naming convention of the infoblox_ip_allocation. The file is essentially a copy of the infoblox_network resource, so I there could be some improvements and consolidation that could happen. I am just not sure exactly how as I am new to provider development.

Since the new provider is affectively using the same functions and the network create provider for Delete, Update, and Read functions, it would probably make more sense to use the function in the infoblox_network provider instead of rewriting them in this provider since they would essentially be the same.

I have some done some testing with this, and it seems to work fine. If you would like for me to write a go test for it as well, I can work on that too.

Any feedback you might have will be appreciated!

AvRajath commented 3 years ago

Was this tested in your environment?

donwlewis commented 3 years ago

Yes I tested in my environment, and Create/Delete work fine, but I did not test the read. Not sure read entirely makes sense for this function.