Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

API & Integration, DevOps,NetOps,SecOps

Reply

Error A network was not found for this address with Infoblox-client

[ Edited ]
Techie
Posts: 4
115     0

I am getting the above error when I search for an ipv4address that does not exist and there is no network for it. I do not see a way to catch this exact error

https://pd-grid.thrivent.com/wapi/v2.11.3/ipv4address?ip_address=10.0.146.4&_return_fields=network:

is my URL and I do not have a 10.0.146.0/24 network, which is why I get the error. Does anyone know of a way to catch the error?

Re: Error A network was not found for this address with Infoblox-client

Superuser
Posts: 19
116     0

Where are you trying to catch the error?

Re: Error A network was not found for this address with Infoblox-client

Techie
Posts: 4
116     0

There are exceptions built into the infoblox-client.py but this one is not there. This is the code I run:

https://10.10.10.10/wapi/v2.11.3/ipv4address?ip_address=10.8.146.4

I do not have a 10.8.146.0 network so I get the error "{ "Error": "AdmConDataError: None (IBDataError: IB.Data:A network was not found for this address.)", \n "code": "Client.Ibap.Data", \n "text": "A network was not found for this address."\n}" and the only way I can make it so it does not show the user is if I change the log level to Error. 

Showing results for 
Search instead for 
Did you mean: 

Recommended for You