aboutsummaryrefslogtreecommitdiffstats
path: root/docs/requirements-docs.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/requirements-docs.txt')
-rw-r--r--docs/requirements-docs.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/requirements-docs.txt b/docs/requirements-docs.txt
new file mode 100644
index 000000000..b3188ddd3
--- /dev/null
+++ b/docs/requirements-docs.txt
@@ -0,0 +1,15 @@
+tox
+Sphinx
+doc8
+docutils
+setuptools
+six
+sphinx_rtd_theme>=0.4.3
+sphinxcontrib-blockdiag
+sphinxcontrib-needs>=0.2.3
+sphinxcontrib-nwdiag
+sphinxcontrib-seqdiag
+sphinxcontrib-swaggerdoc
+sphinxcontrib-plantuml
+sphinx_bootstrap_theme
+lfdocs-conf
ctions/netconf-executor/src/main/kotlin/org/onap/ccsdk/apps/blueprintsprocessor/functions/netconf/executor/api/NetconfRpcService.kt?h=elalto&id=0613ae8f927834f7621011fda3f0cb1b7f8e07ad'>NetconfRpcService.kt
blob: e2c9bf9005932507048e4e9fc454b72ca9c9c9f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
 * Copyright © 2017-2018 AT&T Intellectual Property.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.onap.ccsdk.apps.blueprintsprocessor.functions.netconf.executor.api

import org.onap.ccsdk.apps.blueprintsprocessor.functions.netconf.executor.utils.ModifyAction
import org.onap.ccsdk.apps.blueprintsprocessor.functions.netconf.executor.utils.NetconfDatastore

interface NetconfRpcService {

    /**
     * Lock
     *
     * @param configTarget running or candidate, default candidate
     * @return Device response
     */
    fun lock(configTarget: String = NetconfDatastore.CANDIDATE.datastore): DeviceResponse

    /**
     * Get-config
     *
     * @param filter filter content, default empty
     * @param configTarget running or candidate, default running
     * @return Device response
     */
    fun getConfig(filter: String = "", configTarget: String = NetconfDatastore.RUNNING.datastore): DeviceResponse

    /**
     * Delete config
     *
     * @param configTarget running or candidate, default candidate
     * @return Device response
     */
    fun deleteConfig(configTarget: String = NetconfDatastore.CANDIDATE.datastore): DeviceResponse

    /**
     * Edit-config
     *
     * @param messageContent edit config content.
     * @param configTarget running or candidate, default candidate
     * @param editDefaultOperation, default set to none. Valid values: merge, replace, create, delete, none
     * @return Device response
     */
    fun editConfig(messageContent: String, configTarget: String = NetconfDatastore.CANDIDATE.datastore,
                   editDefaultOperation: String = ModifyAction.NONE.action): DeviceResponse

    /**
     * Validate
     *
     * @param configTarget running or candidate, default candidate
     * @return Device response
     */
    fun validate(configTarget: String = NetconfDatastore.CANDIDATE.datastore): DeviceResponse

    /**
     * Commit
     *
     * @return Device response
     */
    fun commit(): DeviceResponse

    /**
     * Unlock
     *
     * @param configTarget running or candidate, default candidate
     * @return Device response
     */
    fun unLock(configTarget: String = NetconfDatastore.CANDIDATE.datastore): DeviceResponse

    /**
     * Discard config
     *
     * @return Device response
     */
    fun discardConfig(): DeviceResponse

    /**
     * Close session
     *
     * @param force force closeSession
     * @return Device response
     */
    fun closeSession(force: Boolean): DeviceResponse

    /**
     * Executes an RPC request to the netconf server.
     *
     * @param request the XML containing the RPC request for the server.
     * @return Device response
     */
    fun asyncRpc(request: String, messageId: String): DeviceResponse
}