-
Bug
-
Resolution: Done
-
None
-
unspecified
-
None
-
Operating System: All
Platform: All
-
5052
-
Normal
1) Try FLOWTABLE STATS Query with Table:0 , it returns all the Table Values
curl -G -v -X GET -H "Accept: application/json" -H "Content-Type application/json" "http://10.16.148.236:8181/tsdr/metrics/query" --data-urlencode "tsdrkey=[NID=openflow:1][DC=][MN=FLOWTABLESTATS][RK=Table:0]" --data-urlencode "from=1453384405" --data-urlencode "until=1453446951"
{
"metricName": "PacketLookup",
"metricValue": 0,
"timeStamp": "Fri Jan 22 12:44:36 IST 2016",
"nodeID": "openflow:1",
"tsdrDataCategory": "FLOWTABLESTATS",
"recordKeys": [
,
{ "keyName": "Table", "keyValue": "150" } ]
},
{
"metricName": "PacketLookup",
"metricValue": 0,
"timeStamp": "Fri Jan 22 12:44:51 IST 2016",
"nodeID": "openflow:1",
"tsdrDataCategory": "FLOWTABLESTATS",
"recordKeys": [
,
{ "keyName": "Table", "keyValue": "150" } ]
}
2) Node ID matches the prefix
curl -G -v -X GET -H "Accept: application/json" -H "Content-Type application/json" "http://10.16.148.236:8181/tsdr/metrics/query" --data-urlencode "tsdrkey=[NID=openflow:1][DC=][MN=FLOWTABLESTATS][RK=Table:0]" --data-urlencode "from=0" --data-urlencode "until=now"
Here NID is openflow:1 and it matches all nodes with 1*
<snippet output>
{
"metricName": "ActiveFlows",
"metricValue": 0,
"timeStamp": "Fri Jan 22 12:56:37 IST 2016",
"nodeID": "openflow:10",
"tsdrDataCategory": "FLOWTABLESTATS",
"recordKeys": [
,
{ "keyName": "Table", "keyValue": "71" } ]
},
{
"metricName": "ActiveFlows",
"metricValue": 0,
"timeStamp": "Fri Jan 22 12:56:52 IST 2016",
"nodeID": "openflow:10",
"tsdrDataCategory": "FLOWTABLESTATS",
"recordKeys": [
,
{ "keyName": "Table", "keyValue": "71" } ]
}