Fix LSPs not being reported 49/5149/1
authorRobert Varga <rovarga@cisco.com>
Thu, 6 Feb 2014 15:30:02 +0000 (16:30 +0100)
committerRobert Varga <rovarga@cisco.com>
Thu, 6 Feb 2014 15:31:13 +0000 (16:31 +0100)
It turns out the end-of-sync check needs to look at the PLSPID, too,
otherwise we ignore all reports after the initial sync.

Change-Id: Ib3b33222a435a7dbb17ebdeac434c127b0bbb7db
Signed-off-by: Robert Varga <rovarga@cisco.com>
pcep/topology-provider/src/main/java/org/opendaylight/bgpcep/pcep/topology/provider/Stateful07TopologySessionListener.java

index 9efdd2b483ccbac693283bd6745a0f551e1289dc..61e83714c212c8c7c6dc61b91a2b94281f9e9c20 100644 (file)
@@ -105,7 +105,7 @@ final class Stateful07TopologySessionListener extends AbstractTopologySessionLis
                for (final Reports r : rpt.getReports()) {
                        final Lsp lsp = r.getLsp();
 
-                       if (!lsp.isSync()) {
+                       if (!lsp.isSync() && (lsp.getPlspId() == null || lsp.getPlspId().getValue() == 0)) {
                                stateSynchronizationAchieved(trans);
                                continue;
                        }