Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More options added #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,28 @@ set -x
path=$1
if [ "$path" = "" ]
then
echo Usage: ./build \<path to netvirt\>
echo Usage: ./build \<path-to-repo\> [feature-list]
exit 2
fi
targetpath=${path}/karaf/target
feature="odl-netvirt-openstack"
feature=${2:-"odl-netvirt-openstack"}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To me it makes sense that if the user passes in a list of features that should be it, no? It would be more flexible. Like, maybe someone would want to use this to test some feature that has nothing to do with netvirt or genius, etc. On the other hand, if someone is specifying the list of features, it's not such a big deal to tack on odl-netvirt-openstack.

if [[ $1 = *"hwvtepsouthbound"* ]];
then
targetpath="$1/hwvtepsouthbound-karaf/target"
feature="odl-hwvtepsouthbound-rest"
feature=${2:-"odl-hwvtepsouthbound-rest"}
elif [[ $1 = *"southbound"* ]];
then
targetpath="$1/southbound-karaf/target"
feature="odl-southbound-rest"
feature=${2:-"odl-southbound-rest"}
elif [[ $1 = *"genius"* ]];
then
feature="odl-genius-rest"
feature=${2:-"odl-genius-rest"}
elif [[ $1 = *"neutron"* ]];
then
feature="odl-neutron-service"
feature=${2:-"odl-neutron-service"}
elif [[ $1 = *"distribution"* ]];
then
feature=${2:-"odl-restconf-noauth,odl-jolokia,odl-restconf,odl-clustering-test-app"}
fi

wget -O ${targetpath}/assembly/bin/configure_cluster.sh https://raw.githubusercontent.com/opendaylight/integration-distribution/master/karaf/src/main/assembly/bin/configure_cluster.sh
Expand Down
9 changes: 9 additions & 0 deletions down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
set +x
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this script overlaps too much with wipe. I say delete wipe (wipe wipe ;-).

Also, I think both of these changes should be documented in the README


for i in ${@:-1 2 3}
do
echo Stopping $i...
sudo docker stop odl_172.28.5.$i
sudo docker rm odl_172.28.5.$i
sleep 5
done