[OPNFLWPLUG-16] Deleting a flow does not delete it from the switch Created: 09/Jan/14  Updated: 27/Sep/21  Resolved: 15/Jan/14

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

Type: Bug
Reporter: Moiz Raja Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 276
Priority: High

 Description   

0. Add a flow

1. Using the FlowProgrammer NB API delete the flow

DELETE http://localhost:8080/controller/nb/v2/flowprogrammer/default/node/MD_SAL/openflow:1/staticFlow/0

2. Check RESTCONF

http://localhost:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/0

Flow is not present

3. Check the switch

sudo ovs-ofctl -O OpenFlow13 dump-flows s1
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=879.098s, table=0, n_packets=0, n_bytes=0, send_flow_rem priority=5109,ip,in_port=1,nw_src=9.9.1.2 actions=output:1

Flow is still there - should be gone



 Comments   
Comment by Jan Medved [ 09/Jan/14 ]

This seems to be related to CONTROLLER-108

Comment by Sachi Gupta [ 10/Jan/14 ]

Added a flow entry through controller dashboard.
The flows is added to dashboard as well as on to the switches.
Deleted the flow through dashboard which are exposed as REST API.
The flow gets deleted from dashboard as well as from switch in mininet.

Can you please provide some details on how to replicate this bug.

Comment by Moiz Raja [ 14/Jan/14 ]

Tried this again today but was not able to reproduce the problem. Looks like flows are being removed correctly.

Comment by Sachi Gupta [ 15/Jan/14 ]

Hi Moiz,

As this bug is not getting replicated and seems to be solved, could you please confirm on the same to close this bug.

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