Class SidLabelIndexParser
- java.lang.Object
-
- org.opendaylight.protocol.bgp.linkstate.impl.attribute.sr.SidLabelIndexParser
-
public final class SidLabelIndexParser extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSidLabelIndexParser.Size
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.ByteBufserializeSidValue(SidLabelIndex tlv)
-
-
-
Method Detail
-
serializeSidValue
public static io.netty.buffer.ByteBuf serializeSidValue(SidLabelIndex tlv)
-
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
-
-