X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=networkmodel%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Fnetworkmodel%2Fservice%2FNetworkModelService.java;h=349b45ec9635b40f7db706ac2375ad6e10f4ad5f;hb=b5ee86a522ce3cf5c6216f10647edb08b31c72e9;hp=aaa515238bcdfb1578a372d3b41e229663f686e6;hpb=0ca7e1eeb7c7aa4963ac0b2f5b70c4bbedfbd484;p=transportpce.git diff --git a/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/service/NetworkModelService.java b/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/service/NetworkModelService.java index aaa515238..349b45ec9 100644 --- a/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/service/NetworkModelService.java +++ b/networkmodel/src/main/java/org/opendaylight/transportpce/networkmodel/service/NetworkModelService.java @@ -7,8 +7,9 @@ */ 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; @@ -63,37 +64,38 @@ public interface NetworkModelService { /** * create new otn link in otn-topology. * - * @param nodeA - * OpenROADM node ID for link termination point A - * @param tpA - * OpenROADM tp id on nodeA for link termination point A - * @param nodeZ - * OpenROADM node ID for link termination point Z - * @param tpZ - * OpenROADM tp id on nodeZ for link termination point Z + * @param notifLink + * Expressed by the means of a link, specifies the + * termination points of the otn link to create. + * @param suppLinks + * list of link-id supported the service (used when more than one supported link) * @param linkType * OtnLinkType, as OTU4, ODTU, etc */ - void createOtnLinks(String nodeA, String tpA, String nodeZ, String tpZ, OtnLinkType linkType); + void createOtnLinks( + org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.rev210915.renderer.rpc.result.sp.Link + notifLink, List suppLinks, OtnLinkType linkType); /** * delete otn links from otn-topology. * - * @param nodeA - * OpenROADM node ID for link termination point A - * @param tpA - * OpenROADM tp id on nodeA for link termination point A - * @param nodeZ - * OpenROADM node ID for link termination point Z - * @param tpZ - * OpenROADM tp id on nodeZ for link termination point Z + * @param notifLink + * Expressed by the means of a link, specifies the + * termination points of the otn link to create. + * @param suppLinks + * list of link-id supported the service (used when more than one supported link) * @param linkType * OtnLinkType, as OTU4, ODTU, etc */ - void deleteOtnLinks(String nodeA, String tpA, String nodeZ, String tpZ, OtnLinkType linkType); + void deleteOtnLinks( + org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.rev210915.renderer.rpc.result.sp.Link + notifLink, List suppLinks, 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 @@ -106,8 +108,20 @@ public interface NetworkModelService { * @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 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(List supportedLinks, boolean isDeletion); }