e5cf5a56d893734f1bbe107c66f7c3af234c548f
[netconf.git] /
1 /*
2  * Copyright (c) 2013 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.mdsal.connector;
10
11 import java.util.Set;
12 import org.opendaylight.controller.md.sal.dom.api.DOMDataBroker;
13 import org.opendaylight.controller.md.sal.dom.api.DOMRpcService;
14 import org.opendaylight.netconf.mapping.api.NetconfOperation;
15 import org.opendaylight.netconf.mapping.api.NetconfOperationService;
16
17 public class MdsalNetconfOperationService implements NetconfOperationService {
18
19     private final OperationProvider operationProvider;
20
21     public MdsalNetconfOperationService(final CurrentSchemaContext schemaContext,
22                                         final String netconfSessionIdForReporting,
23                                         final DOMDataBroker dataBroker, final DOMRpcService rpcService) {
24         this.operationProvider = new OperationProvider(netconfSessionIdForReporting, schemaContext, dataBroker,
25                 rpcService);
26     }
27
28     @Override
29     public void close() {
30
31     }
32
33     @Override
34     public Set<NetconfOperation> getNetconfOperations() {
35         return operationProvider.getOperations();
36     }
37
38 }