Class SimpleMvpnNlriRegistry
- java.lang.Object
-
- org.opendaylight.protocol.bgp.mvpn.spi.pojo.nlri.SimpleMvpnNlriRegistry
-
- All Implemented Interfaces:
MvpnRegistry
public final class SimpleMvpnNlriRegistry extends Object implements MvpnRegistry
Mvpn Nlri Registry.- Author:
- Claudio D. Gasparini
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimpleMvpnNlriRegistry
getInstance()
MvpnChoice
parseMvpn(NlriType type, io.netty.buffer.ByteBuf nlriBuf)
Decode input buffer to BGP Mvpn.<T extends MvpnChoice>
org.opendaylight.yangtools.concepts.RegistrationregisterNlriParser(MvpnParser<T> parser)
<T extends MvpnChoice>
org.opendaylight.yangtools.concepts.RegistrationregisterNlriSerializer(MvpnSerializer<T> serializer)
io.netty.buffer.ByteBuf
serializeMvpn(MvpnChoice mvpn)
Encode input BGP mvpn to output buffer.
-
-
-
Method Detail
-
getInstance
public static SimpleMvpnNlriRegistry getInstance()
-
registerNlriParser
public <T extends MvpnChoice> org.opendaylight.yangtools.concepts.Registration registerNlriParser(MvpnParser<T> parser)
-
registerNlriSerializer
public <T extends MvpnChoice> org.opendaylight.yangtools.concepts.Registration registerNlriSerializer(MvpnSerializer<T> serializer)
-
parseMvpn
public MvpnChoice parseMvpn(NlriType type, io.netty.buffer.ByteBuf nlriBuf)
Description copied from interface:MvpnRegistry
Decode input buffer to BGP Mvpn.- Specified by:
parseMvpn
in interfaceMvpnRegistry
- Parameters:
type
- Nlri TypenlriBuf
- encoded MvpnChoice body in Bytebuf- Returns:
- MvpnChoice
-
serializeMvpn
public io.netty.buffer.ByteBuf serializeMvpn(MvpnChoice mvpn)
Description copied from interface:MvpnRegistry
Encode input BGP mvpn to output buffer.- Specified by:
serializeMvpn
in interfaceMvpnRegistry
- Parameters:
mvpn
- MvpnChoice- Returns:
- encoded MvpnChoice body in Bytebuf
-
-