blob: 38fb9a3f5a040f21139c569dfe7b07f0010a93cc [file] [log] [blame]
Thomas Vachuska8189a742015-05-29 10:02:52 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Checks whether all ONOS components are either ACTIVE or DISABLED.
4# -----------------------------------------------------------------------------
5
6aux=/tmp/stc-$$.log
7trap "rm -f $aux 2>/dev/null" EXIT
8
9onos ${1:-$OCI} scr:list > $aux
10cat $aux
11grep -q UNSATISFIED $aux && exit 1 || exit 0