Fix SH DowngradeConstraints max OTN Hop count bug 80/100380/2
authorguillaume.lambert <guillaume.lambert@orange.com>
Mon, 4 Apr 2022 10:49:06 +0000 (12:49 +0200)
committerguillaume.lambert <guillaume.lambert@orange.com>
Tue, 5 Apr 2022 09:26:03 +0000 (11:26 +0200)
commit97b42df7417ca71f7327cf1c51e809995a213fcf
tree99eddf4f5c14a509093a9e3c49418c6bd719c97c
parent268165cb2822b6ce4c55f00cac63eed2bb222ec7
Fix SH DowngradeConstraints max OTN Hop count bug

WDM hop count setter was used both for WDM and OTN constraints
- use OTN hop count setter for OTN constraints

Junit was only testing WDM hop count and TE metrics but not OTN ones.
- add OTN parameters to tests constraints util class
- add OTN Hop Count Junit tests

JIRA: TRNSPRTPCE-611
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I1eb1057fb85d10da359670f0607985d77f89dd6b
servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/DowngradeConstraints.java
servicehandler/src/test/java/org/opendaylight/transportpce/servicehandler/DowngradeConstraintsTest.java
servicehandler/src/test/java/org/opendaylight/transportpce/servicehandler/utils/ConstraintsUtils.java