Fix bug in setting rate of tp in network module 72/98972/1
authorGilles Thouenon <gilles.thouenon@orange.com>
Fri, 8 Oct 2021 08:47:51 +0000 (10:47 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Tue, 14 Dec 2021 08:47:15 +0000 (09:47 +0100)
commit1165ca7cf9572b08d468f23e2274cab32feff125
tree7b35a3f41b92b1a22bab61f141e5581ea05f45bd
parent8b49fe800c3780132918a9f42d9940ebd3efa981
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