X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Fcommon%2Fmapping%2FPortMapping.java;h=a9965de051c8e274496eea63ff9a92e01f35b115;hb=refs%2Fchanges%2F62%2F95462%2F3;hp=987c545aeb359c430d392421d325fe811ebcde8f;hpb=34e6cc32bbda6f19e394c14904d7b78a520e1b96;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 987c545ae..a9965de05 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 @@ -8,8 +8,9 @@ package org.opendaylight.transportpce.common.mapping; -import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev170228.network.Nodes; -import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev170228.network.nodes.Mapping; +import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev210310.network.Nodes; +import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev210310.network.nodes.Mapping; +import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev210310.network.nodes.McCapabilities; public interface PortMapping { @@ -39,6 +40,8 @@ public interface PortMapping { * * @param nodeId * node ID + * @param nodeVersion + * node version * * @return true/false based on status of operation */ @@ -78,9 +81,35 @@ public interface PortMapping { */ Mapping getMapping(String nodeId, String logicalConnPoint); + /** + * This method for a given node's media channel-capabilities returns the + * 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. slot width granularity + * + *

+ * 2. center frequency granularity + * + *

+ * 3. Supporting OMS interface (if port on ROADM) 4. Supporting OTS + * interface (if port on ROADM) + * + * @param nodeId + * Unique Identifier for the node of interest. + * @param mcLcp + * Name of the MC-capability + * + * @return Result McCapabilities. + */ + McCapabilities getMcCapbilities(String nodeId, String mcLcp); + boolean updateMapping(String nodeId, Mapping mapping); /** + * Returns all Mapping informations for a given ordm device. * This method returns all Mapping informations already stored in the MD-SAL * data store for a given openroadm device. Beyound the list of mappings, it * gives access to general node information as its version or its node type,