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