Class SimpleFlowspecIpv4NlriParser
- java.lang.Object
-
- org.opendaylight.protocol.bgp.flowspec.AbstractFlowspecNlriParser
-
- org.opendaylight.protocol.bgp.flowspec.SimpleFlowspecIpv4NlriParser
-
- All Implemented Interfaces:
NlriParser,NlriSerializer
public final class SimpleFlowspecIpv4NlriParser extends AbstractFlowspecNlriParser
-
-
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 Constructor Description SimpleFlowspecIpv4NlriParser(SimpleFlowspecTypeRegistry flowspecTypeRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DestinationTypecreateAdvertizedRoutesDestinationType(Object[] nlriFields, PathId pathId)Create advertized destination type.DestinationTypecreateWithdrawnDestinationType(Object[] nlriFields, PathId pathId)Create withdrawn destination type.voidextractSpecificFlowspec(org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode fsType, FlowspecBuilder fsBuilder)protected voidserializeMpReachNlri(DestinationType dstType, io.netty.buffer.ByteBuf byteAggregator)protected voidserializeMpUnreachNlri(DestinationType dstType, io.netty.buffer.ByteBuf byteAggregator)protected voidstringSpecificFSNlriType(FlowspecType value, StringBuilder buffer)-
Methods inherited from class org.opendaylight.protocol.bgp.flowspec.AbstractFlowspecNlriParser
extractFlowspec, parseNlri, parseNlri, parseNlri, parseNlriFlowspecList, readNlriLength, readPathId, serializeAttribute, serializeNlri, serializeNlri, serializeNlri, stringNlri, stringNlri
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.protocol.bgp.parser.spi.NlriParser
convertMpReachToMpUnReach
-
-
-
-
Constructor Detail
-
SimpleFlowspecIpv4NlriParser
public SimpleFlowspecIpv4NlriParser(SimpleFlowspecTypeRegistry flowspecTypeRegistry)
-
-
Method Detail
-
createWithdrawnDestinationType
public DestinationType createWithdrawnDestinationType(Object[] nlriFields, PathId pathId)
Description copied from class:AbstractFlowspecNlriParserCreate withdrawn destination type.- Specified by:
createWithdrawnDestinationTypein classAbstractFlowspecNlriParser- Parameters:
nlriFields- a list of NLRI fields to be included in the destination typepathId- associated path id with given NLRI- Returns:
- created destination type
-
createAdvertizedRoutesDestinationType
public DestinationType createAdvertizedRoutesDestinationType(Object[] nlriFields, PathId pathId)
Description copied from class:AbstractFlowspecNlriParserCreate advertized destination type.- Specified by:
createAdvertizedRoutesDestinationTypein classAbstractFlowspecNlriParser- Parameters:
nlriFields- a list of NLRI fields to be included in the destination typepathId- associated path id with given NLRI- Returns:
- created destination type
-
serializeMpReachNlri
protected void serializeMpReachNlri(DestinationType dstType, io.netty.buffer.ByteBuf byteAggregator)
- Specified by:
serializeMpReachNlriin classAbstractFlowspecNlriParser
-
extractSpecificFlowspec
public void extractSpecificFlowspec(org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode fsType, FlowspecBuilder fsBuilder)- Specified by:
extractSpecificFlowspecin classAbstractFlowspecNlriParser
-
stringSpecificFSNlriType
protected void stringSpecificFSNlriType(FlowspecType value, StringBuilder buffer)
- Specified by:
stringSpecificFSNlriTypein classAbstractFlowspecNlriParser
-
serializeMpUnreachNlri
protected void serializeMpUnreachNlri(DestinationType dstType, io.netty.buffer.ByteBuf byteAggregator)
- Specified by:
serializeMpUnreachNlriin classAbstractFlowspecNlriParser
-
-