blob: 99eedc6f9d94f38c5e67393a0cb2cfd33a5ca217 [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/("locType")( : )(".*")/\1\2"none"/;s/("grid[XY]")( : )([-0-9.]*)/\1\20.0/' > $aux
onos-netcfg $host $aux devices
onos $host netcfg hosts | sed -E 's/("locType")( : )(".*")/\1\2"none"/;s/("grid[XY]")( : )([-0-9.]*)/\1\20.0/' > $aux
onos-netcfg $host $aux hosts
rm -f $aux