Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Retrieving Gateway using infoblox_ipv4_network Data Source #422

Open
akli-ime opened this issue Dec 4, 2024 · 0 comments
Open

Comments

@akli-ime
Copy link

akli-ime commented Dec 4, 2024

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=options

Using 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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant