Skip to content

Commit ec4dcc2

Browse files
authored
Updates to the CHANGELOG and documentation (#304)
1 parent bfce62d commit ec4dcc2

File tree

4 files changed

+40
-5
lines changed

4 files changed

+40
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [v2.4.0](https://github.com/infobloxopen/terraform-provider-infoblox/tree/v2.4.0) (2023-05-29)
4+
- IPV4/IPV6 Network Container resources reworked:
5+
- 'parent_cidr' and 'allocate_prefix_len' are added for dynamic allocation
6+
- both the resources now support the dynamic allocation determined by 'parent_cidr'
7+
- added examples for dynamic allocation in each IPV4 and IPV6 resources
8+
- Bugfixes
9+
310
## [v2.3.0](https://github.com/infobloxopen/terraform-provider-infoblox/tree/v2.3.0) (2023-04-13)
411
- Minimal required Go-lang version is bumped up
512
- infoblox_ptr_record resource's behaviour changes (see the documentation changes for the details)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
This is a provider plugin for Terraform to manage Infoblox NIOS (Network Identity Operating System) resources using Terraform infrastructure as code solutions.
88
The plugin enables lifecycle management of Infoblox NIOS DDI resources.
99

10-
The latest version of Infoblox provider is [v2.3.0](https://github.com/infobloxopen/terraform-provider-infoblox/releases/tag/v2.3.0)
10+
The latest version of Infoblox provider is [v2.4.0](https://github.com/infobloxopen/terraform-provider-infoblox/releases/tag/v2.4.0)
1111

1212
## Provider Features
1313

docs/resources/infoblox_ipv4_network_container.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ The following list describes the parameters you can define in the network contai
77
resource block:
88

99
* `network_view`: optional, specifies the network view in which to create the network container; if a value is not specified, the name `default` is used as the network view.
10-
* `cidr`: required, specifies the network block to use for the network container; do not use an IPv6 CIDR for an IPv4 network container.
10+
* `cidr`: required only if `parent_cidr` is not set, specifies the network block to use for the network container; do not use an IPv6 CIDR for an IPv4 network container.
11+
* `parent_cidr`: required only if `cidr` is not set, specifies the network container from which next available network container must be allocated.
12+
* `allocate_prefix_len`: required only if `parent_cidr` is set, defines length of netmask for a network container that should be allocated from network container, determined by `parent_cidr`.
1113
* `comment`: optional, describes the network container.
1214
* `ext_attrs`: optional, specifies the set of NIOS extensible attributes that will be attached to the network container.
1315

1416
!> Once the network container is created, the `network_view` and `cidr` parameter values cannot be changed by performing an `update` operation.
1517

18+
!> Once the network container is created dynamically, the `parent_cidr` and `allocate_prefix_len` parameter values cannot be changed.
19+
1620
### Examples of the Network Container Resource
1721

1822
```hcl
@@ -32,5 +36,15 @@ resource "infoblox_ipv4_network_container" "v4net_c2" {
3236
})
3337
}
3438
35-
// so far, we do not support dynamic allocation of network containers
39+
// full set of parameters for dynamic allocation of network containers
40+
resource "infoblox_ipv4_network_container" "v4net_c3" {
41+
parent_cidr = infoblox_ipv4_network_container.v4net_c2.cidr
42+
allocate_prefix_len = 26
43+
network_view = infoblox_ipv4_network_container.v4net_c2.network_view
44+
comment = "dynamic allocation of network container"
45+
ext_attrs = jsonencode({
46+
"Site" = "remote office"
47+
"Country" = "Australia"
48+
})
49+
}
3650
```

docs/resources/infoblox_ipv6_network_container.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@ The following list describes the parameters you can define in the network contai
77
resource block:
88

99
* `network_view`: optional, specifies the network view in which to create the network container; if a value is not specified, the name `default` is used as the network view.
10-
* `cidr`: required, specifies the network block to use for the network container; do not use an IPv4 CIDR for an IPv6 network container.
10+
* `cidr`: required only if `parent_cidr` is not set, specifies the network block to use for the network container; do not use an IPv4 CIDR for an IPv6 network container.
11+
* `parent_cidr`: required only if `cidr` is not set, specifies the network container from which next available network container must be allocated.
12+
* `allocate_prefix_len`: required only if `parent_cidr` is set, defines length of netmask for a network container that should be allocated from network container, determined by `parent_cidr`.
1113
* `comment`: optional, describes the network container.
1214
* `ext_attrs`: optional, specifies the set of NIOS extensible attributes that will be attached to the network container.
1315

1416
!> Once the network container is created, the `network_view` and `cidr` parameter values cannot be changed by performing an `update` operation.
1517

18+
!> Once the network container is created dynamically, the `parent_cidr` and `allocate_prefix_len` parameter values cannot be changed.
19+
1620
### Examples of the Network Container Resource
1721

1822
```hcl
@@ -32,5 +36,15 @@ resource "infoblox_ipv6_network_container" "v6net_c2" {
3236
})
3337
}
3438
35-
// so far, we do not support dynamic allocation of network containers
39+
// full set of parameters for dynamic allocation of network containers
40+
resource "infoblox_ipv6_network_container" "v6net_c3" {
41+
parent_cidr = infoblox_ipv6_network_container.v6net_c2.cidr
42+
allocate_prefix_len = 97
43+
network_view = infoblox_ipv6_network_container.v6net_c2.network_view
44+
comment = "dynamic allocation of network container"
45+
ext_attrs = jsonencode({
46+
"Tenant ID" = "terraform_test_tenant"
47+
Site = "Test site"
48+
})
49+
}
3650
```

0 commit comments

Comments
 (0)