blob: 99eedc6f9d94f38c5e67393a0cb2cfd33a5ca217 [file] [log] [blame]
Thomas Vachuska0d933862018-04-06 00:29:30 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Wipes out UI annotations from all devices and hosts.
4# -----------------------------------------------------------------------------
5
6aux=/tmp/wua.$$.json
7
8host=${1:-$OCI}
9
Thomas Vachuska345b0c72018-04-16 12:52:00 -070010onos $host netcfg devices | sed -E 's/("locType")( : )(".*")/\1\2"none"/;s/("grid[XY]")( : )([-0-9.]*)/\1\20.0/' > $aux
Thomas Vachuska0d933862018-04-06 00:29:30 -070011onos-netcfg $host $aux devices
12
Thomas Vachuska345b0c72018-04-16 12:52:00 -070013onos $host netcfg hosts | sed -E 's/("locType")( : )(".*")/\1\2"none"/;s/("grid[XY]")( : )([-0-9.]*)/\1\20.0/' > $aux
Thomas Vachuska0d933862018-04-06 00:29:30 -070014onos-netcfg $host $aux hosts
15
16rm -f $aux