Bug 3173 - group flows rendering fix.
[groupbasedpolicy.git] / renderers / ofoverlay / src / main / java / org / opendaylight / groupbasedpolicy / renderer / ofoverlay / flow / GroupTable.java
index 3c7ab98a790127d9da841af440d2501256d9180f..bdeacb86333c27d2e48eb523265811af6f74b82f 100644 (file)
@@ -79,7 +79,7 @@ public class GroupTable extends OfTable {
         ReadOnlyTransaction t = ctx.getDataBroker().newReadOnlyTransaction();
         InstanceIdentifier<Node> niid = createNodePath(nodeId);
         Optional<Node> r =
-                t.read(LogicalDatastoreType.CONFIGURATION, niid).get();
+                t.read(LogicalDatastoreType.OPERATIONAL, niid).get();
         if (!r.isPresent())
             return;
         FlowCapableNode fcn = r.get().getAugmentation(FlowCapableNode.class);
@@ -158,7 +158,7 @@ public class GroupTable extends OfTable {
                                     .build());
                     wrote = true;
                     wt.merge(LogicalDatastoreType.CONFIGURATION,
-                            giid, gb.build());
+                            giid, gb.build(), true);
                 }
             }
         }