Class FlowspecL3vpnIpv4NlriParser
java.lang.Object
org.opendaylight.protocol.bgp.flowspec.AbstractFlowspecNlriParser
org.opendaylight.protocol.bgp.flowspec.l3vpn.AbstractFlowspecL3vpnNlriParser
org.opendaylight.protocol.bgp.flowspec.l3vpn.ipv4.FlowspecL3vpnIpv4NlriParser
- All Implemented Interfaces:
NlriParser
,NlriSerializer
L3 VPN IPv4 flowspec parser.
- Author:
- Kevin Wang
-
Field Summary
Fields inherited from class org.opendaylight.protocol.bgp.flowspec.l3vpn.AbstractFlowspecL3vpnNlriParser
RD_NID
Fields inherited from class org.opendaylight.protocol.bgp.flowspec.AbstractFlowspecNlriParser
DEST_PREFIX_NID, flowspecTypeRegistry, OP_NID, SOURCE_PREFIX_NID, VALUE_NID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected DestinationType
createAdvertizedRoutesDestinationType
(RouteDistinguisher rd, List<Flowspec> flowspecList, PathId pathId) Create advertized destination type.protected DestinationType
createWithdrawnDestinationType
(RouteDistinguisher rd, List<Flowspec> flowspecList, 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) Methods inherited from class org.opendaylight.protocol.bgp.flowspec.l3vpn.AbstractFlowspecL3vpnNlriParser
parseAdvertizedNlri, parseWithdrawnNlri, serializeNlri, stringNlri
Methods inherited from class org.opendaylight.protocol.bgp.flowspec.AbstractFlowspecNlriParser
appendNlri, extractFlowspec, parseNlri, parseNlri, parseNlriFlowspecList, readNlriLength, readPathId, serializeAttribute, serializeNlri, 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 Details
-
FlowspecL3vpnIpv4NlriParser
-
-
Method Details
-
createAdvertizedRoutesDestinationType
protected DestinationType createAdvertizedRoutesDestinationType(RouteDistinguisher rd, List<Flowspec> flowspecList, PathId pathId) Description copied from class:AbstractFlowspecL3vpnNlriParser
Create advertized destination type.- Specified by:
createAdvertizedRoutesDestinationType
in classAbstractFlowspecL3vpnNlriParser
- Parameters:
rd
- the RouteDistinguisherflowspecList
- a list ofFlowspec
spathId
- associated path id with given destination- Returns:
- created destination type
-
createWithdrawnDestinationType
protected DestinationType createWithdrawnDestinationType(RouteDistinguisher rd, List<Flowspec> flowspecList, PathId pathId) Description copied from class:AbstractFlowspecL3vpnNlriParser
Create withdrawn destination type.- Specified by:
createWithdrawnDestinationType
in classAbstractFlowspecL3vpnNlriParser
- Parameters:
rd
- the RouteDistinguisherflowspecList
- a list ofFlowspec
spathId
- associated path id with given destination- Returns:
- created destination type
-
extractSpecificFlowspec
public void extractSpecificFlowspec(org.opendaylight.yangtools.yang.data.api.schema.ChoiceNode fsType, FlowspecBuilder fsBuilder) - Specified by:
extractSpecificFlowspec
in classAbstractFlowspecNlriParser
-
stringSpecificFSNlriType
- Specified by:
stringSpecificFSNlriType
in classAbstractFlowspecNlriParser
-
serializeMpReachNlri
protected void serializeMpReachNlri(DestinationType dstType, io.netty.buffer.ByteBuf byteAggregator) - Specified by:
serializeMpReachNlri
in classAbstractFlowspecNlriParser
-
serializeMpUnreachNlri
protected void serializeMpUnreachNlri(DestinationType dstType, io.netty.buffer.ByteBuf byteAggregator) - Specified by:
serializeMpUnreachNlri
in classAbstractFlowspecNlriParser
-