Class SimpleEvpnNlriRegistry
- java.lang.Object
-
- org.opendaylight.protocol.bgp.evpn.spi.pojo.SimpleEvpnNlriRegistry
-
- All Implemented Interfaces:
EvpnRegistry
public final class SimpleEvpnNlriRegistry extends Object implements EvpnRegistry
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimpleEvpnNlriRegistry
getInstance()
EvpnChoice
parseEvpn(NlriType type, io.netty.buffer.ByteBuf buffer)
Decode input buffer to BGP Evpn.org.opendaylight.yangtools.concepts.Registration
registerNlriModelSerializer(org.opendaylight.yangtools.yang.common.QName qname, EvpnSerializer serializer)
org.opendaylight.yangtools.concepts.Registration
registerNlriParser(NlriType esiType, EvpnParser parser)
org.opendaylight.yangtools.concepts.Registration
registerNlriSerializer(Class<? extends EvpnChoice> evpnClass, EvpnSerializer serializer)
io.netty.buffer.ByteBuf
serializeEvpn(EvpnChoice evpn, io.netty.buffer.ByteBuf common)
Encode input BGP Evpn to output buffer.EvpnChoice
serializeEvpnModel(org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode evpnChoice)
Decode Evpn Model to Evpn.EvpnChoice
serializeEvpnRouteKey(org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode evpnChoice)
Create Route key from Evpn model.
-
-
-
Method Detail
-
getInstance
public static SimpleEvpnNlriRegistry getInstance()
-
registerNlriParser
public org.opendaylight.yangtools.concepts.Registration registerNlriParser(NlriType esiType, EvpnParser parser)
-
registerNlriSerializer
public org.opendaylight.yangtools.concepts.Registration registerNlriSerializer(Class<? extends EvpnChoice> evpnClass, EvpnSerializer serializer)
-
registerNlriModelSerializer
public org.opendaylight.yangtools.concepts.Registration registerNlriModelSerializer(org.opendaylight.yangtools.yang.common.QName qname, EvpnSerializer serializer)
-
parseEvpn
public EvpnChoice parseEvpn(NlriType type, io.netty.buffer.ByteBuf buffer)
Description copied from interface:EvpnRegistry
Decode input buffer to BGP Evpn.- Specified by:
parseEvpn
in interfaceEvpnRegistry
- Parameters:
type
- Nlri Typebuffer
- encoded EvpnChoice body in Bytebuf- Returns:
- EvpnChoice
-
serializeEvpn
public io.netty.buffer.ByteBuf serializeEvpn(EvpnChoice evpn, io.netty.buffer.ByteBuf common)
Description copied from interface:EvpnRegistry
Encode input BGP Evpn to output buffer.- Specified by:
serializeEvpn
in interfaceEvpnRegistry
- Parameters:
evpn
- EvpnChoicecommon
- encoded common Evpn- Returns:
- encoded EvpnChoice body in Bytebuf
-
serializeEvpnModel
public EvpnChoice serializeEvpnModel(org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode evpnChoice)
Description copied from interface:EvpnRegistry
Decode Evpn Model to Evpn.- Specified by:
serializeEvpnModel
in interfaceEvpnRegistry
- Parameters:
evpnChoice
- ChoiceNode containing Evpn- Returns:
- EvpnChoice
-
serializeEvpnRouteKey
public EvpnChoice serializeEvpnRouteKey(org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode evpnChoice)
Description copied from interface:EvpnRegistry
Create Route key from Evpn model.- Specified by:
serializeEvpnRouteKey
in interfaceEvpnRegistry
- Parameters:
evpnChoice
- ChoiceNode containing Evpn- Returns:
- EvpnChoice
-
-