import org.opendaylight.protocol.bgp.mode.api.BestPathState;
import org.opendaylight.protocol.bgp.mode.impl.BestPathStateImpl;
import org.opendaylight.protocol.bgp.mode.spi.AbstractBestPathSelector;
+import org.opendaylight.protocol.bgp.rib.spi.RouterIds;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev171207.path.attributes.Attributes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
*/
final BestPathState state = new BestPathStateImpl(attrs);
if (this.bestOriginatorId == null || !isExistingPathBetter(state)) {
- LOG.trace("Selecting path from router {}", key);
+ LOG.trace("Selecting path from router {}", RouterIds.createPeerId(key.getRouteId()).getValue());
this.bestOriginatorId = originatorId;
this.bestState = state;
this.bestRouteKey = key;
import org.opendaylight.protocol.bgp.mode.api.BestPathState;
import org.opendaylight.protocol.bgp.mode.impl.BestPathStateImpl;
import org.opendaylight.protocol.bgp.mode.spi.AbstractBestPathSelector;
+import org.opendaylight.protocol.bgp.rib.spi.RouterIds;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev171207.path.attributes.Attributes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
*/
final BestPathState state = new BestPathStateImpl(attrs);
if (this.bestOriginatorId == null || !isExistingPathBetter(state)) {
- LOG.trace("Selecting path from router {}", routerId);
+ LOG.trace("Selecting path from router {}", RouterIds.createPeerId(routerId).getValue());
this.bestOriginatorId = originatorId;
this.bestRouterId = routerId;
this.bestState = state;
*/
protected UnsignedInteger replaceOriginator(final UnsignedInteger routerId, final OriginatorId originatorId) {
if (originatorId != null) {
- RouterIds.routerIdForAddress(originatorId.getOriginator().getValue());
+ return RouterIds.routerIdForAddress(originatorId.getOriginator().getValue());
}
return routerId;