commit | 89e981ff592901f1abafb90034e50dd1f62b1184 | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Mon Jan 04 13:59:55 2016 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Mon Jan 04 22:17:27 2016 +0000 |
tree | 0bc8a7a7a1df0736aae68c2880276e04f3d33dbf | |
parent | 68498e2b3204c2b0fe93615dd7ac80dff57ed7c8 [diff] |
Update 'last seen' field on flow rules Change-Id: I7400bd181c41e605c03a60d05b08337e529e080a
diff --git a/core/store/dist/src/main/java/org/onosproject/store/flow/impl/NewDistributedFlowRuleStore.java b/core/store/dist/src/main/java/org/onosproject/store/flow/impl/NewDistributedFlowRuleStore.java index dc1bf86..cc2f730 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/flow/impl/NewDistributedFlowRuleStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/flow/impl/NewDistributedFlowRuleStore.java
@@ -545,6 +545,7 @@ stored.setBytes(rule.bytes()); stored.setLife(rule.life()); stored.setPackets(rule.packets()); + stored.setLastSeen(); if (stored.state() == FlowEntryState.PENDING_ADD) { stored.setState(FlowEntryState.ADDED); return new FlowRuleEvent(Type.RULE_ADDED, rule);