proxy arp application
Change-Id: Ic2136537a4104e75b64ae4731e1bae4f3a4c1661
diff --git a/core/net/src/main/java/org/onlab/onos/net/flow/impl/FlowRuleManager.java b/core/net/src/main/java/org/onlab/onos/net/flow/impl/FlowRuleManager.java
index ae6a81d..182e210 100644
--- a/core/net/src/main/java/org/onlab/onos/net/flow/impl/FlowRuleManager.java
+++ b/core/net/src/main/java/org/onlab/onos/net/flow/impl/FlowRuleManager.java
@@ -158,7 +158,7 @@
checkValidity();
FlowRule stored = store.getFlowRule(flowRule);
if (stored == null) {
- log.debug("Rule already evicted from store: {}", flowRule);
+ log.info("Rule already evicted from store: {}", flowRule);
return;
}
Device device = deviceService.getDevice(flowRule.deviceId());
@@ -247,8 +247,12 @@
idleTime.put(swRule, currentTime);
return true;
}
- return (currentTime - idleTime.get(swRule)) <= timeout;
+ if ((currentTime - idleTime.get(swRule)) <= timeout) {
+ idleTime.put(swRule, currentTime);
+ return true;
+ }
+ return false;
}
// Posts the specified event to the local event dispatcher.