- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Ansible lookup query to search available network container and network for a host IP
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2022 09:08 AM
Trying to find a way to get the similar search result available from infoblox GUI using Ansible lookup query to search available network container and network for a host IP.
Ansible lookup for the host IP if its part of any of the network container and network prefixes available.
network_container_query: "{{ query('nios', 'networkcontainer', filter={'ipv4address':10.82.110.1}, return_fields=['network'], provider=nios) }
Expectation is this would return networkcontainers defined
10.0.0.0/8 10.82.0.0/16
Similar search for network
network_query: "{{ query('nios', 'network', filter={'ipv4address':10.82.110.1}, return_fields=['network'], provider=nios) }
Expectation is this would return networks defined
10.82.110.0/24 10.82.110.128/25
Currently it returns an error: float object has no element 110. Any help will be MUCH appreciated
Thanks in advance
Paul