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 { ...@@ -80,7 +80,7 @@ public class BgpLinkAttrIgpMetric implements BgpValueType {
80 public static BgpLinkAttrIgpMetric read(ChannelBuffer cb) 80 public static BgpLinkAttrIgpMetric read(ChannelBuffer cb)
81 throws BgpParseException { 81 throws BgpParseException {
82 82
83 - short linkigp; 83 + int linkigp;
84 int igpMetric = 0; 84 int igpMetric = 0;
85 int igpMetricLen = 0; 85 int igpMetricLen = 0;
86 86
...@@ -105,7 +105,7 @@ public class BgpLinkAttrIgpMetric implements BgpValueType { ...@@ -105,7 +105,7 @@ public class BgpLinkAttrIgpMetric implements BgpValueType {
105 case ISIS_WIDE_METRIC: 105 case ISIS_WIDE_METRIC:
106 linkigp = cb.readShort(); 106 linkigp = cb.readShort();
107 igpMetric = cb.readByte(); 107 igpMetric = cb.readByte();
108 - igpMetric = (igpMetric << 16) | linkigp; 108 + igpMetric = (linkigp << 8) | igpMetric;
109 igpMetricLen = ISIS_WIDE_METRIC; 109 igpMetricLen = ISIS_WIDE_METRIC;
110 break; 110 break;
111 default: // validation is already in place 111 default: // validation is already in place
......