Distinguish available SRG for uni/bi-direction 91/96191/7
authorVachhani, Shweta (sv111y) <sv111y@att.com>
Fri, 14 May 2021 18:05:27 +0000 (14:05 -0400)
committerguillaume.lambert <guillaume.lambert@orange.com>
Thu, 10 Feb 2022 18:16:33 +0000 (19:16 +0100)
commit5fbe564fe5828bb7eee0d73eaf3d3225855c1b90
treeac129d12d2b54b9a86ef4c745deb4356cf7343a3
parent895f3e89b3c2554e704f74c764d23d5b79bf0862
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
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