Uploaded image for project: 'OpenFlowPlugin'
  1. OpenFlowPlugin
  2. OPNFLWPLUG-52

Flow statistics in RESTCONF Operational space not deleted after deleting a flow on OF13 switch, Missing Flow statistics in RESTCONF Operational space after adding a flow on OF10 switch

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • General
    • None
    • Operating System: Windows
      Platform: PC

    Description

      We configure this:

      PUT http://127.0.0.1:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/139

      <flow xmlns="urn:opendaylight:flow:inventory">
      <priority>2</priority>
      <flow-name>Foo</flow-name>
      <match>
      <ethernet-match>
      <ethernet-type>
      <type>2048</type>
      </ethernet-type>
      </ethernet-match>
      <ipv4-destination>10.0.10.1/32</ipv4-destination>
      </match>
      <id>139</id>
      <table_id>2</table_id>
      <instructions>
      <instruction>
      <order>0</order>
      <apply-actions>
      <action>
      <order>0</order>
      <dec-nw-ttl/>
      </action>
      </apply-actions>
      </instruction>
      </instructions>
      </flow>

      In the operational we do not see the flow:

      GET http://127.0.0.1:8080/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/2

      {
      "flow-node-inventory:table": [
      {
      "opendaylight-flow-statistics:aggregate-flow-statistics":

      { "opendaylight-flow-statistics:byte-count": 0, "opendaylight-flow-statistics:packet-count": 0, "opendaylight-flow-statistics:flow-count": 0 }

      ,
      "flow-node-inventory:id": 2,
      "opendaylight-flow-table-statistics:flow-table-statistics":

      { "opendaylight-flow-table-statistics:active-flows": 0, "opendaylight-flow-table-statistics:packets-looked-up": 0, "opendaylight-flow-table-statistics:packets-matched": 0 }

      }
      ]
      }

      However in the switch, we see a flow with actions=drop:

      odluser@odl-system-test:~/integration\> sudo ovs-ofctl -O OpenFlow10 dump-flows s1
      NXST_FLOW reply (xid=0x4):
      cookie=0x0, duration=7.633s, table=0, n_packets=0, n_bytes=0, idle_timeout=300, hard_timeout=600, idle_age=7, priority=2,ip,nw_dst=10.0.10.1 actions=drop

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Avishnoi Anil Vishnoi
            madhusudhan.opendaylight@yahoo.com Madhusudhan Ananderi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: