a few more cleanup items
@@ -147,10 +147,17 @@ if db_go; then
command -v python >/dev/null 2>&1 || { echo >&2 -e "${red}Python not installed, please install it first: sudo apt-get install python${endColor}"; db_unregister poseidon/controller_type; exit 1; }
command -v mn >/dev/null 2>&1 || { echo >&2 -e "${red}Mininet not installed, please install it first: sudo apt-get install mininet${endColor}"; db_unregister poseidon/controller_type; exit 1; }
command -v docker-compose >/dev/null 2>&1 || { sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-"$(uname -s)"-"$(uname -m)" -o /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose; }
- git clone https://github.com/faucetsdn/faucet
- mn -c
- pushd faucet && FAUCET_CONFIG_STAT_RELOAD=1 FAUCET_EVENT_SOCK=1 FA_RABBIT_HOST=$default_ip docker-compose -f docker-compose.yaml -f adapters/vendors/rabbitmq/docker-compose.yaml up --build -d && popd
+ pushd /tmp && git clone https://github.com/faucetsdn/faucet || true
+ mn -c || true
+ pushd /tmp/faucet && FAUCET_CONFIG_STAT_RELOAD=1 FAUCET_EVENT_SOCK=1 FA_RABBIT_HOST=$default_ip docker-compose -f docker-compose.yaml -f adapters/vendors/rabbitmq/docker-compose.yaml up --build -d && popd
db_unregister poseidon/controller_type
+ echo ""
+ echo ""
+ echo ""
+ echo "################"
+ echo "# INSTRUCTIONS #"
+ echo "################"
+ echo ""
echo "Wait for Poseidon to fully start, you can check the status with 'poseidon status'"
echo "Once the service shows Active as 'active' and the logs show it's no longer waiting for Poseidon containers to become healthy (this can take several minutes) start watching Poseidon logs with 'poseidon logs'"
echo "In another terminal you can start mininet with the following:"
@@ -172,6 +179,8 @@ if db_go; then
echo ""
echo "Finally, you can visualize the network that Poseidon sees using CRviz, which can be accessed with 'poseidon visualize'"
echo ""
+ echo "When you're done with the demo, you can use 'poseidon reset'"
+ echo ""
fi
else
echo >&2 -e "${red}You need to specify the controller type.${endColor}"
