Committed by
Ray Milkey
Resolving issue in parsing report message.
Change-Id: Iab4bcab84d1a732946737497e9780fa3461e9355
Showing
2 changed files
with
8 additions
and
1 deletions
... | @@ -26,6 +26,7 @@ import org.onosproject.pcepio.types.PcepErrorDetailInfo; | ... | @@ -26,6 +26,7 @@ import org.onosproject.pcepio.types.PcepErrorDetailInfo; |
26 | import org.onosproject.pcepio.types.PcepObjectHeader; | 26 | import org.onosproject.pcepio.types.PcepObjectHeader; |
27 | import org.onosproject.pcepio.types.PcepValueType; | 27 | import org.onosproject.pcepio.types.PcepValueType; |
28 | import org.onosproject.pcepio.types.StatefulIPv4LspIdentidiersTlv; | 28 | import org.onosproject.pcepio.types.StatefulIPv4LspIdentidiersTlv; |
29 | +import org.onosproject.pcepio.types.StatefulLspDbVerTlv; | ||
29 | import org.onosproject.pcepio.types.StatefulLspErrorCodeTlv; | 30 | import org.onosproject.pcepio.types.StatefulLspErrorCodeTlv; |
30 | import org.onosproject.pcepio.types.StatefulRsvpErrorSpecTlv; | 31 | import org.onosproject.pcepio.types.StatefulRsvpErrorSpecTlv; |
31 | import org.onosproject.pcepio.types.SymbolicPathNameTlv; | 32 | import org.onosproject.pcepio.types.SymbolicPathNameTlv; |
... | @@ -337,6 +338,9 @@ public class PcepLspObjectVer1 implements PcepLspObject { | ... | @@ -337,6 +338,9 @@ public class PcepLspObjectVer1 implements PcepLspObject { |
337 | case SymbolicPathNameTlv.TYPE: | 338 | case SymbolicPathNameTlv.TYPE: |
338 | tlv = SymbolicPathNameTlv.read(cb, hLength); | 339 | tlv = SymbolicPathNameTlv.read(cb, hLength); |
339 | break; | 340 | break; |
341 | + case StatefulLspDbVerTlv.TYPE: | ||
342 | + tlv = StatefulLspDbVerTlv.read(cb); | ||
343 | + break; | ||
340 | default: | 344 | default: |
341 | throw new PcepParseException("Received unsupported TLV type :" + hType); | 345 | throw new PcepParseException("Received unsupported TLV type :" + hType); |
342 | } | 346 | } | ... | ... |
... | @@ -1008,7 +1008,10 @@ public class PcepTunnelProvider extends AbstractProvider implements TunnelProvid | ... | @@ -1008,7 +1008,10 @@ public class PcepTunnelProvider extends AbstractProvider implements TunnelProvid |
1008 | PcepStateReport.PcepMsgPath msgPath = stateRpt.getMsgPath(); | 1008 | PcepStateReport.PcepMsgPath msgPath = stateRpt.getMsgPath(); |
1009 | checkNotNull(msgPath); | 1009 | checkNotNull(msgPath); |
1010 | PcepRroObject rroObj = msgPath.getRroObject(); | 1010 | PcepRroObject rroObj = msgPath.getRroObject(); |
1011 | - checkNotNull(rroObj); | 1011 | + if (rroObj == null) { |
1012 | + log.debug("RRO object is null in sate report"); | ||
1013 | + return; | ||
1014 | + } | ||
1012 | int bandwidth = 0; | 1015 | int bandwidth = 0; |
1013 | 1016 | ||
1014 | log.debug("Handle Sync report received from PCC."); | 1017 | log.debug("Handle Sync report received from PCC."); | ... | ... |
-
Please register or login to post a comment