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
Modifier and TypeFieldDescriptionstatic final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
Fields inherited from class org.opendaylight.protocol.bgp.flowspec.AbstractFlowspecNlriParser
DEST_PREFIX_NID, flowspecTypeRegistry, OP_NID, SOURCE_PREFIX_NID, VALUE_NID
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractFlowspecL3vpnNlriParser
(FlowspecTypeRegistry flowspecTypeRegistry) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract @NonNull DestinationType
createAdvertizedRoutesDestinationType
(RouteDistinguisher rd, @Nullable List<Flowspec> flowspecList, @Nullable PathId pathId) Create advertized destination type.protected abstract @NonNull DestinationType
createWithdrawnDestinationType
(RouteDistinguisher rd, @Nullable List<Flowspec> flowspecList, @Nullable PathId pathId) Create withdrawn destination type.protected final DestinationType
parseAdvertizedNlri
(io.netty.buffer.ByteBuf nlri, PathId pathId) Create advertized destination type.protected final DestinationType
parseWithdrawnNlri
(io.netty.buffer.ByteBuf nlri, PathId pathId) Parse and create withdrawn destination type.final void
serializeNlri
(@NonNull RouteDistinguisher rd, List<Flowspec> flowspecList, @Nullable PathId pathId, @NonNull io.netty.buffer.ByteBuf buffer) final String
stringNlri
(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, stringSpecificFSNlriType
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
-
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:
stringNlri
in 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:AbstractFlowspecNlriParser
Create advertized destination type.- Specified by:
parseAdvertizedNlri
in 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 ofFlowspec
spathId
- 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:AbstractFlowspecNlriParser
Parse and create withdrawn destination type.- Specified by:
parseWithdrawnNlri
in 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 ofFlowspec
spathId
- associated path id with given destination- Returns:
- created destination type
-