Shashikanth VH
Committed by Gerrit Code Review

BGP system test pseudonode issue fix.

Change-Id: Ie7f632fe7f8f1f8b4f5ab05fbe59cccefaf56d3b
...@@ -182,9 +182,13 @@ public class NodeDescriptors { ...@@ -182,9 +182,13 @@ public class NodeDescriptors {
182 break; 182 break;
183 case IGP_ROUTERID_TYPE: 183 case IGP_ROUTERID_TYPE:
184 if (protocolId == IS_IS_LEVEL_1_PROTOCOL_ID || protocolId == IS_IS_LEVEL_2_PROTOCOL_ID) { 184 if (protocolId == IS_IS_LEVEL_1_PROTOCOL_ID || protocolId == IS_IS_LEVEL_2_PROTOCOL_ID) {
185 - if (length == ISISNONPSEUDONODE_LEN) { 185 + boolean isNonPseudoNode = true;
186 + if ((length == ISISPSEUDONODE_LEN) && (tempCb.getByte(ISISPSEUDONODE_LEN - 1) != 0)) {
187 + isNonPseudoNode = false;
188 + }
189 + if (isNonPseudoNode) {
186 tlv = IsIsNonPseudonode.read(tempCb); 190 tlv = IsIsNonPseudonode.read(tempCb);
187 - } else if (length == ISISPSEUDONODE_LEN) { 191 + } else {
188 tlv = IsIsPseudonode.read(tempCb); 192 tlv = IsIsPseudonode.read(tempCb);
189 } 193 }
190 } else if (protocolId == OSPF_V2_PROTOCOL_ID || protocolId == OSPF_V3_PROTOCOL_ID) { 194 } else if (protocolId == OSPF_V2_PROTOCOL_ID || protocolId == OSPF_V3_PROTOCOL_ID) {
......