import java.util.HashMap;
import java.util.List;
-
import org.opendaylight.graph.ConnectedEdge;
import org.opendaylight.graph.ConnectedGraph;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.VertexKey;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-
/**
* This Class implements a simple Constrained Shortest Path First path computation algorithm that take into account
* Bandwidth and TE Metric as constraints.
* @author Olivier Dugeon
* @author Philippe Niger
* @author Philippe Cadro
- *
*/
public class ConstrainedShortestPathFirst extends AbstractPathComputation {
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
-
import org.opendaylight.graph.ConnectedEdge;
import org.opendaylight.graph.ConnectedGraph;
import org.opendaylight.graph.ConnectedVertex;
* @author Philippe Niger
* @author Olivier Dugeon
* @author Philippe Cadro
- *
*/
-
public class Samcra extends AbstractPathComputation {
-
/*
* This class stores the set of paths which has been computed for a given Connected Vertex:
* - pathCount number of active paths
* Each path is represented by a "CspfPath" class to encompass path predecessor, path status
* and path length information
*/
-
private static class SamcraPath {
private ConnectedVertex cvertex;
import java.util.HashMap;
import java.util.List;
-
import org.opendaylight.graph.ConnectedEdge;
import org.opendaylight.graph.ConnectedGraph;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.graph.rev191125.graph.topology.graph.VertexKey;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-
/**
* This Class implements a simple Shortest Path First path computation algorithm based on standard IGP Metric.
*
* @author Olivier Dugeon
* @author Philippe Niger
* @author Philippe Cadro
- *
*/
public class ShortestPathFirst extends AbstractPathComputation {
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelOutboundHandler;
-
import org.opendaylight.protocol.bmp.spi.registry.BmpMessageRegistry;
public final class BmpHandlerFactory {
public ChannelHandler[] getDecoders() {
return new ChannelHandler[]{new BmpMessageHeaderDecoder(), new BmpByteToMessageDecoder(this.registry),};
}
-
}
package org.opendaylight.protocol.pcep.parser.message;
import com.google.common.base.Preconditions;
-
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
-
import java.util.List;
-
import org.opendaylight.protocol.pcep.spi.AbstractMessageParser;
import org.opendaylight.protocol.pcep.spi.MessageUtil;
import org.opendaylight.protocol.pcep.spi.ObjectRegistry;
package org.opendaylight.protocol.pcep.parser.object;
import com.google.common.base.Preconditions;
-
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
-
import org.opendaylight.protocol.pcep.spi.EROSubobjectRegistry;
import org.opendaylight.protocol.pcep.spi.ObjectUtil;
import org.opendaylight.protocol.pcep.spi.PCEPDeserializerException;
* Parser for {@link Ero}.
*/
public final class PCEPExplicitRouteObjectParser extends AbstractEROWithSubobjectsParser {
-
private static final int CLASS = 7;
private static final int TYPE = 1;
package org.opendaylight.protocol.pcep.parser.object;
import com.google.common.base.Preconditions;
-
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
-
import org.opendaylight.protocol.pcep.spi.ObjectUtil;
import org.opendaylight.protocol.pcep.spi.PCEPDeserializerException;
import org.opendaylight.protocol.pcep.spi.RROSubobjectRegistry;
* Parser for {@link Rro}.
*/
public final class PCEPReportedRouteObjectParser extends AbstractRROWithSubobjectsParser {
-
public static final int CLASS = 8;
-
public static final int TYPE = 1;
public PCEPReportedRouteObjectParser(final RROSubobjectRegistry subobjReg) {
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelOutboundHandler;
-
import org.opendaylight.protocol.pcep.spi.MessageRegistry;
/**
package org.opendaylight.protocol.pcep.spi;
import io.netty.buffer.ByteBuf;
-
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Message;
public interface MessageSerializer {
-
/**
* Serializes given message to bytes wrapped in given ByteBuf.
* @param message PCEP message to be serialized
package org.opendaylight.protocol.pcep.spi;
import io.netty.buffer.ByteBuf;
-
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.reported.route.object.rro.Subobject;
/**