blob: 4cc4cf70acb332cd7ed7558469d7329b06bf25a0 [file] [log] [blame]
Test User4be28e62018-03-01 07:07:02 -08001#!/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/mwc-pod/mwc-demo-mlx-test.json
10sleep 2
11onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/mwc-pod/hosts.json
12sleep 2
13onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/mwc-pod/tofino-leaf1-netcfg.json
14sleep 5
15onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/mwc-pod/tofino-leaf2-netcfg.json
16sleep 5
17onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/mwc-pod/mellanox-spine2.json
18sleep 5
19#onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/mwc-pod/cavium-spine1.json
20#sleep 5
21bash fpcagent/scripts/addP4DPN.sh ${MWC_HEAD_IP} device:tofino:leaf2
22sleep 2
23sshpass -p rocks -t onos@${MWC_HEAD_IP} "route-add ${UE_SUBNET} ${ENODEB_ADDR}"
24