Class ImmutableRouteTargetConstrainNlriRegistry
- java.lang.Object
-
- org.opendaylight.protocol.bgp.route.targetcontrain.impl.nlri.ImmutableRouteTargetConstrainNlriRegistry
-
- All Implemented Interfaces:
RouteTargeConstraintNlriRegistry
public final class ImmutableRouteTargetConstrainNlriRegistry 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 @NonNull ImmutableRouteTargetConstrainNlriRegistry
getInstance()
RouteTargetConstrainChoice
parseRouteTargetConstrain(Integer type, io.netty.buffer.ByteBuf nlriBuf)
Decode input buffer to BGP Route Target.io.netty.buffer.ByteBuf
serializeRouteTargetConstrain(RouteTargetConstrainChoice routeTarget)
Encode input BGP routeTarget to output buffer.
-
-
-
Method Detail
-
getInstance
public static @NonNull ImmutableRouteTargetConstrainNlriRegistry getInstance()
-
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
-
-