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
Modifier and TypeMethodDescriptionstatic @NonNull ImmutableRouteTargetConstrainNlriRegistry
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 Details
-
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
-