Class SimpleRouteTargetConstrainNlriRegistry
- java.lang.Object
-
- org.opendaylight.protocol.bgp.route.targetcontrain.impl.nlri.SimpleRouteTargetConstrainNlriRegistry
-
- All Implemented Interfaces:
RouteTargeConstraintNlriRegistry
public final class SimpleRouteTargetConstrainNlriRegistry extends Object implements RouteTargeConstraintNlriRegistry
Route Target Nlri Registry.- Author:
- Claudio D. Gasparini
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimpleRouteTargetConstrainNlriRegistry
getInstance()
RouteTargetConstrainChoice
parseRouteTargetConstrain(Integer type, io.netty.buffer.ByteBuf nlriBuf)
Decode input buffer to BGP Route Target.<T extends RouteTargetConstrainChoice>
org.opendaylight.yangtools.concepts.RegistrationregisterNlriParser(RouteTargetConstrainParser<T> parser)
<T extends RouteTargetConstrainChoice>
org.opendaylight.yangtools.concepts.RegistrationregisterNlriSerializer(RouteTargetConstrainSerializer<T> serializer)
io.netty.buffer.ByteBuf
serializeRouteTargetConstrain(RouteTargetConstrainChoice routeTarget)
Encode input BGP routeTarget to output buffer.
-
-
-
Method Detail
-
getInstance
public static SimpleRouteTargetConstrainNlriRegistry getInstance()
-
registerNlriParser
public <T extends RouteTargetConstrainChoice> org.opendaylight.yangtools.concepts.Registration registerNlriParser(RouteTargetConstrainParser<T> parser)
-
registerNlriSerializer
public <T extends RouteTargetConstrainChoice> org.opendaylight.yangtools.concepts.Registration registerNlriSerializer(RouteTargetConstrainSerializer<T> serializer)
-
parseRouteTargetConstrain
public RouteTargetConstrainChoice parseRouteTargetConstrain(Integer type, io.netty.buffer.ByteBuf nlriBuf)
Description copied from interface:RouteTargeConstraintNlriRegistry
Decode input buffer to BGP Route Target.- Specified by:
parseRouteTargetConstrain
in interfaceRouteTargeConstraintNlriRegistry
- Parameters:
type
- Nlri TypenlriBuf
- encoded RouteTargetChoice body in Bytebuf- Returns:
- RouteTargetChoice
-
serializeRouteTargetConstrain
public io.netty.buffer.ByteBuf serializeRouteTargetConstrain(RouteTargetConstrainChoice routeTarget)
Description copied from interface:RouteTargeConstraintNlriRegistry
Encode input BGP routeTarget to output buffer.- Specified by:
serializeRouteTargetConstrain
in interfaceRouteTargeConstraintNlriRegistry
- Parameters:
routeTarget
- RouteTargetChoice- Returns:
- encoded RouteTargetChoice body in Bytebuf
-
-