infobloxopen / infoblox-client

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

Not able to reserve the IP Address using objects #361

Open nikhilsharma343 opened 1 year ago

nikhilsharma343 commented 1 year ago

I am trying to reserve the IP Address within a network but not able to do so. I am using objects but getting an error:

hr = objects.IPAddress.search(conn, ip_address='10.216.38.5') hr.types.append('RESERVATION') hr.update()

infoblox_client.exceptions.InfobloxCannotUpdateObject: Cannot update object with ref ipv4address/Li5pcHY0X2Jlc3MkMTAu4rfttt2LjM4LjUvMA:10.216.38.5: b'{ "Error": "AdmConProtoError: Operation update not allowed for ipv4address", \n "code": "Client.Ibap.Proto", \n "text": "Operation update not allowed for ipv4address"\n}' [code 400]

sarya-infoblox commented 1 year ago

Hi @nikhilsharma343

The way you are trying to reserve the IP address is not correct. Give me some time, I will get back to you the correct way.