infobloxopen / infoblox-client

Infoblox NIOS Python WAPI Client
Apache License 2.0
142 stars 104 forks source link

Support "contains_address" search field for NetworkV4 #372

Open UvixCreative opened 1 year ago

UvixCreative commented 1 year ago

It appears that the contains_address search field for NetworkV4 objects is not currently supported. When I tried to use this kwarg, the URL that was built for the request did not include the contains_address field.

I gave a quick look at the source code and tried to fix it by just adding contains_address to the _all_searchable_fields variable in the NetworkV4 class, but that doesn't appear to work.

UvixCreative commented 1 year ago

If it's not obvious, I did some more digging and got it working in #373. I did not add this to NetworkV6 because, as far as I can tell from the WAPI documentation, IPv6 networks do not support contains_address