neutron/devstack/lib/rally
Armando Migliaccio f5e30abcc5 Add rally hook to neutron devstack plugin
This allows us to configure neutron when running the rally job in
the gate. This effort stems from patch [1]. Blame Kevin for not
wanting to squash the two together.

[1] I12aaf6121b677e9696131601b3539a7091e2858c
Change-Id: I006957784ac7900021bcfee57cbc83b5a6c533c4
2016-11-10 07:44:28 +00:00

14 lines
334 B
Bash

#!/bin/bash
RALLY_EXTRA_DIR="$DEST/neutron/rally-jobs/extra"
# If rally has been configured, .setup files can be sourced to control the
# neutron configuration required to run the scenario plugins.
if [[ "$DEVSTACK_PLUGINS" =~ "rally" ]];
then
for file in $(ls $RALLY_EXTRA_DIR/*.setup);
do
source $file
done
fi