BUG-5285: Transaction chain broken 41/34341/2
authorClaudio D. Gasparini <cgaspari@cisco.com>
Tue, 9 Feb 2016 14:28:35 +0000 (15:28 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 10 Feb 2016 10:53:04 +0000 (10:53 +0000)
Transaction chain broken when peer is connected after
application peer has been configuted.
Issue is caused when it tries to update app-peer adj-rib-out,
which doesn't exist.

Change-Id: I6c765cc0fb03100bc6564466f93eb65fb72cfe48
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/LocRibWriter.java

index 4c520c1aedca558be0770cebfa7899cfe25dea15..c787bf21c86feb1c848a083fca77e8108e6bce25 100644 (file)
@@ -311,6 +311,9 @@ final class LocRibWriter implements AutoCloseable, DOMDataTreeChangeListener {
          */
         final ContainerNode attributes = entry == null ? null : entry.attributes();
         for (final PeerRole role : PeerRole.values()) {
+            if(PeerRole.Internal.equals(role)) {
+                continue;
+            }
             final PeerExportGroup peerGroup = this.peerPolicyTracker.getPeerGroup(role);
             if (peerGroup != null) {
                 final ContainerNode effectiveAttributes = peerGroup.effectiveAttributes(routePeerId, attributes);