[OPNFLWPLUG-834] FlowRemoved doesn't have Removed Reason Information Created: 28/Dec/16  Updated: 27/Sep/21  Resolved: 21/Mar/17

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

Type: Bug
Reporter: Chetan Arakere Gowdru Assignee: Chetan Arakere Gowdru
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: 7453

 Description   

We observed with Lithium Plugin, whenever a flow is removed, SalFlowListener.onFlowRemoved() is called instead of onSwitchFlowRemoved().

With Helium Plugin, onSwitchFlowRemoved() was getting triggered and it's used to fold the Removal Reason. Using this information, we used to differentiate whether flow removal happened due to IDLE_TIMEOUT or due to OVS down.

With FlowRemoved, we didn't find any such information which will help us to identify the Reason for flow removal.
-----------------------------------------------------------------------------
RemovedReasonFlags removedReasonFlag = switchFlowRemoved.getRemovedReason();
removedReasonFlag.isIDLETIMEOUT()
-----------------------------------------------------------------------------
@Override
public void onSwitchFlowRemoved(SwitchFlowRemoved flowRemoved) {

}

@Override
public void onFlowRemoved(FlowRemoved flowRemoved) {
}
------------------------------------------------------------------------------



 Comments   
Comment by Tomas Slusny [ 21/Mar/17 ]

On latest master, FlowRemoved contains property reason, so this one can be closed, right?

Comment by Chetan Arakere Gowdru [ 21/Mar/17 ]

Yes. This is resolved.

Changes available with below patch

master - https://git.opendaylight.org/gerrit/#/c/50335/
stable/boron - https://git.opendaylight.org/gerrit/#/c/51280/

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