From 0858b35e88cfd7b60278a9d0f837f2270728ff0c Mon Sep 17 00:00:00 2001 From: Yuta HIGUCHI Date: Fri, 17 Oct 2014 11:56:06 -0700 Subject: [PATCH] bugfix Change-Id: I24122eeda1c66ebe8598beaec0ff23bd33b262a0 --- .../store/flow/impl/DistributedFlowRuleStore.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/store/dist/src/main/java/org/onlab/onos/store/flow/impl/DistributedFlowRuleStore.java b/core/store/dist/src/main/java/org/onlab/onos/store/flow/impl/DistributedFlowRuleStore.java index 5062416d48..1e7f73afa1 100644 --- a/core/store/dist/src/main/java/org/onlab/onos/store/flow/impl/DistributedFlowRuleStore.java +++ b/core/store/dist/src/main/java/org/onlab/onos/store/flow/impl/DistributedFlowRuleStore.java @@ -127,7 +127,7 @@ public class DistributedFlowRuleStore @Override public void storeFlowRule(FlowRule rule) { ReplicaInfo replicaInfo = replicaInfoManager.getReplicaInfoFor(rule.deviceId()); - if (replicaInfo.master().get().equals(clusterService.getLocalNode())) { + if (replicaInfo.master().get().equals(clusterService.getLocalNode().id())) { storeFlowEntryInternal(rule); return; } @@ -146,7 +146,7 @@ public class DistributedFlowRuleStore } } - public synchronized void storeFlowEntryInternal(FlowRule flowRule) { + private synchronized void storeFlowEntryInternal(FlowRule flowRule) { FlowEntry flowEntry = new DefaultFlowEntry(flowRule); DeviceId deviceId = flowRule.deviceId(); // write to local copy. @@ -161,7 +161,7 @@ public class DistributedFlowRuleStore @Override public synchronized void deleteFlowRule(FlowRule rule) { ReplicaInfo replicaInfo = replicaInfoManager.getReplicaInfoFor(rule.deviceId()); - if (replicaInfo.master().get().equals(clusterService.getLocalNode())) { + if (replicaInfo.master().get().equals(clusterService.getLocalNode().id())) { deleteFlowRuleInternal(rule); return; } @@ -180,7 +180,7 @@ public class DistributedFlowRuleStore } } - public synchronized void deleteFlowRuleInternal(FlowRule flowRule) { + private synchronized void deleteFlowRuleInternal(FlowRule flowRule) { FlowEntry entry = getFlowEntry(flowRule); if (entry == null) { return; @@ -192,7 +192,7 @@ public class DistributedFlowRuleStore @Override public FlowRuleEvent addOrUpdateFlowRule(FlowEntry rule) { ReplicaInfo replicaInfo = replicaInfoManager.getReplicaInfoFor(rule.deviceId()); - if (replicaInfo.master().get().equals(clusterService.getLocalNode())) { + if (replicaInfo.master().get().equals(clusterService.getLocalNode().id())) { return addOrUpdateFlowRuleInternal(rule); } @@ -235,7 +235,7 @@ public class DistributedFlowRuleStore @Override public FlowRuleEvent removeFlowRule(FlowEntry rule) { ReplicaInfo replicaInfo = replicaInfoManager.getReplicaInfoFor(rule.deviceId()); - if (replicaInfo.master().get().equals(clusterService.getLocalNode())) { + if (replicaInfo.master().get().equals(clusterService.getLocalNode().id())) { // bypass and handle it locally return removeFlowRuleInternal(rule); }