-
Couldn't load subscription status.
- Fork 99
Description
I am facing an issue when attempting to retrieve the gateway from the JSON response returned by the infoblox_ipv4_network data source in Terraform. While the data source returns various network details like cidr, ext_attrs, comment , the gateway field is missing.
Terraform v1.9.8
Provider: Infoblox v2.8.0
Terraform configuration :
data "infoblox_ipv4_network" "test" {
filters = {
network = "xx.xx.xx.xx/xx"
network_view = "my network view"
}
}
output "network" {
value = data.infoblox_ipv4_network.test
}I have confirmed that the network in Infoblox does have a gateway configured, and I can retrieve the gateway manually through the Infoblox UI or using the Infoblox API :
https://my infoblox/wapi/v2.11.2/network/my network?_return_as_object=0&_return_fields=optionsUsing the Infoblox API the gateway is retrieved as a routers object
"options": [
{
"name": "dhcp-lease-time",
"num": 51,
"use_option": false,
"value": "43200",
"vendor_class": "DHCP"
},
{
"name": "routers",
"num": 3,
"use_option": true,
**"value": "x.x.x.x",**
"vendor_class": "DHCP"
}
]Would appreciate any help on resolving this issue. Thanks in advance !