blob: 6e8fd0f969a6b939decf1d2df7a5e55a74ac15e3 [file] [log] [blame]
Carmelo Cascone54984222018-02-02 20:28:50 -08001#!/usr/bin/env bash
2
3MWC_HEAD_IP="10.128.13.3"
Test User465ba1c2018-02-25 05:23:19 -08004ENODEB_ADDR="119.0.0.10"
5UE_SUBNET="17.255.0.0/16"
Carmelo Cascone54984222018-02-02 20:28:50 -08006
7set -ex
8
Test User465ba1c2018-02-25 05:23:19 -08009onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/mwc-pod/mwc-demo.json
10sleep 2
11onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/mwc-pod/hosts.json
12sleep 2
Carmelo Cascone54984222018-02-02 20:28:50 -080013onos-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
Test User465ba1c2018-02-25 05:23:19 -080017#onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/mwc-pod/mellanox-spine2.json
18#sleep 5
Carmelo Cascone54984222018-02-02 20:28:50 -080019onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/mwc-pod/cavium-spine1.json
Test User465ba1c2018-02-25 05:23:19 -080020sleep 5
Carmelo Cascone54984222018-02-02 20:28:50 -080021bash fpcagent/scripts/addP4DPN.sh ${MWC_HEAD_IP} device:tofino:leaf2
Test User465ba1c2018-02-25 05:23:19 -080022sleep 2
23sshpass -p rocks -t onos@${MWC_HEAD_IP} "route-add ${UE_SUBNET} ${ENODEB_ADDR}"
24