blob: b6cfd523e632d978c5d6aa24fbc10210bde07a47 [file] [log] [blame]
Thomas Vachuska0d5106a2018-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
10onos $host netcfg devices | sed -E 's/("grid[XY]")( : )([-0-9.]*)/\1\20.0/' > $aux
11onos-netcfg $host $aux devices
12
13onos $host netcfg hosts | sed -E 's/("grid[XY]")( : )([-0-9.]*)/\1\20.0/' > $aux
14onos-netcfg $host $aux hosts
15
16rm -f $aux