blob: 39a70ee92a6aa79b6014c9a901194f2a2bf472c5 [file] [log] [blame]
Pavlin Radoslavov0770d0f2014-10-15 15:58:31 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
3# List available ONOS cells configuration.
4# -----------------------------------------------------------------------------
5
6[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7. $ONOS_ROOT/tools/build/envDefaults
8
9# Lists available cells
10for cell in $(ls -1 $ONOS_ROOT/tools/test/cells); do
11 if [ ${cell} = "${ONOS_CELL}" ]; then
12 cell_id="${cell} *"
13 else
14 cell_id="${cell}"
15 fi
16 cell_descr="$(grep '^#' $ONOS_ROOT/tools/test/cells/$cell | head -n 1)"
17 printf "%-12s %s\n" "${cell_id}" "${cell_descr}"
18done