blob: d72f41e68f6ed5383b279187908e9a4423972d46 [file] [log] [blame]
Andrea Campanella4f9085e2018-05-29 12:04:16 +02001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Remotely pushes bmv2 custom mininet script to a remote mininet test machine.
4# -----------------------------------------------------------------------------
5
6[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7. $ONOS_ROOT/tools/build/envDefaults
8
9node=${1:-$OCN}
10user=$ONOS_WEB_USER
11pass=$ONOS_WEB_PASS
12
Ray Milkey51cf3072018-12-11 08:46:52 -080013ssh $ONOS_USER@$node "sudo rm -rf ~/bmv2-mininet"
14ssh $ONOS_USER@$node "mkdir ~/bmv2-mininet"
15scp -qr $ONOS_ROOT/tools/dev/mininet/bmv2.py $ONOS_USER@[$node]:~/bmv2-mininet/