Class SidLabelIndexParser
java.lang.Object
org.opendaylight.protocol.bgp.linkstate.impl.attribute.sr.SidLabelIndexParser
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SidLabelIndex
parseSidLabelIndex
(SidLabelIndexParser.Size length, io.netty.buffer.ByteBuf buffer) static SidLabelIndex
parseSidLabelIndexByFlags
(SidLabelIndexParser.Size length, io.netty.buffer.ByteBuf buffer, boolean isValue, boolean isLocal) Parses SID/Label/Index value into appropriate type based on V-Flag and L-Flag values.static io.netty.buffer.ByteBuf
-
Method Details
-
serializeSidValue
-
parseSidLabelIndex
public static SidLabelIndex parseSidLabelIndex(SidLabelIndexParser.Size length, io.netty.buffer.ByteBuf buffer) -
parseSidLabelIndexByFlags
public static SidLabelIndex parseSidLabelIndexByFlags(SidLabelIndexParser.Size length, io.netty.buffer.ByteBuf buffer, boolean isValue, boolean isLocal) Parses SID/Label/Index value into appropriate type based on V-Flag and L-Flag values. This method is required as some device-side implementations incorrectly encode SID/Label/Index value using wrong type e.g. Label type to encode an Index value (V-Flag=false, L-Flag=false).- Parameters:
length
- length of SID/Label/Index valuebuffer
- buffer containing SID/Label/Index valueisValue
- V-Flag valueisLocal
- L-Flag value- Returns:
- SID/Label/Index value parsed into the appropriate type
-