Class AbstractFlowspecL3vpnNlriParser
java.lang.Object
org.opendaylight.protocol.bgp.flowspec.AbstractFlowspecNlriParser
org.opendaylight.protocol.bgp.flowspec.l3vpn.AbstractFlowspecL3vpnNlriParser
- All Implemented Interfaces:
NlriParser,NlriSerializer
- Direct Known Subclasses:
FlowspecL3vpnIpv4NlriParser,FlowspecL3vpnIpv6NlriParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifierFields inherited from class org.opendaylight.protocol.bgp.flowspec.AbstractFlowspecNlriParser
DEST_PREFIX_NID, flowspecTypeRegistry, OP_NID, SOURCE_PREFIX_NID, VALUE_NID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractFlowspecL3vpnNlriParser(FlowspecTypeRegistry flowspecTypeRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @NonNull DestinationTypecreateAdvertizedRoutesDestinationType(RouteDistinguisher rd, @Nullable List<Flowspec> flowspecList, @Nullable PathId pathId) Create advertized destination type.protected abstract @NonNull DestinationTypecreateWithdrawnDestinationType(RouteDistinguisher rd, @Nullable List<Flowspec> flowspecList, @Nullable PathId pathId) Create withdrawn destination type.protected final DestinationTypeparseAdvertizedNlri(io.netty.buffer.ByteBuf nlri, PathId pathId) Create advertized destination type.protected final DestinationTypeparseWithdrawnNlri(io.netty.buffer.ByteBuf nlri, PathId pathId) Parse and create withdrawn destination type.final voidserializeNlri(@NonNull RouteDistinguisher rd, List<Flowspec> flowspecList, @Nullable PathId pathId, @NonNull io.netty.buffer.ByteBuf buffer) final StringstringNlri(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode flowspec) Methods inherited from class org.opendaylight.protocol.bgp.flowspec.AbstractFlowspecNlriParser
appendNlri, extractFlowspec, extractSpecificFlowspec, parseNlri, parseNlri, parseNlriFlowspecList, readNlriLength, readPathId, serializeAttribute, serializeMpReachNlri, serializeMpUnreachNlri, serializeNlri, stringNlri, stringSpecificFSNlriTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opendaylight.protocol.bgp.parser.spi.NlriParser
convertMpReachToMpUnReach
-
Field Details
-
RD_NID
public static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier RD_NID
-
-
Constructor Details
-
AbstractFlowspecL3vpnNlriParser
-
-
Method Details
-
stringNlri
public final String stringNlri(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode flowspec) - Overrides:
stringNlriin classAbstractFlowspecNlriParser
-
serializeNlri
public final void serializeNlri(@NonNull RouteDistinguisher rd, List<Flowspec> flowspecList, @Nullable PathId pathId, @NonNull io.netty.buffer.ByteBuf buffer) -
parseAdvertizedNlri
protected final DestinationType parseAdvertizedNlri(io.netty.buffer.ByteBuf nlri, PathId pathId) throws BGPParsingException Description copied from class:AbstractFlowspecNlriParserCreate advertized destination type.- Specified by:
parseAdvertizedNlriin classAbstractFlowspecNlriParser- Parameters:
nlri- on-wire NLRI, with path ID already peeledpathId- associated path id with given NLRI- Returns:
- created destination type
- Throws:
BGPParsingException
-
createAdvertizedRoutesDestinationType
protected abstract @NonNull DestinationType createAdvertizedRoutesDestinationType(RouteDistinguisher rd, @Nullable List<Flowspec> flowspecList, @Nullable PathId pathId) Create advertized destination type.- Parameters:
rd- the RouteDistinguisherflowspecList- a list ofFlowspecspathId- associated path id with given destination- Returns:
- created destination type
-
parseWithdrawnNlri
protected final DestinationType parseWithdrawnNlri(io.netty.buffer.ByteBuf nlri, PathId pathId) throws BGPParsingException Description copied from class:AbstractFlowspecNlriParserParse and create withdrawn destination type.- Specified by:
parseWithdrawnNlriin classAbstractFlowspecNlriParser- Parameters:
nlri- on-wire NLRI, with path ID already peeledpathId- associated path id with given NLRI- Returns:
- created destination type
- Throws:
BGPParsingException
-
createWithdrawnDestinationType
protected abstract @NonNull DestinationType createWithdrawnDestinationType(RouteDistinguisher rd, @Nullable List<Flowspec> flowspecList, @Nullable PathId pathId) Create withdrawn destination type.- Parameters:
rd- the RouteDistinguisherflowspecList- a list ofFlowspecspathId- associated path id with given destination- Returns:
- created destination type
-