-
Type: Bug
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.0, 1.5.1, 1.6.0, 1.5.2, 1.6.1
-
Fix Version/s: 1.7.0
-
Component/s: None
-
Labels:
-
Environment:
ONOS 1.6 connects to routers with Netconf
-
Story Points:2
In NetconfStreamThread.java line #227, message-id of a replied Netconf message is extracted by String messageID = outer[1].substring(0, 3).replace("\"", ""); However, substring(0, 3) can only extract first two digits of message-ids if the number is greater than 100.
Proposal for the fix: replace that line with String messageID = outer[1].split("\"")[1]; or use regular expression to extract all the digits.