To reproduce:
- Add a network device to a server (e.g. Server1/Router1)
- Export the data by the mean of the CSV export: .../webservices/export-v2.php?expression=SELECT Server WHERE id=1&fields=org_id,name,networkdevice_list&format=csv
- Change the value for network port
- Import server data by the mean of a CSV import
- The history says "Removed Router1, Added Router1", while the expected report is "modified Route1, changed "network port".
This issue has a low exposure since it happens for N-N having duplicates allowed. In the standard datamodel, only links between Connectable CIs and Network Devices are concerned.
See also [#1145], affecting also N-N links with duplicates allowed. But the fix might be different anyway.
Related
Tickets:
#1145Note that when performing the modification via the user interface, the underlying processing is slightly different and the history is correct.