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

No of active flows are not getting updated for the respective table in http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1

    XMLWordPrintable

Details

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

    Description

      Steps that I tried in my setup.

      Start the controller with -of13 option.
      Start the mininet i.e., sudo mn --controller=remote,ip=127.0.0.1 --topo tree,2 --switch ovsk,protocols=OpenFlow13

      1. PUT http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/248/flow/1

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <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.2/24</ipv4-destination>
      </match>
      <id>1</id>
      <table_id>248</table_id>
      <instructions>
      <instruction>
      <order>0</order>
      <apply-actions>
      <action>
      <order>0</order>
      <dec-nw-ttl/>
      </action>
      </apply-actions>
      </instruction>
      </instructions>
      </flow>

      2. GET http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1

      Check the respective table (Here in this example, find "flow-node-inventory:id": 248,and see the field active flows gets updated i.e, in this case, it should be
      "opendaylight-flow-table-statistics:active-flows": 1, whereas in the response it is still showing "opendaylight-flow-table-statistics:active-flows": 0

      Repeat Step 2 and see if that works for now. If not proceed to the next step.

      3. GET http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/248/

      see the field active flows gets updated i.e, in this case, it should be
      "opendaylight-flow-table-statistics:active-flows": 1. If not, resend this request again and check the same. (Its actually works!)

      4. Again, repeat the step 2 and you will see it is updated as see the field active flows gets updated i.e, in this case, it should be
      "opendaylight-flow-table-statistics:active-flows": 1,

      Issue: Whenever you create a table, the active flows doesn't updated at

      GET http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1

      until you send the below request

      GET http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/248/

      Issue: Whenever you create a table, the active flows doesn't updated in
      GET http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1

      until you send the below request
      GET http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/248/

      -------------------------------------------------------------------------------

      Issue for OF10 is, the active flows doesn't gets updated even if you try to follow the above steps!

      Start the mininet i.e., sudo mn --controller=remote,ip=127.0.0.1 --topo tree,2

      1. PUT http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/248/flow/1

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>
      <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.2/24</ipv4-destination>
      </match>
      <id>1</id>
      <table_id>250</table_id>
      <instructions>
      <instruction>
      <order>0</order>
      <apply-actions>
      <action>
      <order>0</order>
      <dec-nw-ttl/>
      </action>
      </apply-actions>
      </instruction>
      </instructions>
      </flow>

      2. GET http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1

      Check the respective table (Here in this example, find "flow-node-inventory:id": 248,and see the field active flows gets updated i.e, in this case, it should be
      "opendaylight-flow-table-statistics:active-flows": 1, whereas in the response it is still showing "opendaylight-flow-table-statistics:active-flows": 0

      Repeat Step 2 and see if that works for now. If not proceed to the next step.

      3. GET http://localhost:8080/restconf/datastore/opendaylight-inventory:nodes/node/openflow:1/table/250/

      see the field active flows gets updated i.e, in this case, it should be
      "opendaylight-flow-table-statistics:active-flows": 1. If not, resend this request again and check the same. (Its actually works!)

      4. Again, repeat the step 2 and here, you will NOT see it updated. See the field active flows gets updated or not i.e, in this case, it should be
      "opendaylight-flow-table-statistics:active-flows": 1,

      Let me know if you need any more information about this!

      Thanks,
      Madhusudhan

      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: