Add a portmapping method to map degrees 72/94972/3
authorguillaume.lambert <guillaume.lambert@orange.com>
Tue, 2 Feb 2021 20:02:33 +0000 (21:02 +0100)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Fri, 5 Feb 2021 10:33:02 +0000 (10:33 +0000)
commit5560bd76a985f174b8ddcb620cd2b375949916db
tree6aadc0b48f4d97ff1fb0279a137fbacb05f00f4c
parent297991027bf35646c557d3a1be30c19382aa2e7f
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
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