commit | 795c89d22a6e4b71a675a9bfbb8f5b562717cf84 | [log] [tgz] |
---|---|---|
author | Shashikanth VH <shashikanth.vh@huawei.com> | Thu Dec 10 21:52:46 2015 +0530 |
committer | Gerrit Code Review <gerrit@onlab.us> | Fri Dec 11 15:59:08 2015 +0000 |
tree | f36b6a64343bd02bf4609d52e2abc403007f5c8d | |
parent | 74e4b784671dd95b18051a76aec266bc4033efc4 [diff] |
BGP system test pseudonode issue fix. Change-Id: Ie7f632fe7f8f1f8b4f5ab05fbe59cccefaf56d3b
diff --git a/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/protocol/linkstate/NodeDescriptors.java b/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/protocol/linkstate/NodeDescriptors.java index f91ac26..a07368b 100644 --- a/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/protocol/linkstate/NodeDescriptors.java +++ b/protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/protocol/linkstate/NodeDescriptors.java
@@ -182,9 +182,13 @@ break; case IGP_ROUTERID_TYPE: if (protocolId == IS_IS_LEVEL_1_PROTOCOL_ID || protocolId == IS_IS_LEVEL_2_PROTOCOL_ID) { - if (length == ISISNONPSEUDONODE_LEN) { + boolean isNonPseudoNode = true; + if ((length == ISISPSEUDONODE_LEN) && (tempCb.getByte(ISISPSEUDONODE_LEN - 1) != 0)) { + isNonPseudoNode = false; + } + if (isNonPseudoNode) { tlv = IsIsNonPseudonode.read(tempCb); - } else if (length == ISISPSEUDONODE_LEN) { + } else { tlv = IsIsPseudonode.read(tempCb); } } else if (protocolId == OSPF_V2_PROTOCOL_ID || protocolId == OSPF_V3_PROTOCOL_ID) {