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:
IPs which are not linked to any CI
AND IPs which ale linked to CIs belongs to organizations which have disabled the feature "ip_unassign_on_no_ci"
For both the logic will set status to unassigned. In some cases this leads into a "ping-pong" effect:
To correct this we should adapt the filter based on the organization of the IP not on the organization of the linked CI
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