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 org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev210426.mapping.Mapping;
11 import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.renderer.rev210618.renderer.rpc.result.sp.Link;
12 import org.opendaylight.yang.gen.v1.http.transportpce.topology.rev210511.OtnLinkType;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev150114.NetconfNodeConnectionStatus;
14 import org.opendaylight.yangtools.yang.common.Uint32;
17 * Service for data manipulation on OpenROADM topology models.
19 public interface NetworkModelService {
22 * Create new OpenROADM node in all OpenROADM topologies.
25 * unique node ID of new OpenROADM node
27 * OpenROADM node version
29 void createOpenRoadmNode(String nodeId, String nodeVersion);
32 * Delete OpenROADM node mapping and topologies.
35 * unique node ID of OpenROADM node.
38 void deleteOpenRoadmnode(String nodeId);
41 * Update termination point, and if need, be associated links, of
42 * openroadm-topology and otn-topology after a change on a given mapping.
45 * unique node ID of OpenROADM node at the origin of the NETCONF
46 * notification change.
48 * updated mapping following the device notification change.
50 void updateOpenRoadmTopologies(String nodeId, Mapping mapping);
53 * Set/update connection status of OpenROADM node.
56 * unique node ID of new OpenROADM node
57 * @param connectionStatus
58 * connection status of the node
60 void setOpenRoadmNodeStatus(String nodeId, NetconfNodeConnectionStatus.ConnectionStatus connectionStatus);
63 * create new otn link in otn-topology.
66 * OpenROADM node ID for link termination point A
68 * OpenROADM tp id on nodeA for link termination point A
70 * OpenROADM node ID for link termination point Z
72 * OpenROADM tp id on nodeZ for link termination point Z
74 * OtnLinkType, as OTU4, ODTU, etc
76 void createOtnLinks(String nodeA, String tpA, String nodeZ, String tpZ, OtnLinkType linkType);
79 * delete otn links from otn-topology.
82 * OpenROADM node ID for link termination point A
84 * OpenROADM tp id on nodeA for link termination point A
86 * OpenROADM node ID for link termination point Z
88 * OpenROADM tp id on nodeZ for link termination point Z
90 * OtnLinkType, as OTU4, ODTU, etc
92 void deleteOtnLinks(String nodeA, String tpA, String nodeZ, String tpZ, OtnLinkType linkType);
95 * update otn links from otn-topology.
98 * link containing termination points to be updated
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(Link link, Uint32 serviceRate, Short tribPortNb, Short tribSoltNb, boolean isDeletion);