X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=applications%2Fforwardingrules-manager%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fopenflowplugin%2Fapplications%2Ffrm%2Fimpl%2FFlowNodeReconciliationImpl.java;h=7f62bdd138ee203916133c117257905fb371326c;hb=c4208e6859bf2e06fa269233fc396fd54d0aa1be;hp=417e56e18487bd4cf72b437c4ff3d4f6519a7e4d;hpb=b33b612f863b9d305c29454cc93757cfc6fc3323;p=openflowplugin.git diff --git a/applications/forwardingrules-manager/src/main/java/org/opendaylight/openflowplugin/applications/frm/impl/FlowNodeReconciliationImpl.java b/applications/forwardingrules-manager/src/main/java/org/opendaylight/openflowplugin/applications/frm/impl/FlowNodeReconciliationImpl.java index 417e56e184..7f62bdd138 100644 --- a/applications/forwardingrules-manager/src/main/java/org/opendaylight/openflowplugin/applications/frm/impl/FlowNodeReconciliationImpl.java +++ b/applications/forwardingrules-manager/src/main/java/org/opendaylight/openflowplugin/applications/frm/impl/FlowNodeReconciliationImpl.java @@ -243,7 +243,7 @@ public class FlowNodeReconciliationImpl implements FlowNodeReconciliation { if (rpcResult.isSuccessful()) { for (Meter meter : meters) { final KeyedInstanceIdentifier meterIdent = nodeIdentity - .child(Meter.class, meter.getKey()); + .child(Meter.class, meter.key()); provider.getMeterCommiter().add(meterIdent, meter, nodeIdentity); } } @@ -329,7 +329,7 @@ public class FlowNodeReconciliationImpl implements FlowNodeReconciliation { ? flowNode.get().getTableFeatures() : Collections.emptyList(); for (TableFeatures tableFeaturesItem : tableList) { - TableFeaturesKey tableKey = tableFeaturesItem.getKey(); + TableFeaturesKey tableKey = tableFeaturesItem.key(); KeyedInstanceIdentifier tableFeaturesII = nodeIdentity .child(TableFeatures.class, new TableFeaturesKey(tableKey.getTableId())); provider.getTableFeaturesCommiter().update(tableFeaturesII, tableFeaturesItem, null, nodeIdentity); @@ -441,7 +441,7 @@ public class FlowNodeReconciliationImpl implements FlowNodeReconciliation { : Collections.emptyList(); for (Meter meter : meters) { final KeyedInstanceIdentifier meterIdent = nodeIdentity.child(Meter.class, - meter.getKey()); + meter.key()); provider.getMeterCommiter().add(meterIdent, meter, nodeIdentity); } @@ -454,11 +454,11 @@ public class FlowNodeReconciliationImpl implements FlowNodeReconciliation { : Collections.emptyList(); for (Table table : tables) { final KeyedInstanceIdentifier tableIdent = nodeIdentity.child(Table.class, - table.getKey()); + table.key()); List flows = table.getFlow() != null ? table.getFlow() : Collections.emptyList(); for (Flow flow : flows) { final KeyedInstanceIdentifier flowIdent = tableIdent.child(Flow.class, - flow.getKey()); + flow.key()); provider.getFlowCommiter().add(flowIdent, flow, nodeIdentity); } } @@ -478,7 +478,7 @@ public class FlowNodeReconciliationImpl implements FlowNodeReconciliation { * The group to add. */ private void addGroup(Map> map, Group group) { - KeyedInstanceIdentifier groupIdent = nodeIdentity.child(Group.class, group.getKey()); + KeyedInstanceIdentifier groupIdent = nodeIdentity.child(Group.class, group.key()); final Long groupId = group.getGroupId().getValue(); ListenableFuture future = JdkFutureAdapters .listenInPoolThread(provider.getGroupCommiter().add(groupIdent, group, nodeIdentity)); @@ -566,7 +566,7 @@ public class FlowNodeReconciliationImpl implements FlowNodeReconciliation { : Collections.
emptyList(); for (Table table : tables) { final KeyedInstanceIdentifier tableIdent = nodeIdent.child(Table.class, - table.getKey()); + table.key()); List staleFlows = table.getStaleFlow() != null ? table.getStaleFlow() : Collections.emptyList(); for (StaleFlow staleFlow : staleFlows) { @@ -575,7 +575,7 @@ public class FlowNodeReconciliationImpl implements FlowNodeReconciliation { Flow toBeDeletedFlow = flowBuilder.setId(staleFlow.getId()).build(); final KeyedInstanceIdentifier flowIdent = tableIdent.child(Flow.class, - toBeDeletedFlow.getKey()); + toBeDeletedFlow.key()); this.provider.getFlowCommiter().remove(flowIdent, toBeDeletedFlow, nodeIdent); @@ -599,7 +599,7 @@ public class FlowNodeReconciliationImpl implements FlowNodeReconciliation { Group toBeDeletedGroup = groupBuilder.setGroupId(staleGroup.getGroupId()).build(); final KeyedInstanceIdentifier groupIdent = nodeIdent.child(Group.class, - toBeDeletedGroup.getKey()); + toBeDeletedGroup.key()); this.provider.getGroupCommiter().remove(groupIdent, toBeDeletedGroup, nodeIdent); @@ -618,7 +618,7 @@ public class FlowNodeReconciliationImpl implements FlowNodeReconciliation { Meter toBeDeletedMeter = meterBuilder.setMeterId(staleMeter.getMeterId()).build(); final KeyedInstanceIdentifier meterIdent = nodeIdent.child(Meter.class, - toBeDeletedMeter.getKey()); + toBeDeletedMeter.key()); this.provider.getMeterCommiter().remove(meterIdent, toBeDeletedMeter, nodeIdent);