commit | ce93a032eca9d9b48ab3a987c43b56b7e0db5caf | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@onlab.us> | Fri Dec 13 11:03:02 2013 -0800 |
committer | Pavlin Radoslavov <pavlin@onlab.us> | Fri Dec 13 11:03:02 2013 -0800 |
tree | 42093bce7d1847af39570ace8cf7bf5e91287613 | |
parent | ac0fabce6b9955dd489f1e60c3f20a0d19e3fcf6 [diff] |
Fix a bug: Set the idleTimeout and hardTimeout to the FlowEntry when extracting it from the database.
diff --git a/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowDatabaseOperation.java b/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowDatabaseOperation.java index da407ab..2d5fe5c 100644 --- a/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowDatabaseOperation.java +++ b/src/main/java/net/onrc/onos/ofcontroller/flowmanager/FlowDatabaseOperation.java
@@ -642,6 +642,8 @@ FlowEntry flowEntry = new FlowEntry(); flowEntry.setFlowEntryId(new FlowEntryId(flowEntryIdStr)); flowEntry.setDpid(new Dpid(switchDpidStr)); + flowEntry.setIdleTimeout(idleTimeout); + flowEntry.setHardTimeout(hardTimeout); // // Extract the match conditions