blob: 7500fb5b8b16aaf787a56654ae8f737c40001703 [file] [log] [blame]
A R Karthickb7e80902016-05-17 09:38:31 -07001#!/usr/bin/env bash
2dpid=${1:-001122334455}
3num_ports=${2:-200}
4controller=${3:-$ONOS_CONTROLLER_IP}
5num_ports=$(($num_ports-1))
6my_ip=`ifconfig eth0 | grep "inet addr" | tr -s ' ' | cut -d":" -f2 |cut -d" " -f1`
7if_list="veth1"
8for port in $(seq 3 2 $num_ports); do
9 if_list="$if_list"",""veth$port"
10done
11service openvswitch-switch stop
12nohup ofdatapath --no-slicing --datapath-id=$dpid --interfaces=$if_list ptcp:6653 2>&1 >/tmp/nohup.out &
13nohup ofprotocol tcp:$my_ip:6653 tcp:$controller:6633 2>&1 >/tmp/nohup.out &