Thomas Vachuska | 0d93386 | 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 | |
Thomas Vachuska | 345b0c7 | 2018-04-16 12:52:00 -0700 | [diff] [blame^] | 10 | onos $host netcfg devices | sed -E 's/("locType")( : )(".*")/\1\2"none"/;s/("grid[XY]")( : )([-0-9.]*)/\1\20.0/' > $aux |
Thomas Vachuska | 0d93386 | 2018-04-06 00:29:30 -0700 | [diff] [blame] | 11 | onos-netcfg $host $aux devices |
| 12 | |
Thomas Vachuska | 345b0c7 | 2018-04-16 12:52:00 -0700 | [diff] [blame^] | 13 | onos $host netcfg hosts | sed -E 's/("locType")( : )(".*")/\1\2"none"/;s/("grid[XY]")( : )([-0-9.]*)/\1\20.0/' > $aux |
Thomas Vachuska | 0d93386 | 2018-04-06 00:29:30 -0700 | [diff] [blame] | 14 | onos-netcfg $host $aux hosts |
| 15 | |
| 16 | rm -f $aux |