addressing icon indicating copy to clipboard operation
addressing copied to clipboard

Ip Addresses plugin doesn't search in sub entities.

Open aknauss opened this issue 2 years ago • 6 comments

Hi, When I put subnet and look for Ip Addressing in sub entities, nothing appears.

Franck

aknauss avatar Mar 03 '23 13:03 aknauss

Hi, I have the same problem, has anyone found a solution? This plugin is essential to manage the IP addressing of my network. Thanks

nvieiralra avatar Aug 15 '23 08:08 nvieiralra

I have the same question. I understand that crawling all sub entities could be no desired but in some case (mine) i have to know all ip of a my public subnet affected into many entities.

As i saw in the db structure there is no "recurse" option allowed for the moment, i think that we need to make a patch (database and code) to have this feature.

ofontes avatar Nov 29 '23 09:11 ofontes

A quick and dirty patch you can do if you need only recursive requests in the file inc/addressing.class.php line 525:

$dbu = new DbUtils(); //if (isset($entities)) { // $sql .= $dbu->getEntitiesRestrictRequest(" AND ", "dev", "entities_id", $entities); //} else { // $sql .= $dbu->getEntitiesRestrictRequest(" AND ", "dev", "entities_id", $this->fields['entities_id']); //} if (isset($type_filter)) {

Maybe we could do better with adding "is_recursive" field into the table "glpi_plugin_addressing_addressing" and update the code to have the recursive option

ofontes avatar Nov 29 '23 09:11 ofontes

Any fix planned for this one ?

it-aperam avatar Jan 02 '24 16:01 it-aperam

Same issue here - it really complicates things as items have to be in the same entity as the IP addresses

usterei avatar Apr 19 '24 14:04 usterei

Same issue here - it really complicates things as items have to be in the same entity as the IP addresses

I found something, you have to migrate entity of your IP range. In addressing plugin, select your IP range -> Actions -> Transfer -> Choose the good entity. After the hosts in this entity appear in the report.

it-aperam avatar Apr 23 '24 06:04 it-aperam