Class IntraAsIPmsiADHandler
- java.lang.Object
-
- org.opendaylight.protocol.bgp.mvpn.impl.nlri.IntraAsIPmsiADHandler
-
- All Implemented Interfaces:
MvpnParser<IntraAsIPmsiADCase>
,MvpnSerializer<IntraAsIPmsiADCase>
public final class IntraAsIPmsiADHandler extends Object
https://tools.ietf.org/html/rfc6514#section-4.1.- Author:
- Claudio D. Gasparini
-
-
Constructor Summary
Constructors Constructor Description IntraAsIPmsiADHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<? extends MvpnChoice>
getClazz()
returns class of MvpnChoice handled by serializer.int
getType()
Returns NlriType handled by parser.IntraAsIPmsiADCase
parseMvpn(io.netty.buffer.ByteBuf buffer)
Decode input buffer to BGP Mvpn.protected io.netty.buffer.ByteBuf
serializeBody(IntraAsIPmsiADCase mvpn)
io.netty.buffer.ByteBuf
serializeMvpn(T mvpn)
Serialize mvpn.
-
-
-
Method Detail
-
getType
public int getType()
Description copied from interface:MvpnParser
Returns NlriType handled by parser.- Returns:
- NlriType
-
parseMvpn
public IntraAsIPmsiADCase parseMvpn(io.netty.buffer.ByteBuf buffer)
Description copied from interface:MvpnParser
Decode input buffer to BGP Mvpn.- Parameters:
buffer
- encoded Mvpn body in Bytebuf- Returns:
- Mvpn
-
serializeBody
protected io.netty.buffer.ByteBuf serializeBody(IntraAsIPmsiADCase mvpn)
-
getClazz
public Class<? extends MvpnChoice> getClazz()
Description copied from interface:MvpnSerializer
returns class of MvpnChoice handled by serializer.- Returns:
- MvpnChoice Class
-
serializeMvpn
public final io.netty.buffer.ByteBuf serializeMvpn(T mvpn)
Description copied from interface:MvpnSerializer
Serialize mvpn.- Specified by:
serializeMvpn
in interfaceMvpnSerializer<T extends MvpnChoice>
- Parameters:
mvpn
- mvpn- Returns:
- Encode mvpn to output buffer
-
-