def _apply_hook(bondings, networks, options): results = hooks.before_network_setup( _build_setup_hook_dict(networks, bondings, options)) # gather any changes that could have been done by the hook scripts networks = results['request']['networks'] bondings = results['request']['bondings'] options = results['request']['options'] return bondings, networks, options