blob: 248d9b99ea8d2a086803352dfc5c620f7b9f2487 [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
Test User4be28e62018-03-01 07:07:02 -080023sshpass -p rocks ssh onos@${MWC_HEAD_IP} -p8101 -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" "route-add ${UE_SUBNET} ${ENODEB_ADDR}"
Test User465ba1c2018-02-25 05:23:19 -080024