Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ip Addresses plugin doesn't search in sub entities. #69

Open
aknauss opened this issue Mar 3, 2023 · 6 comments
Open

Ip Addresses plugin doesn't search in sub entities. #69

aknauss opened this issue Mar 3, 2023 · 6 comments

Comments

@aknauss
Copy link

aknauss commented Mar 3, 2023

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

Franck

@nvieiralra
Copy link

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

@ofontes
Copy link

ofontes commented Nov 29, 2023

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
Copy link

ofontes commented Nov 29, 2023

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

@it-aperam
Copy link

Any fix planned for this one ?

@usterei
Copy link

usterei commented Apr 19, 2024

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

@it-aperam
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants