Upgrading and Repairing Networks