adding network#rebuild method to rebuild network for VM