Distinguish available SRG for uni/bi-direction 12/99612/1
authorVachhani, Shweta (sv111y) <sv111y@att.com>
Fri, 14 May 2021 18:05:27 +0000 (14:05 -0400)
committerChristophe BETOULE <christophe.betoule@orange.com>
Mon, 14 Feb 2022 14:54:44 +0000 (14:54 +0000)
commitfe8a24380dc8c4fa3b28e7297f6024de0db795c7
tree47fe59ead60ba1c50d1c88128643058a1b200ef4
parent51190fdd7f2e4c980f4412b6404fc683d61c1f70
Distinguish available SRG for uni/bi-direction

- Currently CP-type is assigned TXRX irrespective of unidirectional
  or bidirectional. Since CP-type is used to assign respective SRG-type,
  it could be misleading.
- Fix the code to have correct SRG-type.

JIRA: TRNSPRTPCE-445
Signed-off-by: Vachhani, Shweta (sv111y) <sv111y@att.com>
Change-Id: Ia0b5e82e2182d6445238e8df0a540683ad2ade7c
(cherry picked from commit 5fbe564fe5828bb7eee0d73eaf3d3225855c1b90)
common/src/main/java/org/opendaylight/transportpce/common/StringConstants.java
pce/src/main/java/org/opendaylight/transportpce/pce/networkanalyzer/PceCalculation.java
pce/src/main/java/org/opendaylight/transportpce/pce/networkanalyzer/PceNode.java
pce/src/main/java/org/opendaylight/transportpce/pce/networkanalyzer/PceOpticalNode.java
pce/src/main/java/org/opendaylight/transportpce/pce/networkanalyzer/PceOtnNode.java
pce/src/test/java/org/opendaylight/transportpce/pce/networkanalyzer/PceOpticalNodeTest.java