Add a portmapping method to map degrees 89/94989/1
authorguillaume.lambert <guillaume.lambert@orange.com>
Tue, 2 Feb 2021 20:02:33 +0000 (21:02 +0100)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Mon, 8 Feb 2021 16:54:17 +0000 (16:54 +0000)
commit4f14db15d4ce7f97e6a2f837fc4cc3354d33aee4
tree157420f427901a9687e951b4ed4b78154c2bd805
parent695adc71b688464f6e238cf11a467e83ea027bd0
Add a portmapping method to map degrees

that can be easily reused in the other methods
- use getDegreesMap() to retrieve the list of Degrees
- getPerDegreePorts() to generate a map of ports per degree
- remove unused argument from some methods

JIRA: TRNSPRTPCE-354
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I21faea97f7f599a2dc1dc11b9c94823369f435cb
(cherry picked from commit 5560bd76a985f174b8ddcb620cd2b375949916db)
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingVersion121.java
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingVersion221.java
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingVersion710.java