Thomas Vachuska | 0d5106a | 2018-04-06 00:29:30 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # ----------------------------------------------------------------------------- |
| 3 | # Wipes out UI annotations from all devices and hosts. |
| 4 | # ----------------------------------------------------------------------------- |
| 5 | |
| 6 | aux=/tmp/wua.$$.json |
| 7 | |
| 8 | host=${1:-$OCI} |
| 9 | |
| 10 | onos $host netcfg devices | sed -E 's/("grid[XY]")( : )([-0-9.]*)/\1\20.0/' > $aux |
| 11 | onos-netcfg $host $aux devices |
| 12 | |
| 13 | onos $host netcfg hosts | sed -E 's/("grid[XY]")( : )([-0-9.]*)/\1\20.0/' > $aux |
| 14 | onos-netcfg $host $aux hosts |
| 15 | |
| 16 | rm -f $aux |