The migration done in T267865#6624814 properly moved the interfaces but for some reasons the cables were still tied to the device itself.
This caused all the cables from asw-c7-codfw to be deleted at the same time as the switch.
https://netbox.wikimedia.org/extras/changelog/?request_id=12a5ec8c-f569-4f47-a847-1f4276d589ce