Refactor PCE network analyzer PceOtnNode step 5 82/99782/1
authorguillaume.lambert <guillaume.lambert@orange.com>
Mon, 14 Feb 2022 10:41:45 +0000 (11:41 +0100)
committerChristophe Betoule <christophe.betoule@orange.com>
Thu, 17 Feb 2022 08:31:32 +0000 (09:31 +0100)
commit2c48cb1b005526e783ec573066124b317aab293e
tree5e9625cad7af2a672c5e8af072cf8e1ac2f17605
parent90df2170a6aa138e471dc226ce70b94f6be45641
Refactor PCE network analyzer PceOtnNode step 5

There is no point to have a different treatment for SERVICE_TYPE_100GE_S
in initXndrTps() to determine the attribute 'valid'.
This specific treatment only affects the argument availableXpdrClientTps
to pass to checkSwPool() when modeType equals "intermediate".
But this parameter is not used in that case.

- refactor and merge checkSwPool() and isAzOrIntermediateAvl() methods
- use checkSwPool() directly in initXndrTps()
- remove SERVICE_TYPE_100GE_S specific treatment

JIRA: TRNSPRTPCE-572
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I0c7b0ba2f07fd904650a5d8ec456c326f1794c76
pce/src/main/java/org/opendaylight/transportpce/pce/networkanalyzer/PceOtnNode.java