Changed the behavior of state in CIs to reflect status in discovery

All the CIs imported from discovery are active except the soft-deleted devices.