Add new method in PortMapping interface 42/100942/1
authorGilles Thouenon <gilles.thouenon@orange.com>
Tue, 3 May 2022 15:35:11 +0000 (17:35 +0200)
committerGilles Thouenon <gilles.thouenon@orange.com>
Tue, 3 May 2022 15:35:11 +0000 (17:35 +0200)
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 d13ba63b47f699ab8b203b0ee08be4ac54fa8a79..ddf2e72d9ea92eba6c711d4621ae5f978f0d5d3b 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 9780f62cd341c82672cdea7354bd300626c61bfa..f16266188ee450357609b0dbd82a92a030868a76 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;
     }
+
 }