swconfig: add a generic switch reset call