RouterId acts as a loading cache, hence we can use a squashed instance
of PeerId to lookup into peer tracker.
Change-Id: Ic74d2fa2f79c6dd88eb0d0168687bf8f9435966c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
01516001c5300e9463c63462f636b4f66436cee4)
*/
if (!this.routeEntries.isEmpty() && table.getDataBefore() == null) {
final org.opendaylight.protocol.bgp.rib.spi.Peer toPeer
- = this.peerTracker.getPeer(peerKIid.getKey().getPeerId());
+ = this.peerTracker.getPeer(peerUuid.getPeerId());
if (toPeer != null && toPeer.supportsTable(this.entryDep.getLocalTablesKey())) {
LOG.debug("Peer {} table has been created, inserting existent routes", toPeer.getPeerId());
final List<ActualBestPathRoutes<C, S, R, I>> routesToStore = new ArrayList<>();