Currently, only logical networks of type "Static" can be created. The "Static" type is hardcoded as shown below:
subnet_0_properties_full = {
addressPrefix = var.address_prefix, # compute from starting address and ending address
ipAllocationMethod = "Static",
ipPools = [{
info = {}
start = var.starting_address
end = var.ending_address
}]
Solution
This PR introduces a way to specify the type of logical network through the following variable:
ip_allocation_method [Optional] - Specifies whether the IP address allocation should be "Static" or "Dynamic". This variable is optional and defaults to Dynamic.
How to test
Navigate to examples/dhcp/ and execute the terraform commands.
Description
Problem
Currently, only logical networks of type "Static" can be created. The "Static" type is hardcoded as shown below:
Solution
This PR introduces a way to specify the type of logical network through the following variable:
ip_allocation_method
[Optional] - Specifies whether the IP address allocation should be "Static" or "Dynamic". This variable is optional and defaults toDynamic
.How to test
Navigate to
examples/dhcp/
and execute theterraform
commands.Type of Change
Checklist