[OPNFLWPLUG-55] Flows created by NSF FRM do not clear after issuing DELETE Created: 26/Jan/14  Updated: 27/Sep/21  Resolved: 10/Feb/14

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Luis Gomez Assignee: Sachi Gupta
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


External issue ID: 373

 Description   

This bug is also for: https://git.opendaylight.org/gerrit/#/c/4737/

When I create a flow with NSF FRM:

PUT http://127.0.0.1:8080/controller/nb/v2/flowprogrammer/default/node/OF/00:00:00:00:00:00:00:02/staticFlow/flow1

<flowConfig>
<installInHw>true</installInHw>
<name>flow1</name>
<node>
<id>00:00:00:00:00:00:00:02</id>
<type>OF</type>
</node>
<priority>1</priority>
<etherType>0x800</etherType>
<nwDst>10.0.0.1/32</nwDst>
<actions>OUTPUT=1</actions>
</flowConfig>

And then I delete it with:

DELETE http://127.0.0.1:8080/controller/nb/v2/flowprogrammer/default/node/OF/00:00:00:00:00:00:00:02/staticFlow/flow1

Flow is still in the switch:

odluser@odl-system-test:~\> sudo ovs-ofctl -O OpenFlow13 dump-flows s2
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=204.11s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=1,ip,nw_dst=10.0.0.1 actions=output:1



 Comments   
Comment by Sachi Gupta [ 27/Jan/14 ]

Hi Luis,

Please find the comments inline:

For OF13 mininet:

1. Start the controller using -OF13 option
2. Use the command for mininet
sudo mn --controller=remote,ip=127.0.0.1 --topo tree,3 --switch ovsk,protocols=OpenFlow13

3. PUT http://127.0.0.1:8080/controller/nb/v2/flowprogrammer/default/node/OF/00:00:00:00:00:00:00:01/staticFlow/flow1
Include the below body:
<flowConfig>
<installInHw>true</installInHw>
<name>flow1</name>
<node>
<id>00:00:00:00:00:00:00:01</id>
<type>OF</type>
</node>
<priority>1</priority>
<etherType>0x800</etherType>
<nwDst>10.0.0.1/32</nwDst>
<actions>OUTPUT=1</actions>
</flowConfig>

4. The flow gets installed on the switch
5. DELETE http://127.0.0.1:8080/controller/nb/v2/flowprogrammer/default/node/OF/00:00:00:00:00:00:00:01/staticFlow/flow1
6. The flow gets deleted from the switch

Please reverify the bug and confirm for closure.

Comment by Sachi Gupta [ 10/Feb/14 ]

This bug was created for a patch prepared to change Switch types and Ids in OF13 plugin.

Since this patch never saw the light so we are closing this bug.

Thanks

Generated at Wed Feb 07 20:31:27 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.