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 #3

Closed tapanswain-zz closed 9 years ago

tapanswain-zz commented 9 years ago

def create_host_record function, func:nextavailableip need network reference . you can call get_next_available_ip function to get free ip

tapanswain-zz commented 9 years ago

def create_host_record function, func:nextavailableip need network reference . you can call get_next_available_ip function to get free ip

igor-feoktistov commented 9 years ago

Which version WAPI you are running? In WAPI 1.6 it does not require network reference.

  From: tapanswain <notifications@github.com>

To: Infoblox-Development/Infoblox-API-Python Infoblox-API-Python@noreply.github.com Sent: Sunday, January 11, 2015 1:52 PM Subject: [Infoblox-API-Python] Update infoblox.py (#3)

def create_host_record function, func:nextavailableip need network reference . you can call get_next_available_ip function to get free ip You can merge this Pull Request by running git pull https://github.com/tapanswain/Infoblox-API-Python patch-1Or view, comment on, or merge it at:  https://github.com/Infoblox-Development/Infoblox-API-Python/pull/3 Commit Summary

File Changes

Patch Links:

tapanswain-zz commented 9 years ago

Thanks for your quick response here. we are using 1.0 version, so it is not working . Can we add functionality to as per wapi version we call different functions ?

igor-feoktistov commented 9 years ago

For WAPI 1.0 you can still use the same library with two calls:

  1. get_next_available for network2. create_host_record with obtained in step #1 IP No patch needed.
  From: tapanswain <notifications@github.com>

To: Infoblox-Development/Infoblox-API-Python Infoblox-API-Python@noreply.github.com Cc: Igor Feoktistov ifeoktistov@yahoo.com Sent: Tuesday, January 13, 2015 6:33 AM Subject: Re: [Infoblox-API-Python] Update infoblox.py (#3)

Thanks for your quick response here. we are using 1.0 version, so it is not working . Can we add functionality to as per wapi version we use functions ? — Reply to this email directly or view it on GitHub.

tapanswain-zz commented 9 years ago

two issue when we use 1,0 1)Invalid value for ipv4addr: "func:nextavailableip:x.x.x.x/y": Invalid IPv4 address , 2)Unknown argument: _return_fields=['ipv4addrs']