562dd76898bab0c08185e3353d46c8bde068812b
[ccsdk/cds.git] /
1 /*
2  * Copyright © 2017-2018 AT&T Intellectual Property.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.ccsdk.apps.blueprintsprocessor.functions.netconf.executor
18
19 import org.springframework.boot.context.properties.EnableConfigurationProperties
20 import org.springframework.context.annotation.ComponentScan
21 import org.springframework.context.annotation.Configuration
22
23 @Configuration
24 @ComponentScan
25 @EnableConfigurationProperties
26 open class NetconfExecutorConfiguration
27
28
29 class NetconfExecutorConstants {
30     companion object {
31         const val CONTEX_PARAM_MESSAGE = "message"
32         const val COMPONENT_SCRIPT_PATH = "component-scripts"
33
34         const val REQ_NETCONF_CONNECTION = "netconf-connection"
35         const val NETCONF_CONNECTION_SOURCE = "source"
36         const val NETCONF_CONNECTION_LOGIN_KEY = "login-key"
37         const val NETCONF_CONNECTION_LOGIN_ACCOUNT = "login-account"
38         const val NETCONF_CONNECTION_TARGET_IP = "target-ip-address"
39         const val NETCONF_CONNECTION_MESSAGE_PORT = "port-number"
40         const val NETCONF_CONNECTION_TIMEOUT = "connection-time-out"
41
42         const val INPUT_PARAM_REQUEST_ID = "request-id"
43         const val INPUT_PARAM_RESOURCE_ID = "resource-id"
44         const val INPUT_PARAM_RESERVATION_ID = "reservation-id"
45         const val INPUT_PARAM_RESOURCE_TYPE = "resource-type"
46         const val INPUT_PARAM_ACTION_NAME = "action-name"
47         const val INPUT_PARAM_TEMPLATE_NAME = "template-name"
48         const val INPUT_PARAM_ASSIGNMENT_ACTION_NAME = "assignment-action-name"
49
50         const val SCRIPT_OUTPUT_RESPONSE_DATA = "responseData"
51         const val SCRIPT_OUTPUT_ERROR_MESSAGE = "errorMessage"
52
53         const val OUTPUT_PARAM_RESPONSE_DATA = "response-data"
54         const val OUTPUT_PARAM_ERROR_MESSAGE = "error-message"
55         const val OUTPUT_PARAM_STATUS = "status"
56         const val OUTPUT_STATUS_SUCCESS = "success"
57         const val OUTPUT_STATUS_FAILURE = "failure"
58
59         const val CONFIG_DATA_TYPE_XML = "XML"
60         const val CONFIG_DATA_TYPE_JSON = "JSON"
61
62         const val CONFIG_TARGET_RUNNING = "running"
63         const val CONFIG_TARGET_CANDIDATE = "candidate"
64         const val CONFIG_DEFAULT_OPERATION_MERGE = "merge"
65         const val CONFIG_DEFAULT_OPERATION_REPLACE = "replace"
66         const val DEFAULT_NETCONF_SESSION_MANAGER_TYPE = "DEFAULT_NETCONF_SESSION"
67     }
68 }