Update TAPI Topology Service on port change
[transportpce.git] / tapi / src / main / java / org / opendaylight / transportpce / tapi / topology / TapiNetworkModelService.java
index 10559b7cc8e1f4d9e19ac77478f51cc3e5502829..255a9780bb27a4f56dfb41cbd1eabb046f4568ac 100644 (file)
@@ -7,6 +7,7 @@
  */
 package org.opendaylight.transportpce.tapi.topology;
 
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev220316.mapping.Mapping;
 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev220316.network.Nodes;
 
 public interface TapiNetworkModelService {
@@ -31,4 +32,16 @@ public interface TapiNetworkModelService {
      *
      */
     void deleteTapinode(String nodeId);
+
+    /**
+     * Update termination point, and if need, be associated links, of
+     * openroadm-topology and otn-topology after a change on a given mapping.
+     *
+     * @param nodeId
+     *            unique node ID of OpenROADM node at the origin of the NETCONF
+     *            notification change.
+     * @param mapping
+     *            updated mapping following the device notification change.
+     */
+    void updateTapiTopology(String nodeId, Mapping mapping);
 }