Learn How We Can Help You Keep Teleworkers Protected During the COVID-19 Crisis

DNS DHCP IPAM

Reply
Highlighted

Related Objects: what is the point of these and how do I get rid of them?

Authority
Posts: 31
1576     0

We're using Infoblox  only as an IPAM.  I've noticed that many of our addresses have multiple rows in Related Objects when you've drilled all the way down to the IP address.  Additionally, on fields that have changed over time, all of the values will be comma-separated in the list view of the subnet.

 

This happens for sure when a field's value is updated via CSV import (possibly only when append is chosen) or on a cURL request.

 

Here is the JSON that would be sent as the payload on curl:

{
	"configure_for_dns": false,
	"name": "myname",
	"extattrs": {
		"Circuit_id": {
			"value": 11114
		}
	},
	"ipv4addrs": [{
		"use_for_ea_inheritance": true,
		"ipv4addr": "1.1.1.252"
	}]
}

For example, if I changed this Circuit_id from 11114 to 11115, the field's value would show up in the list view as '11114,11115'

 

So three questions:

  • Is there a point to having these related objects?
  • Is there a way to globally disable this behavior?
  • Is there a way to send a flag or something during a cURL request that specifies to overwrite, not to append?

Thanks!

Blair

Highlighted

Re: Related Objects: what is the point of these and how do I get rid of them?

Adviser
Posts: 69
1576     0

Hi Blair,

 

In Infoblox, a single IP address can be associated with multiple objects. An example of this would be a host record pointing to an IP address and a fixed address with the same IP address. 

 

Also, there can be multiple host records pointing to the same IP address.

 

Hence, when a new host is added, the old host associated with that IP address is not removed.

 

If you are using curl, my suggestion would be to make a call with the method 'DELETE' for the IP address before adding a new host. This will delete all the associated objects with that IP address. Below is an example.

 

work@srenjith ~/Dropbox/Scripting/Perl $curl -k -u admin:cloud -X GET https://10.192.33.21/wapi/v2.3/ipv4address?ip_address=14.0.0.111
[
    {
        "_ref": "ipv4address/Li5pcHY0X2FkZHJlc3MkMTQuMC4wLjExMS8w:14.0.0.111",
        "ip_address": "14.0.0.111",
        "is_conflict": false,
        "mac_address": "",
        "names": [
            "test"
        ],
        "network": "14.0.0.0/24",
        "network_view": "default",
        "objects": [
            "record:host/ZG5zLmhvc3QkLm5vbl9ETlNfaG9zdF9yb290LjAuMTQ5NTIyMzI5OTc5OC50ZXN0:test/%20"
        ],
        "status": "USED",
        "types": [
            "HOST"
        ],
        "usage": []
    }

 

 

work@srenjith ~/Dropbox/Scripting/Perl $ curl -k -u admin:cloud -X DELETE https://10.192.33.21/wapi/v2.3/ipv4address/Li5pcHY0X2FkZHJlc3MkMTQuMC4wLjExMS8w:14.0.0.111
"ipv4address/Li5pcHY0X2FkZHJlc3MkMTQuMC4wLjExMS8w:14.0.0.111"

 

 

work@srenjith ~/Dropbox/Scripting/Perl $ curl -k -u admin:cloud -X GET https://10.192.33.21/wapi/v2.3/ipv4address?ip_address=14.0.0.111
[
    {
        "_ref": "ipv4address/Li5pcHY0X2FkZHJlc3MkMTQuMC4wLjExMS8w:14.0.0.111",
        "ip_address": "14.0.0.111",
        "is_conflict": false,
        "mac_address": "",
        "names": [],
        "network": "14.0.0.0/24",
        "network_view": "default",
        "objects": [],
        "status": "UNUSED",
        "types": [],
        "usage": []
    }

Showing results for 
Search instead for 
Do you mean 

Recommended for You