Uploaded image for project: 'tsdr'
  1. tsdr
  2. TSDR-15

TSDR Query output does not match RK value in some specific cases

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • None
    • unspecified
    • General
    • 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": "Node", "keyValue": "openflow:1" }

      ,

      { "keyName": "Table", "keyValue": "150" }

      ]
      },
      {
      "metricName": "PacketLookup",
      "metricValue": 0,
      "timeStamp": "Fri Jan 22 12:44:51 IST 2016",
      "nodeID": "openflow:1",
      "tsdrDataCategory": "FLOWTABLESTATS",
      "recordKeys": [

      { "keyName": "Node", "keyValue": "openflow:1" }

      ,

      { "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": "Node", "keyValue": "openflow:10" }

      ,

      { "keyName": "Table", "keyValue": "71" }

      ]
      },
      {
      "metricName": "ActiveFlows",
      "metricValue": 0,
      "timeStamp": "Fri Jan 22 12:56:52 IST 2016",
      "nodeID": "openflow:10",
      "tsdrDataCategory": "FLOWTABLESTATS",
      "recordKeys": [

      { "keyName": "Node", "keyValue": "openflow:10" }

      ,

      { "keyName": "Table", "keyValue": "71" }

      ]
      }

            saichler@cisco.com Sharon Aicler
            prem.annauniv@gmail.com premnath sundarababu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: