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.transportpce.topology.rev200129.OtnLinkType;
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev150114.NetconfNodeConnectionStatus;
15 * Service for data manipulation on OpenROADM topology models.
17 public interface NetworkModelService {
20 * Create new OpenROADM node in all OpenROADM topologies.
23 * unique node ID of new OpenROADM node
25 * OpenROADM node version
27 void createOpenRoadmNode(String nodeId, String nodeVersion);
30 * Delete OpenROADM node mapping and topologies.
33 * unique node ID of OpenROADM node.
36 void deleteOpenRoadmnode(String nodeId);
39 * Set/update connection status of OpenROADM node.
42 * unique node ID of new OpenROADM node
43 * @param connectionStatus
44 * connection status of the node
46 void setOpenRoadmNodeStatus(String nodeId, NetconfNodeConnectionStatus.ConnectionStatus connectionStatus);
49 * create new otn link in otn-topology.
52 * OpenROADM node ID for link termination point A
54 * OpenROADM tp id on nodeA for link termination point A
56 * OpenROADM node ID for link termination point Z
58 * OpenROADM tp id on nodeZ for link termination point Z
60 * OtnLinkType, as OTU4, ODTU, etc
62 void createOtnLinks(String nodeA, String tpA, String nodeZ, String tpZ, OtnLinkType linkType);
65 * delete otn links from 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 deleteOtnLinks(String nodeA, String tpA, String nodeZ, String tpZ, OtnLinkType linkType);
81 * update otn links from otn-topology.
84 * List containing a string composed of the netconf nodeId , and the
85 * termination point supporting the service
87 * Service rate may be 1G, 10G or 100G
89 * Trib port number allocated by the service
91 * First trib slot number allocated by the service
93 * True indicates if the low-order otn service must be deleted
95 void updateOtnLinks(List<String> nodeTps, String serviceRate, Short tribPortNb, Short tribSoltNb,