Class RouteTargetAS4OctetRouteHandler
- java.lang.Object
-
- org.opendaylight.protocol.bgp.route.targetcontrain.impl.nlri.RouteTargetAS4OctetRouteHandler
-
- All Implemented Interfaces:
RouteTargetConstrainParser<RouteTargetConstrainAs4ExtendedCommunityCase>
,RouteTargetConstrainSerializer<RouteTargetConstrainAs4ExtendedCommunityCase>
,RouteTargetHandler<RouteTargetConstrainAs4ExtendedCommunityCase>
public final class RouteTargetAS4OctetRouteHandler extends Object implements RouteTargetHandler<RouteTargetConstrainAs4ExtendedCommunityCase>
Route Target Nlri type 2.- Author:
- Claudio D. Gasparini
-
-
Constructor Summary
Constructors Constructor Description RouteTargetAS4OctetRouteHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<RouteTargetConstrainAs4ExtendedCommunityCase>
getClazz()
returns class of RouteTargetChoice handled by serializer.Integer
getType()
Returns NlriType handled by parser.RouteTargetConstrainAs4ExtendedCommunityCase
parseRouteTargetConstrain(io.netty.buffer.ByteBuf buffer)
Decode input buffer to BGP Route Target.io.netty.buffer.ByteBuf
serializeRouteTargetConstrain(RouteTargetConstrainAs4ExtendedCommunityCase routeTarget)
Serialize routeTarget.
-
-
-
Method Detail
-
parseRouteTargetConstrain
public RouteTargetConstrainAs4ExtendedCommunityCase parseRouteTargetConstrain(io.netty.buffer.ByteBuf buffer)
Description copied from interface:RouteTargetConstrainParser
Decode input buffer to BGP Route Target.- Specified by:
parseRouteTargetConstrain
in interfaceRouteTargetConstrainParser<RouteTargetConstrainAs4ExtendedCommunityCase>
- Parameters:
buffer
- encoded RouteTarget body in Bytebuf- Returns:
- Route Target
-
getType
public Integer getType()
Description copied from interface:RouteTargetConstrainParser
Returns NlriType handled by parser.- Specified by:
getType
in interfaceRouteTargetConstrainParser<RouteTargetConstrainAs4ExtendedCommunityCase>
- Specified by:
getType
in interfaceRouteTargetConstrainSerializer<RouteTargetConstrainAs4ExtendedCommunityCase>
- Returns:
- NlriType
-
serializeRouteTargetConstrain
public io.netty.buffer.ByteBuf serializeRouteTargetConstrain(RouteTargetConstrainAs4ExtendedCommunityCase routeTarget)
Description copied from interface:RouteTargetConstrainSerializer
Serialize routeTarget.- Specified by:
serializeRouteTargetConstrain
in interfaceRouteTargetConstrainSerializer<RouteTargetConstrainAs4ExtendedCommunityCase>
- Parameters:
routeTarget
- routeTarget- Returns:
- Encode routeTarget to output buffer
-
getClazz
public Class<RouteTargetConstrainAs4ExtendedCommunityCase> getClazz()
Description copied from interface:RouteTargetConstrainSerializer
returns class of RouteTargetChoice handled by serializer.- Specified by:
getClazz
in interfaceRouteTargetConstrainSerializer<RouteTargetConstrainAs4ExtendedCommunityCase>
- Returns:
- RouteTargetChoice Class
-
-