Class SimpleFlowspecIpv6NlriParser
java.lang.Object
org.opendaylight.protocol.bgp.flowspec.AbstractFlowspecNlriParser
org.opendaylight.protocol.bgp.flowspec.SimpleFlowspecIpv6NlriParser
- All Implemented Interfaces:
NlriParser,NlriSerializer
-
Field Summary
Fields inherited from class org.opendaylight.protocol.bgp.flowspec.AbstractFlowspecNlriParser
DEST_PREFIX_NID, flowspecTypeRegistry, OP_NID, SOURCE_PREFIX_NID, VALUE_NID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidextractSpecificFlowspec(org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode fsType, FlowspecBuilder fsBuilder) 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.protected voidserializeMpReachNlri(DestinationType dstType, io.netty.buffer.ByteBuf byteAggregator) protected voidserializeMpUnreachNlri(DestinationType dstType, io.netty.buffer.ByteBuf byteAggregator) protected final voidserializeNlri(List<Flowspec> flowspecList, @Nullable PathId pathId, @NonNull io.netty.buffer.ByteBuf buffer) protected voidstringSpecificFSNlriType(FlowspecType value, StringBuilder buffer) Methods inherited from class org.opendaylight.protocol.bgp.flowspec.AbstractFlowspecNlriParser
appendNlri, extractFlowspec, parseNlri, parseNlri, parseNlriFlowspecList, readNlriLength, readPathId, serializeAttribute, serializeNlri, stringNlri, stringNlriMethods 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
-
Constructor Details
-
SimpleFlowspecIpv6NlriParser
-
-
Method Details
-
extractSpecificFlowspec
public void extractSpecificFlowspec(org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode fsType, FlowspecBuilder fsBuilder) - Specified by:
extractSpecificFlowspecin classAbstractFlowspecNlriParser
-
stringSpecificFSNlriType
- Specified by:
stringSpecificFSNlriTypein classAbstractFlowspecNlriParser
-
serializeMpReachNlri
protected void serializeMpReachNlri(DestinationType dstType, io.netty.buffer.ByteBuf byteAggregator) - Specified by:
serializeMpReachNlriin classAbstractFlowspecNlriParser
-
serializeMpUnreachNlri
protected void serializeMpUnreachNlri(DestinationType dstType, io.netty.buffer.ByteBuf byteAggregator) - Specified by:
serializeMpUnreachNlriin classAbstractFlowspecNlriParser
-
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
-
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
-
serializeNlri
-