Class LinkstateNlriParser
java.lang.Object
org.opendaylight.protocol.bgp.linkstate.impl.nlri.LinkstateNlriParser
- All Implemented Interfaces:
NlriParser
,NlriSerializer
Parser and serializer for Linkstate NLRI.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
static final org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CLinkstateDestination
extractLinkstateDestination
(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode 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 Details
-
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
-
-
Constructor Details
-
LinkstateNlriParser
public LinkstateNlriParser()
-
-
Method Details
-
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
- Specified by:
serializeAttribute
in interfaceNlriSerializer
-
extractLinkstateDestination
public static CLinkstateDestination extractLinkstateDestination(org.opendaylight.yangtools.yang.data.api.schema.DataContainerNode linkstate)
-