ZHA replace router without messing the whole network

Hi all, I have one sonoff gateway with tasmota and some IKEA routers to expand the ZigBee network. I want to directly replace the IKEA routers with some OSRAM plugs. How can I accomplish this without pairing everything again, since some devices are connected with IKEA routers because are the nearest ones?

Best regards,
Jaime

generally unless they are aqara devices the end devices will search for a new parent if the current one drops. (that’s how it is supposed to work)

No, doesn’t seem to be like that… I switched the routers and now all the devices connected to that router are offline.