Infoblox-Development / Infoblox-API-Python

Implements the subset of Infoblox API via REST API
Apache License 2.0
90 stars 59 forks source link

Update infoblox.py #4

Closed tapanswain-zz closed 9 years ago

tapanswain-zz commented 9 years ago

added ping functionality , get_next_available_ip only give unpinging ip.

tapanswain-zz commented 9 years ago

We are seeing one issue while adding host record to infoblox. 1) if the dns entry already exit in infoblox and you are adding same entry to by infoblox by calling create_host_record . The call hangs and never come out. def create_host_record(self, address, fqdn):

igor-feoktistov commented 9 years ago

Perhaps something to do with IB code, could be a bug in IB code. It works as expected in my LAB IB version 6.11.5-254787

I'd recommend to open a case with IB support for this.This is what I'm getting from my test IB:

Traceback (most recent call last):   File "./infoblox_test.py", line 17, in     iba_api.create_host_record('10.42.248.50', 'test1.example.com')   File "build/bdist.linux-x86_64/egg/infoblox.py", line 138, in create_host_record

infoblox.InfobloxGeneralException: The record 'test1.example.com' already exists.

  From: Tapan Jyoti Swain <notifications@github.com>

To: Infoblox-Development/Infoblox-API-Python Infoblox-API-Python@noreply.github.com Sent: Tuesday, March 24, 2015 9:52 PM Subject: Re: [Infoblox-API-Python] Update infoblox.py (#4)

We are seeing one issue while adding host record to infoblox. 1) if the dns entry already exit in infoblox and you are adding same entry to by infoblox by calling create_host_record . The call hangs and never come out. def create_host_record(self, address, fqdn): — Reply to this email directly or view it on GitHub.