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.rev210315.mapping.Mapping;
12 import org.opendaylight.yang.gen.v1.http.transportpce.topology.rev201019.OtnLinkType;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev150114.NetconfNodeConnectionStatus;
16 * Service for data manipulation on OpenROADM topology models.
18 public interface NetworkModelService {
21 * Create new OpenROADM node in all OpenROADM topologies.
24 * unique node ID of new OpenROADM node
26 * OpenROADM node version
28 void createOpenRoadmNode(String nodeId, String nodeVersion);
31 * Delete OpenROADM node mapping and topologies.
34 * unique node ID of OpenROADM node.
37 void deleteOpenRoadmnode(String nodeId);
40 * Update termination point, and if need, be associated links, of
41 * openroadm-topology and otn-topology after a change on a given mapping.
44 * unique node ID of OpenROADM node at the origin of the NETCONF
45 * notification change.
47 * updated mapping following the device notification change.
49 void updateOpenRoadmTopologies(String nodeId, Mapping mapping);
52 * Set/update connection status of OpenROADM node.
55 * unique node ID of new OpenROADM node
56 * @param connectionStatus
57 * connection status of the node
59 void setOpenRoadmNodeStatus(String nodeId, NetconfNodeConnectionStatus.ConnectionStatus connectionStatus);
62 * create new otn link in otn-topology.
65 * OpenROADM node ID for link termination point A
67 * OpenROADM tp id on nodeA for link termination point A
69 * OpenROADM node ID for link termination point Z
71 * OpenROADM tp id on nodeZ for link termination point Z
73 * OtnLinkType, as OTU4, ODTU, etc
75 void createOtnLinks(String nodeA, String tpA, String nodeZ, String tpZ, OtnLinkType linkType);
78 * delete otn links from otn-topology.
81 * OpenROADM node ID for link termination point A
83 * OpenROADM tp id on nodeA for link termination point A
85 * OpenROADM node ID for link termination point Z
87 * OpenROADM tp id on nodeZ for link termination point Z
89 * OtnLinkType, as OTU4, ODTU, etc
91 void deleteOtnLinks(String nodeA, String tpA, String nodeZ, String tpZ, OtnLinkType linkType);
94 * update otn links from otn-topology.
97 * List containing a string composed of the netconf nodeId , and the
98 * termination point supporting the service
100 * Service rate may be 1G, 10G or 100G
102 * Trib port number allocated by the service
104 * First trib slot number allocated by the service
106 * True indicates if the low-order otn service must be deleted
108 void updateOtnLinks(List<String> nodeTps, String serviceRate, Short tribPortNb, Short tribSoltNb,