Skip to content

Instantly share code, notes, and snippets.

@abn
Created March 11, 2015 08:30
Show Gist options
  • Select an option

  • Save abn/f9f2a6f95e067ee29c34 to your computer and use it in GitHub Desktop.

Select an option

Save abn/f9f2a6f95e067ee29c34 to your computer and use it in GitHub Desktop.
.bashrc for OpenDaylight development environment
#!/usr/bin/env bash
export ODL_DEVEL_HOME=${ODL_DEVEL_HOME-$(pwd)}
export ODL_USERNAME=${ODL_USERNAME-$(whoami)}
export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"
function odl-test-integration(){
INTEGRATION_DIR=${ODL_DEVEL_HOME}/integration
if [ ! -d "${INTEGRATION_DIR}" ]; then
git clone ssh://${ODL_USERNAME}@git.opendaylight.org:29418/integration.git
fi
( cd ${INTEGRATION_DIR} \
&& mvn clean install -D skipTests \
&& cd distributions/karaf/target/assembly \
&& ./bin/karaf )
}
function odl-mvn-all(){
for i in affinity bgpcep controller lispflowmapping openflowjava \
openflowplugin ovsdb/commons/parent vtn yangtools; do
( cd "$i" && mvn $@ )
done
}
function odl-clone-all(){
for PROJECT in aaa affinity bgpcep controller defense4all dlux docs \
groupbasedpolicy integration l2switch \
lispflowmapping odlparent opendove openflowjava openflowplugin \
opflex ovsdb packetcable releng/autorelease releng/builder \
reservation sdninterfaceapp sfc snbi snmp4sdn tcpmd5 toolkit ttp \
vtn yangtools; do
git clone ssh://${ODL_USERNAME}@git.opendaylight.org:29418/${PROJECT}.git ${PROJECT};
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment