Class SidLabelIndexParser
java.lang.Object
org.opendaylight.protocol.bgp.linkstate.impl.attribute.sr.SidLabelIndexParser
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic SidLabelIndexparseSidLabelIndex(SidLabelIndexParser.Size length, io.netty.buffer.ByteBuf buffer) static SidLabelIndexparseSidLabelIndexByFlags(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
- 
parseSidLabelIndexpublic static SidLabelIndex parseSidLabelIndex(SidLabelIndexParser.Size length, io.netty.buffer.ByteBuf buffer) 
- 
parseSidLabelIndexByFlagspublic 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 value
- buffer- buffer containing SID/Label/Index value
- isValue- V-Flag value
- isLocal- L-Flag value
- Returns:
- SID/Label/Index value parsed into the appropriate type
 
 
-