blob: 62d8782749a6a77377c3124333d724ed214f52da [file] [log] [blame]
Yi Tsengcaf91d72018-02-11 14:48:31 -08001#!/usr/bin/env bash
2
3MWC_HEAD_IP="10.128.13.3"
4
5set -ex
6
7onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/tofino-leaf1-netcfg.json
8sleep 5
9onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/tofino-leaf2-netcfg.json
10sleep 5
11onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/mellanox-spine2.json
12sleep 5
13onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/cavium-spine1.json
Carmelo Casconee6bd4942018-02-15 14:35:16 -080014sleep 5
Yi Tsengcaf91d72018-02-11 14:48:31 -080015onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/mwc-demo.json
16sleep 10
Yi Tseng5ba756c2018-02-16 14:41:16 -080017onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/hosts.json
18sleep 5
Yi Tsengcaf91d72018-02-11 14:48:31 -080019bash fpcagent/scripts/addP4DPN.sh ${MWC_HEAD_IP} device:tofino:leaf2