Add new method in PortMapping interface 71/100971/1
authorGilles Thouenon <gilles.thouenon@orange.com>
Tue, 3 May 2022 15:35:11 +0000 (17:35 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Wed, 4 May 2022 19:39:49 +0000 (19:39 +0000)
To be able to get PortMappingVersion710 instance, necessary to
instanciate OpenRoadmInterfacesImpl710 object in lighty.

JIRA: TRNSPRTPCE-579
Signed-off-by: Gilles Thouenon <gilles.thouenon@orange.com>
Change-Id: I11de3663284f5831647fe0b67f73b8c6f8ad75cc

common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMapping.java
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingImpl.java

index 425e5a6b8c62ed8c263bd0495af4f1c060b99124..4342590e968ff87c8162ffc3286d2fc1930159a6 100644 (file)
@@ -24,6 +24,8 @@ public interface PortMapping {
 
     PortMappingVersion221 getPortMappingVersion221();
 
+    PortMappingVersion710 getPortMappingVersion710();
+
     /**
      * This method creates logical to physical port mapping for a given device.
      * Instead of parsing all the circuit packs/ports in the device, this methods
index f9d3e4590623bd7cee4f16f8010e4b92c2af6b04..85f7280bab8eb46b7293afde7323c95411d4f181 100644 (file)
@@ -61,6 +61,11 @@ public class PortMappingImpl implements PortMapping {
         return portMappingVersion22;
     }
 
+    @Override
+    public PortMappingVersion710 getPortMappingVersion710() {
+        return portMappingVersion710;
+    }
+
     @Override
     public boolean createMappingData(String nodeId, String nodeVersion) {
         switch (nodeVersion) {
@@ -229,4 +234,5 @@ public class PortMappingImpl implements PortMapping {
     public boolean isNodeExist(String nodeId) {
         return this.getNode(nodeId) != null;
     }
+
 }