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

Add ability to allocate next available network #30

Closed AliaksandrDziarkach closed 4 years ago

AliaksandrDziarkach commented 4 years ago

Added optional parameter allocate_prefix_len When parameter set to value>0 ibclient.AllocateNetwork method used to get next available network from network container defined by cidr

Acceptance test result: === RUN TestAccresourceNetwork --- PASS: TestAccresourceNetwork (0.69s) === RUN TestAccresourceNetwork_Allocate --- PASS: TestAccresourceNetwork_Allocate (0.70s)

AliaksandrDziarkach commented 4 years ago

Code updated with latest changes

AvRajath commented 4 years ago

Can we add a example file too as you have already tested it? so that it will be helpful for one to use it. Rest looks good to me.

AliaksandrDziarkach commented 4 years ago

Accpetance test resource_infoblox_network_test.go already contains example.

But I can add it in separate file if needed.

AvRajath commented 4 years ago

Merging this PR as the example is available in the test.