Fix bug in setting rate of tp in network module 53/97853/11
authorGilles Thouenon <gilles.thouenon@orange.com>
Fri, 8 Oct 2021 08:47:51 +0000 (10:47 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Thu, 9 Dec 2021 08:50:34 +0000 (09:50 +0100)
commitec4e345497d4be67b8226a51867780041df1a5b6
treea9be9e3755bd57fe9b6e4361df6ad675642b8b7b
parent88b66915d592d2f1602581bd6991b47b89673f71
Fix bug in setting rate of tp in network module

Depending on the first SupportedInterfaceCapability, it may happen that
the if-10GE if-cap-type is chosen, for which no rate is allocated. Look
at other if-cap-type to determine the rate.

JIRA: TRNSPRTPCE-541
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: Ie174c9c6b0329d9ffd65971ab140289a13fe3856
networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/util/OpenRoadmOtnTopology.java
networkmodel/src/test/java/org/opendaylight/transportpce/networkmodel/util/OpenRoadmOtnTopologyTest.java