Pavlin Radoslavov | 0770d0f | 2014-10-15 15:58:31 -0700 | [diff] [blame] | 1 | #!/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 |
| 10 | for 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}" |
| 18 | done |