c9b5409d20e24c2f970bdea7c8784918be4bf794
[netconf.git] / opendaylight / netconf / netconf-topology / src / main / java / org / opendaylight / netconf / topology / NetconfTopology.java
1 /*
2  * Copyright (c) 2015 Cisco Systems, Inc. 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
9 package org.opendaylight.netconf.topology;
10
11 import com.google.common.util.concurrent.ListenableFuture;
12 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
13 import org.opendaylight.netconf.sal.connect.api.RemoteDeviceHandler;
14 import org.opendaylight.netconf.sal.connect.netconf.listener.NetconfDeviceCapabilities;
15 import org.opendaylight.netconf.sal.connect.netconf.listener.NetconfSessionPreferences;
16 import org.opendaylight.netconf.topology.pipeline.TopologyMountPointFacade.ConnectionStatusListenerRegistration;
17 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;
18 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
19
20 // TODO maybe rename to NetconfTopologyDispatcher?
21 public interface NetconfTopology {
22
23     String getTopologyId();
24
25     DataBroker getDataBroker();
26
27     ListenableFuture<NetconfDeviceCapabilities> connectNode(NodeId nodeId, Node configNode);
28
29     ListenableFuture<Void> disconnectNode(NodeId nodeId);
30
31     void registerMountPoint(NodeId nodeId);
32
33     void unregisterMountPoint(NodeId nodeId);
34
35     ConnectionStatusListenerRegistration registerConnectionStatusListener(NodeId node, RemoteDeviceHandler<NetconfSessionPreferences> listener);
36 }