blob: b84b1a125473ce763e368f49fa2483bbc3ae00b0 [file] [log] [blame]
Ray Milkey92370672017-02-21 10:30:43 -08001#!/bin/bash
2
3# -----------------------------------------------------------------------------
4# Invokes the ONOS CLI and looks for a 'maps' entry with the given name
5# -----------------------------------------------------------------------------
6
7NODE=$1
8MAP=$2
9ID=$3
10
11map_text=`( onos ${NODE} onos:maps ) | grep ${MAP}`
12
13if [ $? -ne 0 ]; then
14 exit 1
15fi
16
17map_size=`echo ${map_text} | sed s#^.*size=##`
18echo "@stc ${ID}Size=${map_size}"