blob: b6cfd523e632d978c5d6aa24fbc10210bde07a47 [file] [log] [blame]
#!/bin/bash
# -----------------------------------------------------------------------------
# Wipes out UI annotations from all devices and hosts.
# -----------------------------------------------------------------------------
aux=/tmp/wua.$$.json
host=${1:-$OCI}
onos $host netcfg devices | sed -E 's/("grid[XY]")( : )([-0-9.]*)/\1\20.0/' > $aux
onos-netcfg $host $aux devices
onos $host netcfg hosts | sed -E 's/("grid[XY]")( : )([-0-9.]*)/\1\20.0/' > $aux
onos-netcfg $host $aux hosts
rm -f $aux