Thejaswi N K
Committed by Gerrit Code Review

Igp IsIs extended metric issue

Change-Id: I5d3971dc9babd5855d5059c0ef531cf49d672eac
......@@ -80,7 +80,7 @@ public class BgpLinkAttrIgpMetric implements BgpValueType {
public static BgpLinkAttrIgpMetric read(ChannelBuffer cb)
throws BgpParseException {
short linkigp;
int linkigp;
int igpMetric = 0;
int igpMetricLen = 0;
......@@ -105,7 +105,7 @@ public class BgpLinkAttrIgpMetric implements BgpValueType {
case ISIS_WIDE_METRIC:
linkigp = cb.readShort();
igpMetric = cb.readByte();
igpMetric = (igpMetric << 16) | linkigp;
igpMetric = (linkigp << 8) | igpMetric;
igpMetricLen = ISIS_WIDE_METRIC;
break;
default: // validation is already in place
......