Self-Repair Networks