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=0e67633900f3198648fc162400aa9d8bc27011d3;hb=refs%2Fchanges%2F09%2F110209%2F5;hp=879ed961e4c1a3eac8714000e5467506f2875562;hpb=41bcd9973fefe2dc01cbe1c246d31d6bdceba120;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 879ed961e..0e6763390 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 @@ -8,10 +8,10 @@ package org.opendaylight.transportpce.networkmodel.service; 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.networkutils.rev220630.OtnLinkType; +import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev231221.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.yang.gen.v1.urn.opendaylight.netconf.device.rev240120.ConnectionOper.ConnectionStatus; import org.opendaylight.yangtools.yang.common.Uint32; /** @@ -59,39 +59,37 @@ public interface NetworkModelService { * @param connectionStatus * connection status of the node */ - void setOpenRoadmNodeStatus(String nodeId, NetconfNodeConnectionStatus.ConnectionStatus connectionStatus); + void setOpenRoadmNodeStatus(String nodeId, ConnectionStatus connectionStatus); /** * 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. @@ -100,7 +98,11 @@ public interface NetworkModelService { * otu link. * * @param link - * link containing termination points to be updated + * link containing termination points to be updated (used for use + * case with a single supported link) + * @param supportedLinks + * list of link-id supported the service (used for use case with + * several supported links) * @param serviceRate * Service rate may be 1G, 10G, 100G or 400G * @param tribPortNb @@ -112,20 +114,19 @@ public interface NetworkModelService { * @param isDeletion * 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); + void updateOtnLinks(Link link, List supportedLinks, 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) + * list of link-id supported the service (used for use case with + * several supported links) * @param isDeletion * True indicates if the low-order otn service must be deleted */ - void updateOtnLinks(Link link, List supportedLinks, boolean isDeletion); + void updateOtnLinks(List supportedLinks, boolean isDeletion); }