We changed the IP address of a device and now we have 2 instances in CAPC.
One with old IP address
And one with new IP address.
Check who is contributing the device to CAPC:
mysql netqosportal -unetqos -pnetqos
mysql> select sourceid,itemid,localid,itemname,lifecyclestate,v6_ntoa(address) from dst_device where itemname like '<modelname>%'\G;
We saw 3 instances, 1 with the old address from sourceid 7
Check which data source is 7:
select * from data_sources2;
In this case it was NFA.
Delete the device in NFA and rediscover with correct IP address.