3 # Copyright (c) 2017 All rights reserved
4 # This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
11 export PYTHONPATH=$PYTHONPATH:$DIR
14 cat > opendaylight.service << EOF
16 Description=OpenDaylight SDN Controller
17 Documentation=https://wiki.opendaylight.org/view/Main_Page http://www.opendaylight.org/
22 ExecStart=/opt/opendaylight/bin/start
23 Environment=_JAVA_OPTIONS='-Djava.net.preferIPv4Stack=true'
31 WantedBy=multi-user.target
33 curl --fail --silent -L -O http://artifacts.opnfv.org/apex/random/aaa-cli-jar.jar
34 python ./odl_reinstaller/odl_reinstaller.py $@