*/
package org.opendaylight.transportpce.networkmodel.service;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev210426.mapping.Mapping;
-import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.rev210618.renderer.rpc.result.sp.Link;
+import java.util.List;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev210927.mapping.Mapping;
+import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.rev210915.renderer.rpc.result.sp.Link;
import org.opendaylight.yang.gen.v1.http.transportpce.topology.rev210511.OtnLinkType;
import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev150114.NetconfNodeConnectionStatus;
import org.opendaylight.yangtools.yang.common.Uint32;
void createOpenRoadmNode(String nodeId, String nodeVersion);
/**
- * Delete OpenROADM node mapping and topologies.
+ * Delete OpenROADM node from portmapping and topologies.
*
* @param nodeId
* unique node ID of OpenROADM node.
*
+ * @return result of node deletion from portmapping and topologies
*/
- void deleteOpenRoadmnode(String nodeId);
+ boolean deleteOpenRoadmnode(String nodeId);
/**
* Update termination point, and if need, be associated links, of
void deleteOtnLinks(String nodeA, String tpA, String nodeZ, String tpZ, OtnLinkType linkType);
/**
- * update otn links from otn-topology.
+ * Update otn links from otn-topology.
+ * For services using low-order odu, updates bandwidth parameters
+ * for both the direct parent high-order odu link, and also its server
+ * otu link.
*
* @param link
* link containing termination points to be updated
* @param maxTribSoltNb
* Last contiguous trib slot number allocated by the service
* @param isDeletion
- * True indicates if the low-order otn service must be deleted
+ * True indicates if the low-order otn service must be deleted
*/
void updateOtnLinks(Link link, Uint32 serviceRate, Short tribPortNb, Short minTribSoltNb, Short maxTribSoltNb,
boolean isDeletion);
+
+ /**
+ * Update otn links from otn-topology.
+ * For services using directly a high-order odu, updates bandwidth parameters
+ * of the direct parent otu link.
+ *
+ * @param link
+ * link containing termination points to be updated
+ * @param supportedLinks
+ * list of link-id supported the service (used when more than one supported link)
+ * @param isDeletion
+ * True indicates if the low-order otn service must be deleted
+ */
+ void updateOtnLinks(Link link, List<String> supportedLinks, boolean isDeletion);
}