Carmelo Cascone | 5498422 | 2018-02-02 20:28:50 -0800 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | MWC_HEAD_IP="10.128.13.3" |
Test User | 465ba1c | 2018-02-25 05:23:19 -0800 | [diff] [blame] | 4 | ENODEB_ADDR="119.0.0.10" |
| 5 | UE_SUBNET="17.255.0.0/16" |
Carmelo Cascone | 5498422 | 2018-02-02 20:28:50 -0800 | [diff] [blame] | 6 | |
| 7 | set -ex |
| 8 | |
Test User | 465ba1c | 2018-02-25 05:23:19 -0800 | [diff] [blame] | 9 | onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/mwc-pod/mwc-demo.json |
| 10 | sleep 2 |
| 11 | onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/mwc-pod/hosts.json |
| 12 | sleep 2 |
Carmelo Cascone | 5498422 | 2018-02-02 20:28:50 -0800 | [diff] [blame] | 13 | onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/mwc-pod/tofino-leaf1-netcfg.json |
| 14 | sleep 5 |
| 15 | onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/mwc-pod/tofino-leaf2-netcfg.json |
| 16 | sleep 5 |
Test User | 465ba1c | 2018-02-25 05:23:19 -0800 | [diff] [blame] | 17 | #onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/mwc-pod/mellanox-spine2.json |
| 18 | #sleep 5 |
Carmelo Cascone | 5498422 | 2018-02-02 20:28:50 -0800 | [diff] [blame] | 19 | onos-netcfg ${MWC_HEAD_IP} ${ONOS_ROOT}/p4-pod-configs/mwc-pod/cavium-spine1.json |
Test User | 465ba1c | 2018-02-25 05:23:19 -0800 | [diff] [blame] | 20 | sleep 5 |
Carmelo Cascone | 5498422 | 2018-02-02 20:28:50 -0800 | [diff] [blame] | 21 | bash fpcagent/scripts/addP4DPN.sh ${MWC_HEAD_IP} device:tofino:leaf2 |
Test User | 465ba1c | 2018-02-25 05:23:19 -0800 | [diff] [blame] | 22 | sleep 2 |
| 23 | sshpass -p rocks -t onos@${MWC_HEAD_IP} "route-add ${UE_SUBNET} ${ENODEB_ADDR}" |
| 24 | |