Refactor PCE network analyzer PceOtnNode step 5 20/99720/3
authorguillaume.lambert <guillaume.lambert@orange.com>
Mon, 14 Feb 2022 10:41:45 +0000 (11:41 +0100)
committerguillaume.lambert <guillaume.lambert@orange.com>
Mon, 14 Feb 2022 16:50:54 +0000 (17:50 +0100)
commitc08e9285f82239f472821108732c5b0919a6f37a
tree3197b3ad6791a767a464db8ae07bb40ade2733b8
parentdd578c571d0581f3be3c4a9348b518c8c7bdc13f
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