[SXP-124] ConnectionTestLibrary.addNode might generate negative retryOpenTime Created: 28/Aug/17  Updated: 19/Oct/17  Resolved: 27/Sep/17

Status: Resolved
Project: sxp
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Michal Rehak Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 9062

 Description   

In method ConnectionTestLibrary.addNode a random int in range -9..+9 is generated and might result into negative value for retryOpenTime:

Caused by: java.lang.IllegalArgumentException: Invalid range: -2, expected: [[0..65535]].
at org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.node.identity.fields.TimersBuilder.checkRetryOpenTimeRange(TimersBuilder.java:265)
at org.opendaylight.yang.gen.v1.urn.opendaylight.sxp.node.rev160308.sxp.node.identity.fields.TimersBuilder.setRetryOpenTime(TimersBuilder.java:270)
at org.opendaylight.sxp.csit.libraries.ConnectionTestLibrary.addNode(ConnectionTestLibrary.java:111)
... 38 more



 Comments   
Comment by Martin Dindoffer [ 04/Sep/17 ]

https://git.opendaylight.org/gerrit/#/c/62608/

Comment by Michal Rehak [ 07/Sep/17 ]

https://git.opendaylight.org/gerrit/62751 - stable/nitrogen

Comment by Michal Rehak [ 27/Sep/17 ]

oxygen, nitrogen: merged

Generated at Wed Feb 07 20:40:01 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.