X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Fcommon%2Fmapping%2FPortMapping.java;fp=common%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Fcommon%2Fmapping%2FPortMapping.java;h=5dafc18d3b69bc8e9543794d430b3ddac5281eb5;hb=a333c0c0b3bbe22066e3bcc4af4007d066c10e89;hp=4342590e968ff87c8162ffc3286d2fc1930159a6;hpb=8c9ebbcf59bcf5528dc7a8251a7c85f0581b44c7;p=transportpce.git diff --git a/common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMapping.java b/common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMapping.java index 4342590e9..5dafc18d3 100644 --- a/common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMapping.java +++ b/common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMapping.java @@ -109,6 +109,30 @@ public interface PortMapping { */ Mapping getMapping(String nodeId, String circuitPackName, String portName); + /** + * This method for a given node's termination point returns the Mapping object + * based on portmapping.yang model stored in the MD-SAL data store which is + * created when the node is connected for the first time. The mapping object + * basically contains the following attributes of interest: + * + *

+ * 1. Supporting circuit pack + * + *

+ * 2. Supporting port + * + *

+ * 3. Supporting OTS/OMS interface (if port on ROADM) + * + * @param nodeId + * Unique Identifier for the node of interest. + * @param interfName + * Name of the OTS interface + * + * @return Result Mapping object if success otherwise null. + */ + Mapping getMappingFromOtsInterface(String nodeId, String interfName); + /** * This method removes a given mapping data from the mapping list * stored in the datastore while the Netconf device is already