System and method for efficient network reconfiguration in fat-trees