The Infoblox WAPI supports searching for host records by network CIDR in newer WAPI versions.
This works much better than the regular-expression based suggestion from the infoblox-client documentation.
I seems like support for this would only require two changes:
Newer WAPI versions may have other changes, please consider adding them as well.
As a workaround, the following approach may be used (note: needs some testing if the higher API level has unexpected side effects):
# initialize the connector with a newer WAPI version than the default
opts = {'host': '192.168.1.10', 'username': 'admin', 'password': 'admin', 'wapi_version': '2.13',}
conn = connector.Connector(opts)
# search for hosts by network CIDR
hosts = conn.get_object('record:host', {'network': '10.0.0.0/24'})
The Infoblox WAPI supports searching for host records by network CIDR in newer WAPI versions.
This works much better than the regular-expression based suggestion from the infoblox-client documentation.
I seems like support for this would only require two changes:
Newer WAPI versions may have other changes, please consider adding them as well.
As a workaround, the following approach may be used (note: needs some testing if the higher API level has unexpected side effects):