blob: ff4387ec4309a39606e2abbd046793b3472d4bed [file] [log] [blame]
Carmelo Cascone963748d2018-03-16 17:56:48 -07001#!/usr/bin/env bash
2
3MWC_HEAD_IP="10.128.13.3"
4ENODEB_ADDR="119.0.0.10"
5UE_SUBNET="17.255.0.0/16"
6
7set -ex
8
9onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/sr-conf-base.json
10sleep 2
11onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/sr-conf-cavium.json
12sleep 1
13onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/hosts.json
14sleep 2
15onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/tofino-leaf1-netcfg.json
16sleep 5
17onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/tofino-leaf2-netcfg.json
18sleep 5
19# onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/mellanox-spine2.json
20# sleep 5
21onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/cavium-spine1.json
22sleep 5
Carmelo Casconeadbdd612018-03-21 23:32:25 -070023bash fpcagent/scripts/addP4DPN.sh ${MWC_HEAD_IP} device:tofino:leaf1
Carmelo Cascone963748d2018-03-16 17:56:48 -070024sleep 2
25sshpass -p rocks ssh onos@${MWC_HEAD_IP} -p8101 -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" "route-add ${UE_SUBNET} ${ENODEB_ADDR}"