blob: d6579d2c1f8673587dcdcffb059777c426a153cb [file] [log] [blame]
Yi Tsengcaf91d72018-02-11 14:48:31 -08001#!/usr/bin/env bash
2
3MWC_HEAD_IP="10.128.13.3"
Carmelo Casconeece972c2018-02-20 13:35:21 -08004ENODEB_ADDR="119.0.0.10"
5UE_SUBNET="17.255.0.0/16"
Yi Tsengcaf91d72018-02-11 14:48:31 -08006
7set -ex
8
Carmelo Casconef985e9e2018-02-18 22:29:53 -08009onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/mwc-demo.json
10sleep 2
11onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/hosts.json
12sleep 2
Yi Tsengcaf91d72018-02-11 14:48:31 -080013onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/tofino-leaf1-netcfg.json
14sleep 5
15onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/tofino-leaf2-netcfg.json
16sleep 5
17onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/mellanox-spine2.json
18sleep 5
19onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/cavium-spine1.json
Carmelo Casconee6bd4942018-02-15 14:35:16 -080020sleep 5
Yi Tsengcaf91d72018-02-11 14:48:31 -080021bash fpcagent/scripts/addP4DPN.sh ${MWC_HEAD_IP} device:tofino:leaf2
Carmelo Casconeece972c2018-02-20 13:35:21 -080022sleep 2
Carmelo Cascone963748d2018-03-16 17:56:48 -070023sshpass -p rocks ssh onos@${MWC_HEAD_IP} -p8101 -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" "route-add ${UE_SUBNET} ${ENODEB_ADDR}"