Class LinkstateNlriParser
- java.lang.Object
-
- org.opendaylight.protocol.bgp.linkstate.impl.nlri.LinkstateNlriParser
-
- All Implemented Interfaces:
NlriParser
,NlriSerializer
public final class LinkstateNlriParser extends Object implements NlriParser, NlriSerializer
Parser and serializer for Linkstate NLRI.
-
-
Field Summary
Fields Modifier and Type Field Description static org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
ADVERTISING_NODE_DESCRIPTORS_NID
static org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
IDENTIFIER_NID
static org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
LINK_DESCRIPTORS_NID
static org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
LOCAL_NODE_DESCRIPTORS_NID
static org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
NODE_DESCRIPTORS_NID
static org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
OBJECT_TYPE_NID
static org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
PREFIX_DESCRIPTORS_NID
static org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
PROTOCOL_ID_NID
static org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
REMOTE_NODE_DESCRIPTORS_NID
-
Constructor Summary
Constructors Constructor Description LinkstateNlriParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CLinkstateDestination
extractLinkstateDestination(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode<? extends org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> linkstate)
void
parseNlri(io.netty.buffer.ByteBuf nlri, MpReachNlriBuilder builder, PeerSpecificParserConstraint constraint)
Parse MP UN_REACH NLRI from buffer.void
parseNlri(io.netty.buffer.ByteBuf nlri, MpUnreachNlriBuilder builder, PeerSpecificParserConstraint constraint)
Parse MP UN_REACH NLRI from buffer.void
serializeAttribute(Attributes pathAttributes, io.netty.buffer.ByteBuf byteAggregator)
-
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 Detail
-
OBJECT_TYPE_NID
public static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier OBJECT_TYPE_NID
-
NODE_DESCRIPTORS_NID
public static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier NODE_DESCRIPTORS_NID
-
LOCAL_NODE_DESCRIPTORS_NID
public static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier LOCAL_NODE_DESCRIPTORS_NID
-
REMOTE_NODE_DESCRIPTORS_NID
public static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier REMOTE_NODE_DESCRIPTORS_NID
-
ADVERTISING_NODE_DESCRIPTORS_NID
public static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier ADVERTISING_NODE_DESCRIPTORS_NID
-
PREFIX_DESCRIPTORS_NID
public static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier PREFIX_DESCRIPTORS_NID
-
LINK_DESCRIPTORS_NID
public static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier LINK_DESCRIPTORS_NID
-
PROTOCOL_ID_NID
public static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier PROTOCOL_ID_NID
-
IDENTIFIER_NID
public static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier IDENTIFIER_NID
-
-
Method Detail
-
parseNlri
public void parseNlri(io.netty.buffer.ByteBuf nlri, MpUnreachNlriBuilder builder, PeerSpecificParserConstraint constraint) throws BGPParsingException
Description copied from interface:NlriParser
Parse MP UN_REACH NLRI from buffer.- Specified by:
parseNlri
in interfaceNlriParser
- Parameters:
nlri
- Encoded unreachable NLRI in ByteBuf.builder
- MP UNREACH NLRI builder.constraint
- Peer specific constraints.- Throws:
BGPParsingException
- exception.
-
parseNlri
public void parseNlri(io.netty.buffer.ByteBuf nlri, MpReachNlriBuilder builder, PeerSpecificParserConstraint constraint) throws BGPParsingException
Description copied from interface:NlriParser
Parse MP UN_REACH NLRI from buffer.- Specified by:
parseNlri
in interfaceNlriParser
- Parameters:
nlri
- Encoded reachable NLRI in ByteBuf.builder
- MP REACH NLRI builder.constraint
- Peer specific constraints.- Throws:
BGPParsingException
- exception.
-
serializeAttribute
public void serializeAttribute(Attributes pathAttributes, io.netty.buffer.ByteBuf byteAggregator)
- Specified by:
serializeAttribute
in interfaceNlriSerializer
-
extractLinkstateDestination
public static CLinkstateDestination extractLinkstateDestination(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode<? extends org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument> linkstate)
-
-