public final class SimpleFlowspecIpv4NlriParser extends AbstractFlowspecNlriParser
DEST_PREFIX_NID, flowspecTypeRegistry, LENGTH_MAGIC, MAX_NLRI_LENGTH, MAX_NLRI_LENGTH_ONE_BYTE, OP_NID, SOURCE_PREFIX_NID, VALUE_NID
Constructor and Description |
---|
SimpleFlowspecIpv4NlriParser(SimpleFlowspecTypeRegistry flowspecTypeRegistry) |
Modifier and Type | Method and Description |
---|---|
DestinationType |
createAdvertizedRoutesDestinationType(Object[] nlriFields,
PathId pathId)
Create advertized destination type
|
DestinationType |
createWithdrawnDestinationType(Object[] nlriFields,
PathId pathId)
Create withdrawn destination type
|
void |
extractSpecificFlowspec(org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode fsType,
FlowspecBuilder fsBuilder) |
protected void |
serializeMpReachNlri(DestinationType dstType,
io.netty.buffer.ByteBuf byteAggregator) |
protected void |
serializeMpUnreachNlri(DestinationType dstType,
io.netty.buffer.ByteBuf byteAggregator) |
protected void |
stringSpecificFSNlriType(FlowspecType value,
StringBuilder buffer) |
extractFlowspec, parseNlri, parseNlri, parseNlri, parseNlri, parseNlri, parseNlriFlowspecList, readNlriLength, readPathId, serializeAttribute, serializeNlri, serializeNlri, serializeNlri, stringNlri, stringNlri
public SimpleFlowspecIpv4NlriParser(SimpleFlowspecTypeRegistry flowspecTypeRegistry)
public DestinationType createWithdrawnDestinationType(@Nonnull Object[] nlriFields, @Nullable PathId pathId)
AbstractFlowspecNlriParser
createWithdrawnDestinationType
in class AbstractFlowspecNlriParser
nlriFields
- a list of NLRI fields to be included in the destination typepathId
- associated path id with given NLRIpublic DestinationType createAdvertizedRoutesDestinationType(@Nonnull Object[] nlriFields, @Nullable PathId pathId)
AbstractFlowspecNlriParser
createAdvertizedRoutesDestinationType
in class AbstractFlowspecNlriParser
nlriFields
- a list of NLRI fields to be included in the destination typepathId
- associated path id with given NLRIprotected void serializeMpReachNlri(DestinationType dstType, io.netty.buffer.ByteBuf byteAggregator)
serializeMpReachNlri
in class AbstractFlowspecNlriParser
public void extractSpecificFlowspec(org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode fsType, FlowspecBuilder fsBuilder)
extractSpecificFlowspec
in class AbstractFlowspecNlriParser
protected void stringSpecificFSNlriType(FlowspecType value, StringBuilder buffer)
stringSpecificFSNlriType
in class AbstractFlowspecNlriParser
protected void serializeMpUnreachNlri(DestinationType dstType, io.netty.buffer.ByteBuf byteAggregator)
serializeMpUnreachNlri
in class AbstractFlowspecNlriParser
Copyright © 2018 OpenDaylight. All rights reserved.