commit | 55204f82ac5ff7e3460b82a61d76f6e6a7baa197 | [log] [tgz] |
---|---|---|
author | Thejaswi N K <thejaswik@huawei.com> | Tue Dec 15 21:50:12 2015 +0530 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Jan 06 02:41:34 2016 +0000 |
tree | de3ca2009b8756ab8fa8b808422bcb69af9a3efc | |
parent | e7eacfd5806049f9ea9eabe582be976998e538a3 [diff] |
Igp IsIs extended metric issue Change-Id: I5d3971dc9babd5855d5059c0ef531cf49d672eac
diff --git a/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/types/attr/BgpLinkAttrIgpMetric.java b/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/types/attr/BgpLinkAttrIgpMetric.java index 5721cf6..e8181d5 100644 --- a/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/types/attr/BgpLinkAttrIgpMetric.java +++ b/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/types/attr/BgpLinkAttrIgpMetric.java
@@ -80,7 +80,7 @@ public static BgpLinkAttrIgpMetric read(ChannelBuffer cb) throws BgpParseException { - short linkigp; + int linkigp; int igpMetric = 0; int igpMetricLen = 0; @@ -105,7 +105,7 @@ 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