Search in sources :

Example 6 with RouteKey

use of org.opendaylight.protocol.bgp.mode.impl.add.RouteKey in project bgpcep by opendaylight.

the class ComplexRouteEntry method removeRoute.

@Override
public boolean removeRoute(final UnsignedInteger routerId, final long remotePathId) {
    final RouteKey key = new RouteKey(routerId, remotePathId);
    final OffsetMap map = getOffsets();
    final int offset = map.offsetOf(key);
    this.values = map.removeValue(this.values, offset);
    return removeRoute(key, offset);
}
Also used : RouteKey(org.opendaylight.protocol.bgp.mode.impl.add.RouteKey) OffsetMap(org.opendaylight.protocol.bgp.mode.impl.add.OffsetMap)

Aggregations

RouteKey (org.opendaylight.protocol.bgp.mode.impl.add.RouteKey)6 OffsetMap (org.opendaylight.protocol.bgp.mode.impl.add.OffsetMap)4 ArrayList (java.util.ArrayList)2 AddPathBestPath (org.opendaylight.protocol.bgp.mode.impl.add.AddPathBestPath)2 BestPathState (org.opendaylight.protocol.bgp.mode.api.BestPathState)1 BestPathStateImpl (org.opendaylight.protocol.bgp.mode.impl.BestPathStateImpl)1 Attributes (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev171207.path.attributes.Attributes)1