Updated error util to auto-generate switches with set failure probabilities in network.