blob: d72f41e68f6ed5383b279187908e9a4423972d46 [file] [log] [blame]
#!/bin/bash
# -----------------------------------------------------------------------------
# Remotely pushes bmv2 custom mininet script to a remote mininet test machine.
# -----------------------------------------------------------------------------
[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
. $ONOS_ROOT/tools/build/envDefaults
node=${1:-$OCN}
user=$ONOS_WEB_USER
pass=$ONOS_WEB_PASS
ssh $ONOS_USER@$node "sudo rm -rf ~/bmv2-mininet"
ssh $ONOS_USER@$node "mkdir ~/bmv2-mininet"
scp -qr $ONOS_ROOT/tools/dev/mininet/bmv2.py $ONOS_USER@[$node]:~/bmv2-mininet/