Yi Tseng | caf91d7 | 2018-02-11 14:48:31 -0800 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | MWC_HEAD_IP="10.128.13.3" |
Carmelo Cascone | ece972c | 2018-02-20 13:35:21 -0800 | [diff] [blame] | 4 | ENODEB_ADDR="119.0.0.10" |
| 5 | UE_SUBNET="17.255.0.0/16" |
Yi Tseng | caf91d7 | 2018-02-11 14:48:31 -0800 | [diff] [blame] | 6 | |
| 7 | set -ex |
| 8 | |
Carmelo Cascone | f985e9e | 2018-02-18 22:29:53 -0800 | [diff] [blame] | 9 | onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/mwc-demo.json |
| 10 | sleep 2 |
| 11 | onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/hosts.json |
| 12 | sleep 2 |
Yi Tseng | caf91d7 | 2018-02-11 14:48:31 -0800 | [diff] [blame] | 13 | onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/tofino-leaf1-netcfg.json |
| 14 | sleep 5 |
| 15 | onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/tofino-leaf2-netcfg.json |
| 16 | sleep 5 |
| 17 | onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/mellanox-spine2.json |
| 18 | sleep 5 |
| 19 | onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/dev-pod/cavium-spine1.json |
Carmelo Cascone | e6bd494 | 2018-02-15 14:35:16 -0800 | [diff] [blame] | 20 | sleep 5 |
Yi Tseng | caf91d7 | 2018-02-11 14:48:31 -0800 | [diff] [blame] | 21 | bash fpcagent/scripts/addP4DPN.sh ${MWC_HEAD_IP} device:tofino:leaf2 |
Carmelo Cascone | ece972c | 2018-02-20 13:35:21 -0800 | [diff] [blame] | 22 | sleep 2 |
Carmelo Cascone | 963748d | 2018-03-16 17:56:48 -0700 | [diff] [blame] | 23 | sshpass -p rocks ssh onos@${MWC_HEAD_IP} -p8101 -o "UserKnownHostsFile=/dev/null" -o "StrictHostKeyChecking=no" "route-add ${UE_SUBNET} ${ENODEB_ADDR}" |