Upgrade Network model from 2.1 to 4.1
[transportpce.git] / networkmodel / src / main / java / org / opendaylight / transportpce / networkmodel / service / NetworkModelService.java
1 /*
2  * Copyright © 2016 AT&T and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.transportpce.networkmodel.service;
9
10 import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev150114.NetconfNodeConnectionStatus;
11
12 /**
13  * Service for data manipulation on OpenROADM topology models.
14  */
15 public interface NetworkModelService {
16
17
18     /**
19         * Create new OpenROADM node in all OpenROADM topologies.
20      * @param nodeId
21      *   unique node ID of new OpenROADM node
22      * @param nodeVersion
23      *   OpenROADM node version
24      */
25     void createOpenRoadmNode(String nodeId, String nodeVersion);
26
27     /**
28      * Delete OpenROADM node mapping and topologies.
29      *
30      * @param nodeId unique node ID of OpenROADM node.
31      *
32      */
33     void deleteOpenRoadmnode(String nodeId);
34
35     /**
36      * Set/update connection status of OpenROADM node.
37      *
38      * @param nodeId
39      *   unique node ID of new OpenROADM node
40      * @param connectionStatus
41      *   connection status of the node
42      */
43     void setOpenRoadmNodeStatus(String nodeId, NetconfNodeConnectionStatus.ConnectionStatus connectionStatus);
44
45 }