TeemIp / teemip-core-ip-mgmt

Core modules of TeemIP, a WEB based IP Address Management tool
https://www.teemip.net
GNU Affero General Public License v3.0
19 stars 12 forks source link

Fix auto unassigns of IP with no CIs #24

Closed larhip closed 1 year ago

larhip commented 1 year ago

In Order to unassign IPs which are not linked to a CI, we have change the OQL query.

With the current wrong query you will get all IP addresses which are not linked to a CI linked to organizations which have enabled the feature. In the result you will get:

To correct this we should adapt the filter based on the organization of the IP not on the organization of the linked CI

xtophe38 commented 1 year ago

Good catch. Thanks for the work !