Enabled replace action in PCEP Topology Provider 03/6703/1
authorTony Tkacik <ttkacik@cisco.com>
Mon, 5 May 2014 09:04:25 +0000 (11:04 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Mon, 5 May 2014 09:16:27 +0000 (11:16 +0200)
With legacy compatibility APIs default action of datastore
is merge, enabled replace operation, in order to
assume correct behaviour.

Change-Id: I9302a535e1ea4b4e001e45dae28015dcf45b3362
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
pcep/topology-provider/src/main/java/org/opendaylight/bgpcep/pcep/topology/provider/AbstractTopologySessionListener.java

index ab3b150d52f15481fe147485a1951c0706a985a5..b2faa1345f9bbe500237ca219fb37f8259fb3ec1 100644 (file)
@@ -243,7 +243,7 @@ public abstract class AbstractTopologySessionListener<SRPID, PLSPID> implements
                        this.topologyAugmentBuilder.setPathComputationClient(this.pccBuilder.build());
                        final Node1 ta = this.topologyAugmentBuilder.build();
 
-                       //trans.removeOperationalData(this.topologyAugment);
+                       trans.removeOperationalData(this.topologyAugment);
                        trans.putOperationalData(this.topologyAugment, ta);
                        LOG.debug("Peer data {} set to {}", this.topologyAugment, ta);
                        dirty = false;