Skip to content

Support searching host records by network CIDR #396

@srgoni

Description

@srgoni

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'})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions