Network topology and inventory init
[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      * Create new OpenROADM node in all OpenROADM topologies.
19      *
20      * @param nodeId
21      *   unique node ID of new OpenROADM node
22      */
23     void createOpenROADMnode(String nodeId);
24
25     /**
26      * Set/update connection status of OpenROADM node.
27      *
28      * @param nodeId
29      *   unique node ID of new OpenROADM node
30      * @param connectionStatus
31      *   connection status of the node
32      */
33     void setOpenROADMnodeStatus(String nodeId, NetconfNodeConnectionStatus.ConnectionStatus connectionStatus);
34
35 }