diff --git a/tools/configure_for_func_testing.sh b/tools/configure_for_func_testing.sh
index f603b125a5d..228233fec88 100755
--- a/tools/configure_for_func_testing.sh
+++ b/tools/configure_for_func_testing.sh
@@ -171,9 +171,11 @@ EOF
 function _install_agent_deps {
     echo_summary "Installing agent dependencies"
 
+    ENABLED_SERVICES=q-agt,q-dhcp,q-l3
+
+    source $DEVSTACK_PATH/lib/neutron
     source $DEVSTACK_PATH/lib/neutron-legacy
 
-    ENABLED_SERVICES=q-agt,q-dhcp,q-l3
     install_neutron_agent_packages
 }