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

Adding two A record entres for the same ip overwrites first

Member
Posts: 2
1516     0

Were trying to programtically  add add 2 host entreois for the same IP using

record = objects.ARecord.create(conn, view=view, name=my_host, ip=my_ip, check_if_exists=True,
update_if_exists=True)

Howeverm the second entry always seems to overwrite /. modify the first, rather than adding an additional entry as expected. 
so running the abobve twice with my_host=test and my_host=test1 and the same ip, only result with the test1 enbtry not both A records as expected. Am I doing soimething wrong  here ? 

DnsView=Internal address=1.1.1.2: fqdn: from=test.domain.com to=test1.domain.com

Re: Adding two A record entres for the same ip overwrites first

Adviser
Posts: 181
1517     0

Hi,

 

Can you try it without the update_if_exists parameter?

 

record = objects.ARecord.create(conn, view=view, name=my_host, ip=my_ip)

Regards,

Krishna Vasudevan

Re: Adding two A record entres for the same ip overwrites first

Member
Posts: 2
1517     0

In this case, the record isnt updated, but the second record is no longer added - with debug added I get the following
INFO:infoblox_client.objects:Infoblox record:a already exists: ARecord: ipv4addr="1.1.1.4"

Showing results for 
Search instead for 
Did you mean: 

Recommended for You