2 * Copyright © 2016 AT&T and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.transportpce.networkmodel.service;
10 import java.util.List;
11 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev210927.mapping.Mapping;
12 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.rev210915.renderer.rpc.result.sp.Link;
13 import org.opendaylight.yang.gen.v1.http.transportpce.topology.rev210511.OtnLinkType;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev150114.NetconfNodeConnectionStatus;
15 import org.opendaylight.yangtools.yang.common.Uint32;
18 * Service for data manipulation on OpenROADM topology models.
20 public interface NetworkModelService {
23 * Create new OpenROADM node in all OpenROADM topologies.
26 * unique node ID of new OpenROADM node
28 * OpenROADM node version
30 void createOpenRoadmNode(String nodeId, String nodeVersion);
33 * Delete OpenROADM node from portmapping and topologies.
36 * unique node ID of OpenROADM node.
38 * @return result of node deletion from portmapping and topologies
40 boolean deleteOpenRoadmnode(String nodeId);
43 * Update termination point, and if need, be associated links, of
44 * openroadm-topology and otn-topology after a change on a given mapping.
47 * unique node ID of OpenROADM node at the origin of the NETCONF
48 * notification change.
50 * updated mapping following the device notification change.
52 void updateOpenRoadmTopologies(String nodeId, Mapping mapping);
55 * Set/update connection status of OpenROADM node.
58 * unique node ID of new OpenROADM node
59 * @param connectionStatus
60 * connection status of the node
62 void setOpenRoadmNodeStatus(String nodeId, NetconfNodeConnectionStatus.ConnectionStatus connectionStatus);
65 * create new otn link in otn-topology.
68 * OpenROADM node ID for link termination point A
70 * OpenROADM tp id on nodeA for link termination point A
72 * OpenROADM node ID for link termination point Z
74 * OpenROADM tp id on nodeZ for link termination point Z
76 * OtnLinkType, as OTU4, ODTU, etc
78 void createOtnLinks(String nodeA, String tpA, String nodeZ, String tpZ, OtnLinkType linkType);
81 * delete otn links from otn-topology.
84 * OpenROADM node ID for link termination point A
86 * OpenROADM tp id on nodeA for link termination point A
88 * OpenROADM node ID for link termination point Z
90 * OpenROADM tp id on nodeZ for link termination point Z
92 * OtnLinkType, as OTU4, ODTU, etc
94 void deleteOtnLinks(String nodeA, String tpA, String nodeZ, String tpZ, OtnLinkType linkType);
97 * Update otn links from otn-topology.
98 * For services using low-order odu, updates bandwidth parameters
99 * for both the direct parent high-order odu link, and also its server
103 * link containing termination points to be updated
105 * Service rate may be 1G, 10G, 100G or 400G
107 * Trib port number allocated by the service
108 * @param minTribSoltNb
109 * First contiguous trib slot number allocated by the service
110 * @param maxTribSoltNb
111 * Last contiguous trib slot number allocated by the service
113 * True indicates if the low-order otn service must be deleted
115 void updateOtnLinks(Link link, Uint32 serviceRate, Short tribPortNb, Short minTribSoltNb, Short maxTribSoltNb,
119 * Update otn links from otn-topology.
120 * For services using directly a high-order odu, updates bandwidth parameters
121 * of the direct parent otu link.
124 * link containing termination points to be updated
125 * @param supportedLinks
126 * list of link-id supported the service (used when more than one supported link)
128 * True indicates if the low-order otn service must be deleted
130 void updateOtnLinks(Link link, List<String> supportedLinks, boolean isDeletion);